]> sourceware.org Git - glibc.git/commit
alpha: fix rint on sNaN input
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 2 Aug 2016 07:18:59 +0000 (09:18 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 2 Aug 2016 07:18:59 +0000 (09:18 +0200)
commitcb7f9d63b921ea1a1cbb4ab377a8484fd5da9a2b
tree43551aa2edac9c7863c3fce087e901f48c45cb1c
parent65cc568cf57156e5230db9a061645e54ff028a41
alpha: fix rint on sNaN input

The alpha version of rint wrongly return sNaN for sNaN input. Fix that
by checking for NaN and by returning the input value added with itself
in that case.

Changelog:
* sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
when it is a NaN.
* sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
ChangeLog
sysdeps/alpha/fpu/s_rint.c
sysdeps/alpha/fpu/s_rintf.c
This page took 0.040116 seconds and 5 git commands to generate.