summaryrefslogtreecommitdiff
path: root/src/math/fdim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/fdim.c')
-rw-r--r--src/math/fdim.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/math/fdim.c b/src/math/fdim.c
new file mode 100644
index 00000000..922c5040
--- /dev/null
+++ b/src/math/fdim.c
@@ -0,0 +1,13 @@
+# define TGSOURCE "fdim.c"
+#include "nonstd/tgmath.h"
+#include <math.h>
+
+TYPE TGFN(fdim)(TYPE x, TYPE y)
+{
+ return x - y;
+}
+
+/*
+STDC(199901)
+LINK(m)
+*/