ClickHouse/base/glibc-compatibility/musl/logf_data.h

21 lines
411 B
C++
Raw Normal View History

2019-08-01 03:20:54 +00:00
/*
* Copyright (c) 2017-2018, Arm Limited.
* SPDX-License-Identifier: MIT
*/
#ifndef _LOGF_DATA_H
#define _LOGF_DATA_H
2019-09-28 14:36:56 +00:00
#include "musl_features.h"
2019-08-01 03:20:54 +00:00
#define LOGF_TABLE_BITS 4
#define LOGF_POLY_ORDER 4
2019-09-28 14:36:56 +00:00
extern hidden const struct logf_data {
2019-08-01 03:20:54 +00:00
struct {
double invc, logc;
} tab[1 << LOGF_TABLE_BITS];
double ln2;
double poly[LOGF_POLY_ORDER - 1]; /* First order coefficient is 1. */
} __logf_data;
#endif