Mercurial > hg > octave-kai > gnulib-hg
view modules/xstrtol @ 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 | deaaf2799f5d |
children | 94f2b4a2e01c |
line wrap: on
line source
Description: Convert string to 'long' or 'unsigned long', with error checking. Files: lib/xstrtol.h lib/xstrtol.c lib/xstrtoul.c lib/xstrtol-error.c m4/xstrtol.m4 Depends-on: exitfail error getopt-gnu gettext-h intprops inttypes configure.ac: gl_XSTRTOL Makefile.am: Include: "xstrtol.h" License: GPL Maintainer: Jim Meyering