diff options
-rw-r--r-- | mk/__fpclassify_error.d | 9 | ||||
-rw-r--r-- | src/math/__fpclassify_error.c | 12 |
2 files changed, 21 insertions, 0 deletions
diff --git a/mk/__fpclassify_error.d b/mk/__fpclassify_error.d new file mode 100644 index 00000000..5b5efc4d --- /dev/null +++ b/mk/__fpclassify_error.d @@ -0,0 +1,9 @@ +libc_C.0: libc.a(__fpclassify_error.o) +libc.a(__fpclassify_error.o): $(OBJDIR)/__fpclassify_error.o + @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% + +$(OBJDIR)/__fpclassify_error.o: src/math/__fpclassify_error.c +$(OBJDIR)/__fpclassify_error.o: src/_safety.h +$(OBJDIR)/__fpclassify_error.o: + @mkdir -p $(@D) + $(CC) -c -o $@ $(CFLAGS) src/math/__fpclassify_error.c diff --git a/src/math/__fpclassify_error.c b/src/math/__fpclassify_error.c new file mode 100644 index 00000000..8684e8ae --- /dev/null +++ b/src/math/__fpclassify_error.c @@ -0,0 +1,12 @@ +#include "_safety.h" + +int __fpclassify_error(void) +{ + UNDEFINED("Argument to fpclassify() macro was not a real floating type"); + return 0; +} + +/* +STDC(0) +SIGNAL_SAFE(0) +*/ |