libc: math: add floating-point constant definitions
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user