Lines Matching +full:left +full:- +full:shifted
2 * Single-precision vector exp(x) - 1 function.
4 * Copyright (c) 2022-2024, Arm Limited.
5 * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
25 underflow bound is greater than this, so it catches both cases - there is
29 /* asuint(oflow_bound) - asuint(0x1p-23), shifted left by 1 for absolute
35 /* asuint(0x1p-23), shifted by 1 for abs compare. */
42 expm1f, x, expm1f_inline (v_zerofy_f32 (x, special), &d->d), special); in special_case()
45 /* Single-precision vector exp(x) - 1 function.
47 _ZGVnN4v_expm1f(0x1.85f83p-2) got 0x1.da9f4p-2
48 want 0x1.da9f44p-2. */
56 |x| < 2^-23, |x| > oflow_bound, Inf & NaN. Add ix to itself for in V_NAME_F1()
57 shift-left by 1, and compare with thresh which was left-shifted offline - in V_NAME_F1()
60 = vcgeq_u32 (vsubq_u32 (vaddq_u32 (ix, ix), TinyBound), d->thresh); in V_NAME_F1()
62 /* Handles very large values (+ve and -ve), +/-NaN, +/-Inf. */ in V_NAME_F1()
63 uint32x4_t special = vcagtq_f32 (x, d->oflow_bound); in V_NAME_F1()
69 /* expm1(x) ~= p * t + (t - 1). */ in V_NAME_F1()
70 return expm1f_inline (x, &d->d); in V_NAME_F1()
75 TEST_SIG (V, F, 1, expm1, -9.9, 9.9)
78 TEST_SYM_INTERVAL (V_NAME_F1 (expm1), 0, 0x1p-23, 1000)
79 TEST_INTERVAL (V_NAME_F1 (expm1), -0x1p-23, 0x1.5ebc4p+6, 1000000)
80 TEST_INTERVAL (V_NAME_F1 (expm1), -0x1p-23, -0x1.9bbabcp+6, 1000000)
82 TEST_INTERVAL (V_NAME_F1 (expm1), -0x1.9bbabcp+6, -inf, 1000)