diff options
author | Steve Kargl <kargl@FreeBSD.org> | 2025-08-14 18:38:41 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2025-08-21 10:41:43 +0000 |
commit | 8d2c0354e138c49e2d5f6e0160fd3c710052a0ef (patch) | |
tree | b8047e5f19f309b256cfbce71dd7fd274e78e889 /contrib/gcc/config/rs6000/rtems.h | |
parent | 94b09b2f3440b16b58dd744fcaa73229f6503c10 (diff) |
[libm] Avoid left shift of signed integer entitiesstable/13
Follow-up commit d180086e6eae by fixing the left shift of signed integer
entities through the use of a helper function. Specific per file changes
are:
* lib/msun/src/e_fmodf.c:
* lib/msun/src/s_remquof.c:
. Eliminate now unused variable 'i'.
. Sort declaration statement.
. Use subnormal_ilogbf() to avoid left shift of signed integer.
* lib/msun/src/math_private.h b/lib/msun/src/math_private.h:
. Implement subnormal_ilogbf() to extract an exponent of a subnormal
float. This avoids left shifts of signed integers.
. Update nearby comment.
* lib/msun/src/s_ilogbf.c
. Fix declaration of the function statement in accordance with style(9).
. Use subnormal_ilogbf() to avoid left shift of signed integer.
PR: 288850
MFC after: 1 week
(cherry picked from commit c58c77246f88da87f309e8c449e98195d43e2c76)
Diffstat (limited to 'contrib/gcc/config/rs6000/rtems.h')
0 files changed, 0 insertions, 0 deletions