diff --git a/lib/libc/include/math.h b/lib/libc/include/math.h new file mode 100644 index 0000000..68b4517 --- /dev/null +++ b/lib/libc/include/math.h @@ -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