Lines Matching +full:0 +full:- +full:25 +full:- +full:generic
1 //===-- Single-precision acosh function -----------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
16 #include "src/math/generic/common_constants.h"
17 #include "src/math/generic/explogxf.h"
35 if (LIBC_UNLIKELY(x_u >= 0x4f8ffb03)) {
40 auto round_result_slightly_down = [](float r) -> float { in __anona71a0f770102()
42 tmp = tmp - 0x1.0p-25f; in __anona71a0f770102()
45 auto round_result_slightly_up = [](float r) -> float { in __anona71a0f770202()
47 tmp = tmp + 0x1.0p-25f; in __anona71a0f770202()
52 case 0x4f8ffb03: // x = 0x1.1ff606p32f
53 return round_result_slightly_up(0x1.6fdd34p4f);
54 case 0x5c569e88: // x = 0x1.ad3d1p57f
55 return round_result_slightly_up(0x1.45c146p5f);
56 case 0x5e68984e: // x = 0x1.d1309cp61f
57 return round_result_slightly_up(0x1.5c9442p5f);
58 case 0x655890d3: // x = 0x1.b121a6p75f
59 return round_result_slightly_down(0x1.a9a3f2p5f);
60 case 0x6eb1a8ec: // x = 0x1.6351d8p94f
61 return round_result_slightly_down(0x1.08b512p6f);
62 case 0x7997f30a: // x = 0x1.2fe614p116f
63 return round_result_slightly_up(0x1.451436p6f);
68 // acosh(x) = log(x + sqrt(x^2 - 1))
70 log_eval(x_d + fputil::sqrt(fputil::multiply_add(x_d, x_d, -1.0))));