HomeFreeBSD

libm: remainder: make sure x is zero

Description

libm: remainder: make sure x is zero

Make sure the entirety of x is zero before flipping the sign bit.
Otherwise the sign would be wrong for small values of x when x is
negative and |n*y| > |x|

Reported by: alfredo
PR: 251091
Reviewed by: kargl
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D53023

(cherry picked from commit 25cca51ed294890d20a3c0290814cd26875db686)

Details

Provenance
vexeduxrAuthored on Fri, Oct 10, 9:30 AM
Differential Revision
D53023: libm: remainder: make sure x is zero
Parents
rGe9010214e9be: EC2: Fix additional files on small+builder AMIs
Branches
Unknown
Tags
Unknown