]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In C remquol() and thus also in C remainderl(), don't clobber the sign bit
authorBruce Evans <bde@FreeBSD.org>
Tue, 24 Jul 2018 11:50:05 +0000 (11:50 +0000)
committerBruce Evans <bde@FreeBSD.org>
Tue, 24 Jul 2018 11:50:05 +0000 (11:50 +0000)
commit2011986f09e0d66b91291908cd4dfc7aff616647
tree104cf856aeffa1e1ab99aef7b45e305295182f27
parent33683c3d3c55de0f42af039b57a93072c34c0f1c
In C remquol() and thus also in C remainderl(), don't clobber the sign bit
of NaNs before possible returning a NaN.

The remquo*() and remainder*() functions should now give bitwise identical
results across arches and implementations, and bitwise consistent results
(with lower precisions having truncated mantissas) across precisions.  x86
already had consistency across amd64 and i386 and precisions by using the
i387 consistently and normally not using the C versions.  Inconsistencies
for C reqmquol() were first detected on sparc64.

Remove double second clearing of the sign bit and extra blank lines.
lib/msun/src/s_remquol.c