diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2025-01-10 10:34:52 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2025-01-10 10:39:34 +0000 |
commit | 9d1de25930735261c16ed874a933b4c1f1d9041e (patch) | |
tree | b0cac1c933cc1ecb885c7e757b89ffbf13f1f012 /math/expf.c | |
parent | edc5c0de794f521eb620d2b6cbaee2434442a8f3 (diff) |
Diffstat (limited to 'math/expf.c')
-rw-r--r-- | math/expf.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/math/expf.c b/math/expf.c index 08a20d59e491..6572b99a1e68 100644 --- a/math/expf.c +++ b/math/expf.c @@ -1,13 +1,15 @@ /* * Single-precision e^x function. * - * Copyright (c) 2017-2019, Arm Limited. + * Copyright (c) 2017-2024, Arm Limited. * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception */ #include <math.h> #include <stdint.h> #include "math_config.h" +#include "test_defs.h" +#include "test_sig.h" /* EXP2F_TABLE_BITS = 5 @@ -89,3 +91,9 @@ expf (float x) strong_alias (expf, __expf_finite) hidden_alias (expf, __ieee754_expf) #endif + +TEST_SIG (S, F, 1, exp, -9.9, 9.9) +TEST_ULP (expf, 0.01) +TEST_ULP_NONNEAREST (expf, 0.5) +TEST_INTERVAL (expf, 0, 0xffff0000, 10000) +TEST_SYM_INTERVAL (expf, 0x1p-14, 0x1p8, 500000) |