diff options
author | Joe Ramsay <Joe.Ramsay@arm.com> | 2022-09-06 15:00:22 +0100 |
---|---|---|
committer | Joe Ramsay <joe.ramsay@arm.com> | 2022-09-06 15:00:22 +0100 |
commit | 251a040bd28ee232a63480b4036346b81995047e (patch) | |
tree | b4f73fe046684ce3cf89447d882a447b9a4db968 /pl/math/test | |
parent | 375526b26e3535091ae4bdba0a5703fa0d4a4bb7 (diff) | |
download | arm-optimized-routines-251a040bd28ee232a63480b4036346b81995047e.tar.gz |
pl/math: Add vector/SVE logf
New routine is SVE port of the Neon algorithm in math/, and is
accurate to 3.4 ULP.
Diffstat (limited to 'pl/math/test')
-rw-r--r-- | pl/math/test/mathbench_funcs.h | 3 | ||||
-rwxr-xr-x | pl/math/test/runulp.sh | 12 | ||||
-rw-r--r-- | pl/math/test/ulp_funcs.h | 2 | ||||
-rw-r--r-- | pl/math/test/ulp_wrappers.h | 1 |
4 files changed, 18 insertions, 0 deletions
diff --git a/pl/math/test/mathbench_funcs.h b/pl/math/test/mathbench_funcs.h index 076340e..1ecd1d4 100644 --- a/pl/math/test/mathbench_funcs.h +++ b/pl/math/test/mathbench_funcs.h @@ -117,6 +117,9 @@ SVF (_ZGVsMxv_cosf, -3.1, 3.1) SVF (__sv_sinf_x, -3.1, 3.1) SVF (_ZGVsMxv_sinf, -3.1, 3.1) +SVF (__sv_logf_x, 0.01, 11.1) +SVF (_ZGVsMxv_logf, 0.01, 11.1) + SVF (__sv_log10f_x, 0.01, 11.1) SVF (_ZGVsMxv_log10f, 0.01, 11.1) SVD (__sv_log10_x, 0.01, 11.1) diff --git a/pl/math/test/runulp.sh b/pl/math/test/runulp.sh index 3475adb..656d7a7 100755 --- a/pl/math/test/runulp.sh +++ b/pl/math/test/runulp.sh @@ -332,6 +332,15 @@ range_sve_log10f=' 100 inf 50000 ' +range_sve_logf=' + -0.0 -0x1p126 100 + 0x1p-149 0x1p-126 4000 + 0x1p-126 0x1p-23 50000 + 0x1p-23 1.0 50000 + 1.0 100 50000 + 100 inf 50000 +' + # error limits L_erfc=3.7 L_erfcf=1.0 @@ -359,6 +368,7 @@ L_sve_atan2f=3.0 L_sve_atan2=2.0 L_sve_log10=2.5 L_sve_log10f=3.5 +L_sve_logf=3.5 while read G F R do @@ -446,6 +456,8 @@ sve_atanf __sv_atanf $runsv sve_atanf _ZGVsMxv_atanf $runsv sve_log10f __sv_log10f $runsv sve_log10f _ZGVsMxv_log10f $runsv +sve_logf __sv_logf $runsv +sve_logf _ZGVsMxv_logf $runsv sve_cos __sv_cos $runsv sve_cos _ZGVsMxv_cos $runsv diff --git a/pl/math/test/ulp_funcs.h b/pl/math/test/ulp_funcs.h index 78fddac..01d7bd1 100644 --- a/pl/math/test/ulp_funcs.h +++ b/pl/math/test/ulp_funcs.h @@ -75,6 +75,8 @@ SVF1 (cos) ZSVF1 (cos) SVD1 (cos) ZSVD1 (cos) +SVF1 (log) +ZSVF1 (log) SVF1 (log10) ZSVF1 (log10) SVD1 (log10) diff --git a/pl/math/test/ulp_wrappers.h b/pl/math/test/ulp_wrappers.h index d275271..07fa077 100644 --- a/pl/math/test/ulp_wrappers.h +++ b/pl/math/test/ulp_wrappers.h @@ -88,6 +88,7 @@ ZVND1_WRAP(log2) ZSVNF2_WRAP(atan2) ZSVNF1_WRAP(atan) ZSVNF1_WRAP(cos) +ZSVNF1_WRAP(log) ZSVNF1_WRAP(log10) ZSVNF1_WRAP(sin) |