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 it is
negative and |n*y| > |x|
PR: 251091
MFC after: 3 days
Differential D53023
libm: remainder: make sure x is zero vexeduxr on Fri, Oct 10, 12:57 PM. Authored by Tags None Referenced Files
Subscribers None
Details Make sure the entirety of x is zero before flipping the sign bit. PR: 251091 This fixes the "rem3" test on powerpc64. It should also fix it on the rest of the architectures, but I haven't tested them.
Diff Detail
Event TimelineComment Actions Will do. I tried to add him to the review before uploading the patch but couldn't find an account. Comment Actions
I don't think he has one; I'd suggest mailing him with the patch attached, but you can include a link to this review as well. Comment Actions On Sat Oct 11, 2025 at 2:26 AM +0300, Steve Kargl wrote:
|