4 * Copyright (c) 2019, 2024 Linaro
6 * SPDX-License-Identifier: GPL-2.0-or-later
11 /* Some hosts do not have support for all of these; not required by ISO C. */
16 #define FE_UNDERFLOW 0
19 #define FE_DIVBYZERO 0
28 /* Number of constants in each table */
29 int get_num_f16(void);
30 int get_num_f32(void);
31 int get_num_f64(void);
33 /* Accessor helpers, overflows will automatically wrap */
34 uint16_t get_f16(int i
); /* use _Float16 when we can */
36 double get_f64(int i
);
38 /* Return format strings, free after use */
39 char * fmt_f16(uint16_t);
40 char * fmt_f32(float);
41 char * fmt_f64(double);
43 char * fmt_flags(void);