summaryrefslogtreecommitdiff
path: root/userland/libc/include/math.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-12-12 16:03:08 +0100
committerAnton Kling <anton@kling.gg>2024-12-12 16:03:08 +0100
commitb033314bf1901d436dc71d41d5e1f37dda47e511 (patch)
tree120bd137888a7f96904a47af7d20422608ffe225 /userland/libc/include/math.h
parentdcbcdbdc5bcfb86eca05fb655e3bf009d89e39e0 (diff)
formatting: Use clang-format on all projects
This commit also add braces to all `if` statements.
Diffstat (limited to 'userland/libc/include/math.h')
-rw-r--r--userland/libc/include/math.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/userland/libc/include/math.h b/userland/libc/include/math.h
index 7168a5d..3590caa 100644
--- a/userland/libc/include/math.h
+++ b/userland/libc/include/math.h
@@ -1,16 +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()
+#if 100 * __GNUC__ + __GNUC_MINOR__ >= 303
+#define NAN __builtin_nanf("")
+#define INFINITY __builtin_inff()
#else
-#define NAN (0.0f/0.0f)
-#define INFINITY 1e40f
+#define NAN (0.0f / 0.0f)
+#define INFINITY 1e40f
#endif
#define HUGE_VALF INFINITY
-#define HUGE_VAL ((double)INFINITY)
+#define HUGE_VAL ((double)INFINITY)
#define HUGE_VALL ((long double)INFINITY)
double ldexp(double x, int exp);