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