summaryrefslogtreecommitdiff
path: root/lib/libm/frexpf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libm/frexpf.c')
-rw-r--r--lib/libm/frexpf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libm/frexpf.c b/lib/libm/frexpf.c
index 711129fb..9eb91c21 100644
--- a/lib/libm/frexpf.c
+++ b/lib/libm/frexpf.c
@@ -1,5 +1,5 @@
-#include <math.h>
-#include <stdint.h>
+#include <math.h> // for frexpf
+#include <stdint.h> // for uint32_t
float frexpf(float x, int *e)
{
@@ -16,7 +16,8 @@ float frexpf(float x, int *e)
} else
*e = 0;
return x;
- } else if (ee == 0xff) {
+ }
+ if (ee == 0xff) {
return x;
}