Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/lib/libm/src



Module Name:    src
Committed By:   gdt
Date:           Fri Sep 20 18:08:33 UTC 2024

Modified Files:
        src/lib/libm/src: s_remquo.c

Log Message:
libm/remquo: Fix bug where wrong quotient was returned

Fix taken from FreeBSD:

  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=166463
  https://cgit.freebsd.org/src/commit/lib/msun/src/s_remquo.c?id=1cbd288942b08217e99bf889e0967895d53af00c

FreeBSD commit message:

  Fix a bug in remquo{,f,l}, in which the quotient didn't always have the
  correct sign when the remainder was 0.

  Fix a separate bug in remquo alone, in which the remainder and
  quotient were both off by a bit in certain cases involving subnormal
  remainders.

  The bugs affected all platforms except amd64 and i386, on which the
  routines are implemented in assembly.

(On NetBSD, this bug manifests on amd64.)

\todo pullups
\todo check/fix remquof and remquol


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_remquo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index