aboutsummaryrefslogtreecommitdiff
path: root/lib/libthr/arch/(public-mirror)
diff options
context:
space:
mode:
authorSteve Kargl <kargl@FreeBSD.org>2025-08-12 04:26:29 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2025-08-12 05:31:03 +0000
commitd180086e6eae2e152e803ed6cf13775a7c006dc7 (patch)
tree78ab2332cf8c2e810647537a172135a2b532c06a /lib/libthr/arch/(public-mirror)
parent4a94dee2a497203e622f458e2011908129b73907 (diff)
[libm] Fix undefined behavior of a left shifted of a signed integerHEADmain
The patch fixes a few instances of left shifts on signed integer entities. A 'static inline' helper function 'subnormal_ilogb()' has been added to math_private.h. This function is then used e_fmod.c, s_ilogb(), and s_remquo.c. The change in s_remquo.c has only been compile tested. The change to e_fmod.c has been test on over 3 billion pairs of subnormal numbers where testing included x > y and x < y pairs. The test compared the output from fmod() with the output from mpfr_fmod() from MPFR. There were no difference. The change to s_ilogb() has had limited testing where its output was compared against frexp(). In this testing, no differences in output were detected. PR: 288778 MFC after: 1 week
Diffstat (limited to 'lib/libthr/arch/(public-mirror)')
0 files changed, 0 insertions, 0 deletions