From 9ef6ca4235b7a66aefa432295c02b4df64a53f2e Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sun, 22 Oct 2017 13:51:35 +0000 Subject: math: add single precision error handling functions These are supposed to be used in tail call positions when handling special cases in new code. (fp exceptions may be raised "naturally" by the common code path if special casing is more effort.) This implements the error handling apis used in https://github.com/ARM-software/optimized-routines without errno setting. --- src/math/__math_oflowf.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/math/__math_oflowf.c (limited to 'src/math/__math_oflowf.c') diff --git a/src/math/__math_oflowf.c b/src/math/__math_oflowf.c new file mode 100644 index 00000000..fa7d0620 --- /dev/null +++ b/src/math/__math_oflowf.c @@ -0,0 +1,6 @@ +#include "libm.h" + +float __math_oflowf(uint32_t sign) +{ + return __math_xflowf(sign, 0x1p97f); +} -- cgit v1.2.1