ReactOS
0.4.17-dev-1321-g5c122a9
exp_data.h
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS CRT
3
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4
* PURPOSE: Data tables for exp and pow.
5
* COPYRIGHT: Imported from musl libc
6
* https://git.musl-libc.org/cgit/musl/tree/src/math/exp_data.h
7
* blob: 3e24bac57a80f46c4a7b75aefe7215df810e85b6
8
* See https://git.musl-libc.org/cgit/musl/tree/COPYRIGHT
9
*/
10
11
/*
12
* Copyright (c) 2018, Arm Limited.
13
* SPDX-License-Identifier: MIT
14
*/
15
#ifndef _EXP_DATA_H
16
#define _EXP_DATA_H
17
18
#include "
libm.h
"
19
#include <stdint.h>
20
21
#define EXP_TABLE_BITS 7
22
#define EXP_POLY_ORDER 5
23
#define EXP_USE_TOINT_NARROW 0
24
#define EXP2_POLY_ORDER 5
25
extern
hidden
const
struct
exp_data
{
26
double
invln2N
;
27
double
shift
;
28
double
negln2hiN
;
29
double
negln2loN
;
30
double
poly
[4];
/* Last four coefficients. */
31
double
exp2_shift
;
32
double
exp2_poly
[
EXP2_POLY_ORDER
];
33
uint64_t
tab
[2*(1 <<
EXP_TABLE_BITS
)];
34
}
__exp_data
;
35
36
#endif
uint64_t
UINT64 uint64_t
Definition:
types.h:77
__exp_data
hidden const struct exp_data __exp_data
EXP_TABLE_BITS
#define EXP_TABLE_BITS
Definition:
exp_data.h:21
EXP2_POLY_ORDER
#define EXP2_POLY_ORDER
Definition:
exp_data.h:24
hidden
#define hidden
Definition:
libm.h:73
libm.h
exp_data
Definition:
exp_data.h:25
exp_data::exp2_shift
double exp2_shift
Definition:
exp_data.h:31
exp_data::tab
uint64_t tab[2 *(1<< EXP_TABLE_BITS)]
Definition:
exp_data.h:33
exp_data::exp2_poly
double exp2_poly[EXP2_POLY_ORDER]
Definition:
exp_data.h:32
exp_data::invln2N
double invln2N
Definition:
exp_data.h:26
exp_data::poly
double poly[4]
Definition:
exp_data.h:30
exp_data::negln2hiN
double negln2hiN
Definition:
exp_data.h:28
exp_data::shift
double shift
Definition:
exp_data.h:27
exp_data::negln2loN
double negln2loN
Definition:
exp_data.h:29
sdk
lib
crt
math
exp_data.h
Generated on Tue Nov 10 2026 06:22:10 for ReactOS by
1.9.6