Re: [fpc-devel] softfloat: sizeOf( floatx80 )

2024-09-28 Thread Martin Frb via fpc-devel
On 28/09/2024 10:56, Karoly Balogh via fpc-devel wrote: Fromt the top of my head, I only know one example of a big endian system which has an 80 bit extended type in hardware, and it's the Motorola 68000 family. Which actually stores exteded in a 96 bit format in memory, with a gap. :) (See: Moto

Re: [fpc-devel] softfloat: sizeOf( floatx80 )

2024-09-28 Thread Karoly Balogh via fpc-devel
Hi, On Sat, 28 Sep 2024, Martin Frb via fpc-devel wrote: > About the big endian issue: That means it is not memory compatible with a > native "extended" because it has a gap. Fromt the top of my head, I only know one example of a big endian system which has an 80 bit extended type in hardware, a

Re: [fpc-devel] softfloat: sizeOf( floatx80 )

2024-09-28 Thread Jonas Maebe via fpc-devel
On 28/09/2024 10:26, Martin Frb via fpc-devel wrote: In addition, now googled, on wikipedia there is only one format for 80bits? (unless I missed something). But it's in a paragraph referring to x86... https://en.wikipedia.org/wiki/Extended_precision#x86_extended_precision_format From that

Re: [fpc-devel] softfloat: sizeOf( floatx80 )

2024-09-28 Thread Martin Frb via fpc-devel
On 28/09/2024 09:45, Martin Frb via fpc-devel wrote: On 28/09/2024 09:34, Pierre Muller via fpc-devel wrote: I think that the big endian version (see grep below) would suffer if you would use packed because the high field of size 2, would put the low field of size 8 at offset 2, which would trig

Re: [fpc-devel] softfloat: sizeOf( floatx80 )

2024-09-28 Thread Florian Klämpfl via fpc-devel
> Am 28.09.2024 um 09:24 schrieb Pierre Muller via fpc-devel > : > > I think that the big endian version (see grep below) > would suffer if you would use packed > because the high field of size 2, > would put the low field of size 8 at offset 2, > which would trigger unaligned access to this f

Re: [fpc-devel] softfloat: sizeOf( floatx80 )

2024-09-28 Thread Martin Frb via fpc-devel
On 28/09/2024 09:34, Pierre Muller via fpc-devel wrote: I think that the big endian version (see grep below) would suffer if you would use packed because the high field of size 2, would put the low field of size 8 at offset 2, which would trigger unaligned access to this field. For the little en

Re: [fpc-devel] softfloat: sizeOf( floatx80 )

2024-09-28 Thread Pierre Muller via fpc-devel
I think that the big endian version (see grep below) would suffer if you would use packed because the high field of size 2, would put the low field of size 8 at offset 2, which would trigger unaligned access to this field. For the little endian definition, it doesn't change anything, does it? Pi