xref: /freebsd/contrib/arm-optimized-routines/math/aarch64/experimental/log1p_data.c (revision f3087bef11543b42e0d69b708f367097a4118d24)
1*f3087befSAndrew Turner /*
2*f3087befSAndrew Turner  * Data used in double-precision log(1+x) function.
3*f3087befSAndrew Turner  *
4*f3087befSAndrew Turner  * Copyright (c) 2022-2024, Arm Limited.
5*f3087befSAndrew Turner  * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
6*f3087befSAndrew Turner  */
7*f3087befSAndrew Turner 
8*f3087befSAndrew Turner #include "math_config.h"
9*f3087befSAndrew Turner 
10*f3087befSAndrew Turner /* Polynomial coefficients generated using Remez algorithm, see
11*f3087befSAndrew Turner    log1p.sollya for details.  */
12*f3087befSAndrew Turner const struct log1p_data __log1p_data
13*f3087befSAndrew Turner     = { .coeffs
14*f3087befSAndrew Turner 	= { -0x1.ffffffffffffbp-2, 0x1.55555555551a9p-2, -0x1.00000000008e3p-2,
15*f3087befSAndrew Turner 	    0x1.9999999a32797p-3, -0x1.555555552fecfp-3, 0x1.249248e071e5ap-3,
16*f3087befSAndrew Turner 	    -0x1.ffffff8bf8482p-4, 0x1.c71c8f07da57ap-4, -0x1.9999ca4ccb617p-4,
17*f3087befSAndrew Turner 	    0x1.7459ad2e1dfa3p-4, -0x1.554d2680a3ff2p-4, 0x1.3b4c54d487455p-4,
18*f3087befSAndrew Turner 	    -0x1.2548a9ffe80e6p-4, 0x1.0f389a24b2e07p-4, -0x1.eee4db15db335p-5,
19*f3087befSAndrew Turner 	    0x1.e95b494d4a5ddp-5, -0x1.15fdf07cb7c73p-4, 0x1.0310b70800fcfp-4,
20*f3087befSAndrew Turner 	    -0x1.cfa7385bdb37ep-6 } };
21