diff options
author | Anton Kling <anton@kling.gg> | 2024-04-29 18:00:20 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-04-29 18:00:20 +0200 |
commit | 7d2ab3a71f4bda9d8ee997764d98b29e13a902c5 (patch) | |
tree | 6dcdc7a674a8047a2dba3e95d3be91b4e3161bd5 /userland/libc/include/math.h | |
parent | d60fa1fc01e600c4a163bbe82fab3f1986cb1476 (diff) |
Kernel/Socket: Move sockets back to being file descriptors
Diffstat (limited to 'userland/libc/include/math.h')
-rw-r--r-- | userland/libc/include/math.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/userland/libc/include/math.h b/userland/libc/include/math.h index 9d4f4b4..d85b3a0 100644 --- a/userland/libc/include/math.h +++ b/userland/libc/include/math.h @@ -1,2 +1,16 @@ #define max(_a, _b) ((_a) > (_b) ? (_a) : (_b)) #define min(_a, _b) ((_a) < (_b) ? (_a) : (_b)) + +#if 100*__GNUC__+__GNUC_MINOR__ >= 303 +#define NAN __builtin_nanf("") +#define INFINITY __builtin_inff() +#else +#define NAN (0.0f/0.0f) +#define INFINITY 1e40f +#endif + +#define HUGE_VALF INFINITY +#define HUGE_VAL ((double)INFINITY) +#define HUGE_VALL ((long double)INFINITY) + +double ldexp(double x, int exp); |