Mail Archives: djgpp/1998/04/27/03:02:42
On Sun, 26 Apr 1998, Kbwms wrote:
> It makes little sense to me to claim that float values
> are checked, when the keyword "Single" is defined, only to discover that
> such is not the case.
Your conclusions are wrong, IMHO. When `Single' is defined,
paranoia.c *does* test single-precision float computations, since all
the variables are declared float instead of double. So when a value
is stored in a variable, its low-order bits are lost. And since
paranoia.c should be compiled without optimizations, the results
*will* be different in the single-precision version.
Please note that the main purpose of paranoia.c is to reveal the
characteristics of the underlying FP arithmetics and the FP code
generated by the compiler, not to test the library functions (that's
the purpose of elefunt). AFAIK, library functions are only used in
paranoia.c to help determining these FP characteristics.
So in my view, defining `Single' goes a long way towards accomplishing
the goal for which paranoia.c was written, for single-precision
computations.
- Raw text -