Mercurial > hg > octave-kai > gnulib-hg
view modules/signbit-tests @ 13837:d7a891a411c1
strtod: work around icc bug
With optimization, ICC 10.0 mis-compiles 'cond ? -val : val' such
that a val of 0.0 doesn't result in -0.0.
* lib/strtod.c (minus_zero): Define to working value.
(strtod): Use it to avoid icc bug.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Fri, 05 Nov 2010 08:30:27 -0600 |
parents | 108bbfd6f03b |
children | 328819af1c02 |
line wrap: on
line source
Files: tests/test-signbit.c tests/minus-zero.h tests/macros.h m4/exponentf.m4 m4/exponentd.m4 m4/exponentl.m4 Depends-on: float configure.ac: AC_REQUIRE([gl_FLOAT_EXPONENT_LOCATION]) AC_REQUIRE([gl_DOUBLE_EXPONENT_LOCATION]) AC_REQUIRE([gl_LONG_DOUBLE_EXPONENT_LOCATION]) Makefile.am: TESTS += test-signbit check_PROGRAMS += test-signbit