diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2018-09-19 10:09:41 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2018-09-19 10:13:20 +0100 |
commit | d734727837b5135c4c4c540d8c53e5a06aa7556a (patch) | |
tree | 33e091a8bc1bcf3fd248355a5a7af09c6821500f /sysdeps/ieee754 | |
parent | 424c4f60ed6190e2ea0e72e0873bf3ebcbbf5448 (diff) | |
download | glibc-d734727837b5135c4c4c540d8c53e5a06aa7556a.tar.gz glibc-d734727837b5135c4c4c540d8c53e5a06aa7556a.tar.xz glibc-d734727837b5135c4c4c540d8c53e5a06aa7556a.zip |
Fix the documentation comment of checkint in powf
checkint in powf is not supposed to be used with 0, inf or nan inputs. * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r-- | sysdeps/ieee754/flt-32/e_powf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/ieee754/flt-32/e_powf.c b/sysdeps/ieee754/flt-32/e_powf.c index ece83f0dd2..d0c912188f 100644 --- a/sysdeps/ieee754/flt-32/e_powf.c +++ b/sysdeps/ieee754/flt-32/e_powf.c @@ -118,7 +118,8 @@ exp2_inline (double_t xd, uint32_t sign_bias) return y; } -/* Returns 0 if not int, 1 if odd int, 2 if even int. */ +/* Returns 0 if not int, 1 if odd int, 2 if even int. The argument is + the bit representation of a non-zero finite floating-point value. */ static inline int checkint (uint32_t iy) { |