| 1 | /* |
| 2 | * Copyright (c) 2018, Arm Limited. |
| 3 | * SPDX-License-Identifier: MIT |
| 4 | */ |
| 5 | #ifndef _EXP_DATA_H |
| 6 | #define _EXP_DATA_H |
| 7 | |
| 8 | #include "musl_features.h" |
| 9 | #include <stdint.h> |
| 10 | |
| 11 | #define EXP_TABLE_BITS 7 |
| 12 | #define EXP_POLY_ORDER 5 |
| 13 | #define EXP_USE_TOINT_NARROW 0 |
| 14 | #define EXP2_POLY_ORDER 5 |
| 15 | extern hidden const struct exp_data { |
| 16 | double invln2N; |
| 17 | double shift; |
| 18 | double negln2hiN; |
| 19 | double negln2loN; |
| 20 | double poly[4]; /* Last four coefficients. */ |
| 21 | double exp2_shift; |
| 22 | double exp2_poly[EXP2_POLY_ORDER]; |
| 23 | uint64_t tab[2*(1 << EXP_TABLE_BITS)]; |
| 24 | } __exp_data; |
| 25 | |
| 26 | #endif |
| 27 | |