From: <gb...@di...> - 2000-09-03 07:56:21
|
Hi, > I just grepped all the compiler include files with "float80" and > "quadruple" -- no [relevant] hits. But it's always possible that > I'm missing something. The compiler may handle tokens starting with "__" internally. I am sorry but I don't have VC++ documentation. BTW, CodeWarrior only has 64-bit long doubles as well. > >I think that an implementation claiming IEEE-754 compliance would have > >adequate float and double type representations. long doubles could also > >be 128-bit long. > > Yes ... strictly speaking it's compliant, but adequate? Not for > our purposes at least :) Reading the C standard again, I came up with <fenv.h> which gives access to the floating-point environment. Something to explore further. i.e. check if the implementation provides fenv_t, fexcept_t, FE_INEXACT, ... Problem: that doesn't appear to be part of the C++ standard but using C from C++ is not a problem ;-) Another problem: all C implementations may not provide those features yet. CodeWarrior appears to support that. GCC and an old glibc 2.0.x doesn't but it seems that glibc 2.1.x will (?). -- Gwenolé Beauchesne |