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
25extern 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;
35
36#endif
UINT64 uint64_t
Definition: types.h:77
hidden const struct exp_data __exp_data
#define EXP_TABLE_BITS
Definition: exp_data.h:21
#define EXP2_POLY_ORDER
Definition: exp_data.h:24
#define hidden
Definition: libm.h:73
double exp2_shift
Definition: exp_data.h:31
uint64_t tab[2 *(1<< EXP_TABLE_BITS)]
Definition: exp_data.h:33
double exp2_poly[EXP2_POLY_ORDER]
Definition: exp_data.h:32
double invln2N
Definition: exp_data.h:26
double poly[4]
Definition: exp_data.h:30
double negln2hiN
Definition: exp_data.h:28
double shift
Definition: exp_data.h:27
double negln2loN
Definition: exp_data.h:29