libc: math: add floating-point constant definitions

This commit is contained in:
2026-05-30 10:03:52 +01:00
parent addd36d237
commit da7b60ca53
+14
View File
@@ -0,0 +1,14 @@
#ifndef MATH_H_
#define MATH_H_
/* IEEE positive infinity. */
#ifndef INFINITY
#define INFINITY (__builtin_inff())
#endif
/* IEEE Not A Number. */
#ifndef NAN
#define NAN (__builtin_nanf(""))
#endif
#endif