1570af302Sopenharmony_ci/* 2570af302Sopenharmony_ci * Copyright (c) 2017-2018, Arm Limited. 3570af302Sopenharmony_ci * SPDX-License-Identifier: MIT 4570af302Sopenharmony_ci */ 5570af302Sopenharmony_ci#ifndef _LOGF_DATA_H 6570af302Sopenharmony_ci#define _LOGF_DATA_H 7570af302Sopenharmony_ci 8570af302Sopenharmony_ci#include <features.h> 9570af302Sopenharmony_ci 10570af302Sopenharmony_ci#define LOGF_TABLE_BITS 4 11570af302Sopenharmony_ci#define LOGF_POLY_ORDER 4 12570af302Sopenharmony_ciextern hidden const struct logf_data { 13570af302Sopenharmony_ci struct { 14570af302Sopenharmony_ci double invc, logc; 15570af302Sopenharmony_ci } tab[1 << LOGF_TABLE_BITS]; 16570af302Sopenharmony_ci double ln2; 17570af302Sopenharmony_ci double poly[LOGF_POLY_ORDER - 1]; /* First order coefficient is 1. */ 18570af302Sopenharmony_ci} __logf_data; 19570af302Sopenharmony_ci 20570af302Sopenharmony_ci#endif 21