Posts: 336
Threads: 24
Joined: Apr 2022
Reputation:
19
using a structure of 32 bytes I could rewrite my decfloat routines to give 56 digits vs 19 of _Float
Posts: 336
Threads: 24
Joined: Apr 2022
Reputation:
19
I don't understand why you posted that link, don't see the relevance to this thread
from the time the Intel FPU was introduced the extended type was 80-bits, some compiler makers don't like to implement 80-bit long double so they make long double the same as double
the only thing that I am concerned here is the size, 80-bit = 10 bytes but it needs to be padded for memory alignment, in Windows 32-bit it should be 12 bytes total and in Windows 64-bit it should be 16 bytes total, in Linux I think that it's 16 bytes
Posts: 1,507
Threads: 160
Joined: Apr 2022
Reputation:
116
And as far as padding is concerned, you shouldn't need any for _FLOAT.
32-bit data structures are padded on 4-byte chunks. 64-bit data structures are padded on 8-byte chunks. A _FLOAT is 32-bytes and fits perfectly into both those patterns. Just make certain to count 32-bytes for the size, without getting confused over the fact that we're only currently using part of it.
Posts: 336
Threads: 24
Joined: Apr 2022
Reputation:
19
SMcNeill, about what time is the surgery to take place?