1/*
2 * Copyright (c) 2018, Arm Limited.
3 * SPDX-License-Identifier: MIT
4 */
5#ifndef _POW_DATA_H
6#define _POW_DATA_H
7
8#include "musl_features.h"
9
10#define POW_LOG_TABLE_BITS 7
11#define POW_LOG_POLY_ORDER 8
12extern hidden const struct pow_log_data {
13 double ln2hi;
14 double ln2lo;
15 double poly[POW_LOG_POLY_ORDER - 1]; /* First coefficient is 1. */
16 /* Note: the pad field is unused, but allows slightly faster indexing. */
17 struct {
18 double invc, pad, logc, logctail;
19 } tab[1 << POW_LOG_TABLE_BITS];
20} __pow_log_data;
21
22#endif
23