in reply to POSIX and -Dusequadmath
I've looked at several POSIX documents (limits.h, math.h, float.h). It seems that POSIX knows only float, double, and long double. According to Wikipedia, long double may be a 128 bit float - but unfortunately, that depends on the implementation. On x86, it is commonly the 80 bit float format of the 80x87. HP-UX and Solaris/SPARC actually use the name long double for 128 bit floats. And compilers may choose to treat long double as an alias for double, like MS VC++ does.
It looks like quadmath.h is no POSIX standard header. So strictly speaking, the FLT128_XXX definitons don't belong into the POSIX module.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: POSIX and -Dusequadmath
by syphilis (Archbishop) on Sep 09, 2017 at 12:02 UTC | |
by BillKSmith (Monsignor) on Sep 09, 2017 at 13:41 UTC | |
by syphilis (Archbishop) on Sep 10, 2017 at 14:13 UTC | |
by BrowserUk (Patriarch) on Sep 09, 2017 at 16:49 UTC | |
by syphilis (Archbishop) on Sep 10, 2017 at 13:45 UTC | |
by BrowserUk (Patriarch) on Sep 10, 2017 at 17:41 UTC |