aboutsummaryrefslogtreecommitdiff
path: root/math/math_config.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2018-05-10 17:53:31 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2018-05-16 13:52:13 +0100
commitc65db17340782d647c49e17cbba244862dc38402 (patch)
tree781a38089ac7431fba502e213a328bca0f3a0b14 /math/math_config.h
parent2f2d687988c6614e3d2f8636dce5b2d1a10683e5 (diff)
downloadarm-optimized-routines-c65db17340782d647c49e17cbba244862dc38402.tar.gz
Use fixed 32bit sign argument to error functions
Ideally sign should be bool, but we don't want to depend on stdbool.h and 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. While working on double precision versions i realized that the unsigned long argument is fragile (may fail on 32bit targets only).
Diffstat (limited to 'math/math_config.h')
-rw-r--r--math/math_config.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/math/math_config.h b/math/math_config.h
index 70bd6c0..c8e7d78 100644
--- a/math/math_config.h
+++ b/math/math_config.h
@@ -138,10 +138,10 @@ issignalingf_inline (float x)
# define NOINLINE
#endif
-HIDDEN float __math_oflowf (unsigned long);
-HIDDEN float __math_uflowf (unsigned long);
-HIDDEN float __math_may_uflowf (unsigned long);
-HIDDEN float __math_divzerof (unsigned long);
+HIDDEN float __math_oflowf (uint32_t);
+HIDDEN float __math_uflowf (uint32_t);
+HIDDEN float __math_may_uflowf (uint32_t);
+HIDDEN float __math_divzerof (uint32_t);
HIDDEN float __math_invalidf (float);
/* Shared between expf, exp2f and powf. */