summaryrefslogtreecommitdiff
path: root/src/math/signbit.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-16 16:14:04 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-16 16:14:04 -0400
commit661f59838235815b5073a0ef95f410003639519e (patch)
tree28eb14bc8053bb32abd7c103c4078ab4f81b6129 /src/math/signbit.c
parente223e635cc53fa11e473cdbc864eb69a3da5f290 (diff)
rename non-compiled files to *.h
Diffstat (limited to 'src/math/signbit.c')
-rw-r--r--src/math/signbit.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/math/signbit.c b/src/math/signbit.c
deleted file mode 100644
index 77cc3977..00000000
--- a/src/math/signbit.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <math.h>
-
-#define signbit(__x) \
- (sizeof(__x) == sizeof(long double) ? \
- ((((union { \
- long double __f; \
- char __c[sizeof(__x)]; \
- }){.__f = (__x)}).__c[sizeof(__x)-1] & 0x80) == 0x80 ? 1 : 0) : \
- sizeof(__x) == sizeof(double) ? \
- ((((union { \
- double __f; \
- char __c[sizeof(__x)]; \
- }){.__f = (__x)}).__c[sizeof(__x)-1] & 0x80) == 0x80 ? 1 : 0) : \
- (((union { \
- float __f; \
- char __c[sizeof(__x)]; \
- }){.__f = (__x)}).__c[sizeof(__x)-1] & 0x80) == 0x80 ? 1 : 0)
-
-
-/*
-STDC(199901)
-LINK(m)
-*/