getopt: fix null pointer arithmetic ub
[musl] / src / math / logf_data.h
1 /*
2  * Copyright (c) 2017-2018, Arm Limited.
3  * SPDX-License-Identifier: MIT
4  */
5 #ifndef _LOGF_DATA_H
6 #define _LOGF_DATA_H
7
8 #include <features.h>
9
10 #define LOGF_TABLE_BITS 4
11 #define LOGF_POLY_ORDER 4
12 extern hidden const struct logf_data {
13         struct {
14                 double invc, logc;
15         } tab[1 << LOGF_TABLE_BITS];
16         double ln2;
17         double poly[LOGF_POLY_ORDER - 1]; /* First order coefficient is 1.  */
18 } __logf_data;
19
20 #endif