From 9d1de25930735261c16ed874a933b4c1f1d9041e Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Fri, 10 Jan 2025 10:34:52 +0000 Subject: Update the Arm Optimized Routines Import the v25.01 release of the Arm Optimized Routines [1]. [1] https://github.com/ARM-software/optimized-routines/tree/v25.01 Sponsored by: Arm Ltd --- math/erf.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'math/erf.c') diff --git a/math/erf.c b/math/erf.c index 5f9f40dda264..2c93a304346a 100644 --- a/math/erf.c +++ b/math/erf.c @@ -1,13 +1,15 @@ /* * Double-precision erf(x) function. * - * Copyright (c) 2020, Arm Limited. + * Copyright (c) 2020-2024, Arm Limited. * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception */ #include "math_config.h" #include #include +#include "test_defs.h" +#include "test_sig.h" #define TwoOverSqrtPiMinusOne 0x1.06eba8214db69p-3 #define C 0x1.b0ac16p-1 @@ -242,3 +244,11 @@ erf (double x) return 1.0; } } + +TEST_SIG (S, D, 1, erf, -6.0, 6.0) +TEST_ULP (erf, 0.51) +TEST_ULP_NONNEAREST (erf, 0.9) +TEST_INTERVAL (erf, 0, 0xffff000000000000, 10000) +TEST_SYM_INTERVAL (erf, 0x1p-1022, 0x1p-26, 40000) +TEST_SYM_INTERVAL (erf, 0x1p-26, 0x1p3, 40000) +TEST_INTERVAL (erf, 0, inf, 40000) -- cgit v1.2.3