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/internal/libm.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/internal') diff --git a/src/internal/libm.h b/src/internal/libm.h index 09fcfde3..a52a0b83 100644 --- a/src/internal/libm.h +++ b/src/internal/libm.h @@ -216,4 +216,11 @@ extern int __signgam; hidden double __lgamma_r(double, int *); hidden float __lgammaf_r(float, int *); +/* error handling functions */ +hidden float __math_xflowf(uint32_t, float); +hidden float __math_uflowf(uint32_t); +hidden float __math_oflowf(uint32_t); +hidden float __math_divzerof(uint32_t); +hidden float __math_invalidf(float); + #endif -- cgit v1.2.1