summaryrefslogtreecommitdiff
path: root/src/linux/sincosf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/sincosf.c')
-rw-r--r--src/linux/sincosf.c8
1 files changed, 8 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);
+}