mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 20:24:07 +00:00
29 lines
543 B
C++
29 lines
543 B
C++
|
/*
|
||
|
* Copyright (c) 2018, Arm Limited.
|
||
|
* SPDX-License-Identifier: MIT
|
||
|
*/
|
||
|
#ifndef _LOG2_DATA_H
|
||
|
#define _LOG2_DATA_H
|
||
|
|
||
|
#include "musl_features.h"
|
||
|
|
||
|
#define LOG2_TABLE_BITS 6
|
||
|
#define LOG2_POLY_ORDER 7
|
||
|
#define LOG2_POLY1_ORDER 11
|
||
|
extern hidden const struct log2_data {
|
||
|
double invln2hi;
|
||
|
double invln2lo;
|
||
|
double poly[LOG2_POLY_ORDER - 1];
|
||
|
double poly1[LOG2_POLY1_ORDER - 1];
|
||
|
struct {
|
||
|
double invc, logc;
|
||
|
} tab[1 << LOG2_TABLE_BITS];
|
||
|
#if !__FP_FAST_FMA
|
||
|
struct {
|
||
|
double chi, clo;
|
||
|
} tab2[1 << LOG2_TABLE_BITS];
|
||
|
#endif
|
||
|
} __log2_data;
|
||
|
|
||
|
#endif
|