libc: Add fpclassify

This commit is contained in:
apio 2022-11-09 11:36:52 +01:00
parent 59e03d0799
commit bbc7a7338c

View File

@ -4,6 +4,13 @@
typedef float float_t; typedef float float_t;
typedef double double_t; typedef double double_t;
#define FP_NAN 0
#define FP_INFINITE 1
#define FP_ZERO 2
#define FP_SUBNORMAL 3
#define FP_NORMAL 4
#define fpclassify(x) __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_ZERO, FP_SUBNORMAL, FP_ZERO, x)
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {