diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2013-02-28 22:30:18 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2013-03-15 19:10:20 +0100 |
commit | 777b0332c0598ebba46685b41ea5846640751c19 (patch) | |
tree | e778f11d315ede62106259a283e621f05d18a500 /math/libm-test.inc | |
parent | 64d063b80005674a856ae4fee638a739137f6775 (diff) | |
download | glibc-777b0332c0598ebba46685b41ea5846640751c19.tar glibc-777b0332c0598ebba46685b41ea5846640751c19.tar.gz glibc-777b0332c0598ebba46685b41ea5846640751c19.tar.bz2 glibc-777b0332c0598ebba46685b41ea5846640751c19.zip |
Use GCC's builtins for generating NaNs.
Diffstat (limited to 'math/libm-test.inc')
-rw-r--r-- | math/libm-test.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc index ffb781f2b7..00e3d6e7ef 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -10626,10 +10626,10 @@ static void initialize (void) { fpstack_test ("start *init*"); - plus_zero = 0.0; - qnan_value = plus_zero / plus_zero; /* Suppress GCC warning */ - minus_zero = FUNC(copysign) (0.0, -1.0); + plus_zero = 0.0; + qnan_value = FUNC (__builtin_nan) (""); + minus_zero = FUNC (copysign) (0.0, -1.0); plus_infty = CHOOSE (HUGE_VALL, HUGE_VAL, HUGE_VALF, HUGE_VALL, HUGE_VAL, HUGE_VALF); minus_infty = CHOOSE (-HUGE_VALL, -HUGE_VAL, -HUGE_VALF, |