diff options
author | Joe Ramsay <Joe.Ramsay@arm.com> | 2022-07-15 08:56:20 +0100 |
---|---|---|
committer | Joe Ramsay <joe.ramsay@arm.com> | 2022-07-15 08:56:20 +0100 |
commit | 83a43cd7afcbdca7e192704121acfad6fa24cb67 (patch) | |
tree | 745a769bb89ad8dc0fcc755411f52f14af9a1d8a /pl/math/v_math.h | |
parent | 241ac3945ce507f6d08f66fcf11596d785ba933f (diff) | |
download | arm-optimized-routines-83a43cd7afcbdca7e192704121acfad6fa24cb67.tar.gz |
pl/math: Add vector/Neon asinhf
The new routine uses vector log1pf, and is accurate to 2.7 ulp.
Diffstat (limited to 'pl/math/v_math.h')
-rw-r--r-- | pl/math/v_math.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pl/math/v_math.h b/pl/math/v_math.h index 4de3609..ccdfd75 100644 --- a/pl/math/v_math.h +++ b/pl/math/v_math.h @@ -213,6 +213,11 @@ v_sel_u32 (v_u32_t p, v_u32_t x, v_u32_t y) { return p ? x : y; } +static inline v_f32_t +v_sqrt_f32 (v_f32_t x) +{ + return __builtin_sqrtf (x); +} /* convert to type1 from type2. */ static inline v_f32_t v_to_f32_s32 (v_s32_t x) @@ -553,6 +558,11 @@ v_sel_u32 (v_u32_t p, v_u32_t x, v_u32_t y) { return vbslq_u32 (p, x, y); } +static inline v_f32_t +v_sqrt_f32 (v_f32_t x) +{ + return vsqrtq_f32 (x); +} /* convert to type1 from type2. */ static inline v_f32_t v_to_f32_s32 (v_s32_t x) |