Fix the documentation comment of checkint in powf
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 19 Sep 2018 09:09:41 +0000 (10:09 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 19 Sep 2018 09:13:20 +0000 (10:13 +0100)
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.

ChangeLog
sysdeps/ieee754/flt-32/e_powf.c

index 57ba532..cecbdf4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
 
+       * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
+
+2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
        * NEWS: Mention pow improvements.
        * math/Makefile (type-double-routines): Add e_pow_log_data.
        * sysdeps/generic/math_private.h (__exp1): Remove.
index ece83f0..d0c9121 100644 (file)
@@ -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)
 {