[fpc-devel] softfloat: sizeOf( floatx80 )

Martin Frb lazarus at mfriebe.de
Fri Sep 27 20:00:38 CEST 2024


Is there any indention in

   floatx80 = record
     case byte of
       1: (low : qword;high : word);
       // force the record to be aligned like a double
       // else *_to_double will fail for cpus like sparc
       // and avoid expensive unpacking/packing operations
       2: (dummy : extended);
   end;


NOT being a packed record?

If it was packed, it should have the same size as an actual extended: 80 
bits / 10 bytes.

Possible similar issues for other softfloat types


More information about the fpc-devel mailing list