ReactOS 0.4.17-dev-1321-g5c122a9
log_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 log.
5 * COPYRIGHT: Imported from musl libc
6 * https://git.musl-libc.org/cgit/musl/tree/src/math/log_data.h
7 * blob: 1be22ab242a3699fe192ec7bb636d29babca5074
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 _LOG_DATA_H
16#define _LOG_DATA_H
17
18#include "libm.h"
19
20#define LOG_TABLE_BITS 7
21#define LOG_POLY_ORDER 6
22#define LOG_POLY1_ORDER 12
23extern hidden const struct log_data {
24 double ln2hi;
25 double ln2lo;
26 double poly[LOG_POLY_ORDER - 1]; /* First coefficient is 1. */
28 struct {
29 double invc, logc;
31#if !__FP_FAST_FMA
32 struct {
33 double chi, clo;
35#endif
37
38#endif
#define hidden
Definition: libm.h:73
#define LOG_POLY1_ORDER
Definition: log_data.h:22
#define LOG_POLY_ORDER
Definition: log_data.h:21
#define LOG_TABLE_BITS
Definition: log_data.h:20
hidden const struct log_data __log_data
double chi
Definition: log_data.h:33
double clo
Definition: log_data.h:33
double ln2hi
Definition: log_data.h:24
double invc
Definition: log_data.h:29
double poly[LOG_POLY_ORDER - 1]
Definition: log_data.h:26
double logc
Definition: log_data.h:29
double ln2lo
Definition: log_data.h:25
struct log_data::@5475 tab2[1<< LOG_TABLE_BITS]
struct log_data::@5474 tab[1<< LOG_TABLE_BITS]
double poly1[LOG_POLY1_ORDER - 1]
Definition: log_data.h:27