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