ReactOS 0.4.17-dev-1321-g5c122a9
pow_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 pow.
5 * COPYRIGHT: Imported from musl libc
6 * https://git.musl-libc.org/cgit/musl/tree/src/math/pow_data.h
7 * blob: 5d609ae80ec210badf3f705417e80d0f31da9f51
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 _POW_DATA_H
16#define _POW_DATA_H
17
18#include "libm.h"
19
20#define POW_LOG_TABLE_BITS 7
21#define POW_LOG_POLY_ORDER 8
22extern hidden const struct pow_log_data {
23 double ln2hi;
24 double ln2lo;
25 double poly[POW_LOG_POLY_ORDER - 1]; /* First coefficient is 1. */
26 /* Note: the pad field is unused, but allows slightly faster indexing. */
27 struct {
28 double invc, pad, logc, logctail;
31
32#endif
#define hidden
Definition: libm.h:73
hidden const struct pow_log_data __pow_log_data
#define POW_LOG_TABLE_BITS
Definition: pow_data.h:20
#define POW_LOG_POLY_ORDER
Definition: pow_data.h:21
double logc
Definition: pow_data.h:28
double ln2lo
Definition: pow_data.h:24
double logctail
Definition: pow_data.h:28
double invc
Definition: pow_data.h:28
struct pow_log_data::@5476 tab[1<< POW_LOG_TABLE_BITS]
double ln2hi
Definition: pow_data.h:23
double pad
Definition: pow_data.h:28
double poly[POW_LOG_POLY_ORDER - 1]
Definition: pow_data.h:25