about summary refs log tree commit diff
path: root/src/linux
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/sincosf.c8
-rw-r--r--src/linux/sincosl.c8
2 files changed, 16 insertions, 0 deletions
diff --git a/src/linux/sincosf.c b/src/linux/sincosf.c
new file mode 100644
index 00000000..5d8d4458
--- /dev/null
+++ b/src/linux/sincosf.c
@@ -0,0 +1,8 @@
+#define _GNU_SOURCE
+#include <math.h>
+
+void sincosf(float t, float *y, float *x)
+{
+	*y = sinf(t);
+	*x = cosf(t);
+}
diff --git a/src/linux/sincosl.c b/src/linux/sincosl.c
new file mode 100644
index 00000000..2bfc4862
--- /dev/null
+++ b/src/linux/sincosl.c
@@ -0,0 +1,8 @@
+#define _GNU_SOURCE
+#include <math.h>
+
+void sincosl(long double t, long double *y, long double *x)
+{
+	*y = sinl(t);
+	*x = cosl(t);
+}