[PATCH 1/6] Use uint32_t sign in single precision math error handling, functions
Szabolcs Nagy
szabolcs.nagy@arm.com
Wed Jun 27 14:52:00 GMT 2018
Ideally sign should be bool, but sometimes (e.g. in powf) it's more
efficient to pass a non-zero value than 1 to indicate that the sign
should be set. The fixed size int is less ambigous than unsigned
long.
2018-06-27 Szabolcs Nagy <szabolcs.nagy@arm.com>
* sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
(exp2f_inline): Likewise.
* sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
(__math_uflowf): Likewise.
(__math_may_uflowf): Likewise.
(__math_divzerof): Likewise.
(__math_invalidf): Likewise.
* sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
(__math_oflowf): Likewise.
(__math_uflowf): Likewise.
(__math_may_uflowf): Likewise.
(__math_divzerof): Likewise.
(__math_invalidf): Likewise.
---
sysdeps/ieee754/flt-32/e_powf.c | 4 ++--
sysdeps/ieee754/flt-32/math_config.h | 8 ++++----
sysdeps/ieee754/flt-32/math_errf.c | 10 +++++-----
3 files changed, 11 insertions(+), 11 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-uint32_t-sign-in-single-precision-math-error-han.patch.diff
Type: text/x-patch
Size: 2894 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20180627/33f74b5c/attachment.bin>
More information about the Libc-alpha
mailing list