xref: /aosp_15_r20/external/arm-optimized-routines/pl/math/asinf_data.c (revision 412f47f9e737e10ed5cc46ec6a8d7fa2264f8a14)
1*412f47f9SXin Li /*
2*412f47f9SXin Li  * Coefficients for single-precision asin(x) function.
3*412f47f9SXin Li  *
4*412f47f9SXin Li  * Copyright (c) 2023, Arm Limited.
5*412f47f9SXin Li  * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
6*412f47f9SXin Li  */
7*412f47f9SXin Li 
8*412f47f9SXin Li #include "math_config.h"
9*412f47f9SXin Li 
10*412f47f9SXin Li /* Approximate asinf(x) directly in [0x1p-24, 0.25]. See for tools/asinf.sollya
11*412f47f9SXin Li    for these coeffs were generated.  */
12*412f47f9SXin Li const float __asinf_poly[] = {
13*412f47f9SXin Li   /* Polynomial approximation of  (asin(sqrt(x)) - sqrt(x)) / (x * sqrt(x))  on
14*412f47f9SXin Li      [ 0x1p-24 0x1p-2 ] order = 4 rel error: 0x1.00a23bbp-29 .  */
15*412f47f9SXin Li   0x1.55555ep-3, 0x1.33261ap-4, 0x1.70d7dcp-5, 0x1.b059dp-6, 0x1.3af7d8p-5,
16*412f47f9SXin Li };
17