@@ -35,25 +35,25 @@ LIBC_INLINE static constexpr float16 asinhf16(float16 x) {
35
35
constexpr size_t N_EXCEPTS = 8 ;
36
36
37
37
constexpr fputil::ExceptValues<float16, N_EXCEPTS> ASINHF16_EXCEPTS{{
38
- // (input, RZ output, RU offset, RD offset, RN offset)
39
-
40
- // x = 0x1.da4p-2, asinhf16(x) = 0x1.ca8p-2 (RZ)
41
- {0x3769 , 0x372a , 1 , 0 , 1 },
42
- // x = 0x1.d6cp-1, asinhf16(x) = 0x1.a58p-1 (RZ)
43
- {0x3b5b , 0x3a96 , 1 , 0 , 0 },
44
- // x = 0x1.c7cp+3, asinhf16(x) = 0x1.accp+1 (RZ)
45
- {0x4b1f , 0x42b3 , 1 , 0 , 0 },
46
- // x = 0x1.26cp+4, asinhf16(x) = 0x1.cd8p+1 (RZ)
47
- {0x4c9b , 0x4336 , 1 , 0 , 1 },
48
- // x = -0x1.da4p-2, asinhf16(x) = -0x1.ca8p-2 (RZ)
49
- {0xb769 , 0xb72a , 0 , 1 , 1 },
50
- // x = -0x1.d6cp-1, asinhf16(x) = -0x1.a58p-1 (RZ)
51
- {0xbb5b , 0xba96 , 0 , 1 , 0 },
52
- // x = -0x1.c7cp+3, asinhf16(x) = -0x1.accp+1 (RZ)
53
- {0xcb1f , 0xc2b3 , 0 , 1 , 0 },
54
- // x = -0x1.26cp+4, asinhf16(x) = -0x1.cd8p+1 (RZ)
55
- {0xcc9b , 0xc336 , 0 , 1 , 1 },
56
- }};
38
+ // (input, RZ output, RU offset, RD offset, RN offset)
39
+
40
+ // x = 0x1.da4p-2, asinhf16(x) = 0x1.ca8p-2 (RZ)
41
+ {0x3769 , 0x372a , 1 , 0 , 1 },
42
+ // x = 0x1.d6cp-1, asinhf16(x) = 0x1.a58p-1 (RZ)
43
+ {0x3b5b , 0x3a96 , 1 , 0 , 0 },
44
+ // x = 0x1.c7cp+3, asinhf16(x) = 0x1.accp+1 (RZ)
45
+ {0x4b1f , 0x42b3 , 1 , 0 , 0 },
46
+ // x = 0x1.26cp+4, asinhf16(x) = 0x1.cd8p+1 (RZ)
47
+ {0x4c9b , 0x4336 , 1 , 0 , 1 },
48
+ // x = -0x1.da4p-2, asinhf16(x) = -0x1.ca8p-2 (RZ)
49
+ {0xb769 , 0xb72a , 0 , 1 , 1 },
50
+ // x = -0x1.d6cp-1, asinhf16(x) = -0x1.a58p-1 (RZ)
51
+ {0xbb5b , 0xba96 , 0 , 1 , 0 },
52
+ // x = -0x1.c7cp+3, asinhf16(x) = -0x1.accp+1 (RZ)
53
+ {0xcb1f , 0xc2b3 , 0 , 1 , 0 },
54
+ // x = -0x1.26cp+4, asinhf16(x) = -0x1.cd8p+1 (RZ)
55
+ {0xcc9b , 0xc336 , 0 , 1 , 1 },
56
+ }};
57
57
#endif // !LIBC_MATH_HAS_SKIP_ACCURATE_PASS
58
58
59
59
using namespace acoshf_internal ;
@@ -110,8 +110,6 @@ LIBC_INLINE static constexpr float16 asinhf16(float16 x) {
110
110
float sqrt_term = fputil::sqrt<float >(fputil::multiply_add (xf, xf, 1 .0f ));
111
111
return fputil::cast<float16>(
112
112
x_sign * log_eval (fputil::multiply_add (xf, x_sign, sqrt_term)));
113
-
114
-
115
113
}
116
114
117
115
} // namespace math
0 commit comments