xref: /freebsd/contrib/arm-optimized-routines/pl/math/cbrtf_data.c (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1 /*
2  * Coefficients and table entries for single-precision cbrt(x).
3  *
4  * Copyright (c) 2022-2023, Arm Limited.
5  * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
6  */
7 
8 #include "math_config.h"
9 
10 const struct cbrtf_data __cbrtf_data
11   = {.poly = { /* Coefficients for very rough approximation of cbrt(x) in [0.5, 1].
12                   See cbrtf.sollya for details of generation.  */
13 	        0x1.c14e96p-2, 0x1.dd2d3p-1, -0x1.08e81ap-1, 0x1.2c74c2p-3},
14      .table = { /* table[i] = 2^((i - 2) / 3).  */
15 	        0x1.428a3p-1, 0x1.965feap-1, 0x1p0, 0x1.428a3p0, 0x1.965feap0}};
16