exp2f_data.h raw
1 /*
2 * Copyright (c) 2017-2018, Arm Limited.
3 * SPDX-License-Identifier: MIT
4 */
5 #ifndef _EXP2F_DATA_H
6 #define _EXP2F_DATA_H
7
8 #include <features.h>
9 #include <stdint.h>
10
11 /* Shared between expf, exp2f and powf. */
12 #define EXP2F_TABLE_BITS 5
13 #define EXP2F_POLY_ORDER 3
14 extern hidden const struct exp2f_data {
15 uint64_t tab[1 << EXP2F_TABLE_BITS];
16 double shift_scaled;
17 double poly[EXP2F_POLY_ORDER];
18 double shift;
19 double invln2_scaled;
20 double poly_scaled[EXP2F_POLY_ORDER];
21 } __exp2f_data;
22
23 #endif
24