1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:07:45 +00:00

UserspaceEmulator: Simplify the definition of the FPU register stack

Long doubles are always at least 80 bits wide in memory and it suffices
if we can address these 80 bits, to mark the long double as NAN at the
end of an MMX instruction, so the additional magic using conditional
types is unnecessary.
This commit is contained in:
Hendiadyoin1 2021-07-23 00:40:28 +02:00 committed by Linus Groh
parent d06675e3e4
commit 7214b08f81
2 changed files with 3 additions and 9 deletions

View file

@ -289,12 +289,7 @@ private:
long double fp;
struct {
MMX mmx;
Conditional<sizeof(long double) == 16,
u64,
Conditional<sizeof(long double) == 12,
u32,
u16>>
__high;
u16 __high;
};
} m_storage[8];