about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2018-09-19 10:09:41 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2018-09-19 10:13:20 +0100
commitd734727837b5135c4c4c540d8c53e5a06aa7556a (patch)
tree33e091a8bc1bcf3fd248355a5a7af09c6821500f /sysdeps
parent424c4f60ed6190e2ea0e72e0873bf3ebcbbf5448 (diff)
downloadglibc-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')
-rw-r--r--sysdeps/ieee754/flt-32/e_powf.c3
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)
 {