Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/libs/musl/src/math/exp2f_data.h
4397 views
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
25