Mercurial > hg > octave-kai > gnulib-hg
view modules/random_r @ 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 | 18ea6ab4e81d |
children | 221318b8a54e |
line wrap: on
line source
Description: reentrant random number generator Files: lib/random_r.c m4/random_r.m4 Depends-on: stdlib stdint configure.ac: gl_FUNC_RANDOM_R gl_STDLIB_MODULE_INDICATOR([random_r]) Makefile.am: Include: <stdlib.h> License: LGPLv2+ Maintainer: Jim Meyering, glibc