summaryrefslogtreecommitdiff
path: root/src/linux/sincos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/sincos.c')
-rw-r--r--src/linux/sincos.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/linux/sincos.c b/src/linux/sincos.c
new file mode 100644
index 00000000..b69ffce9
--- /dev/null
+++ b/src/linux/sincos.c
@@ -0,0 +1,8 @@
+#define _GNU_SOURCE
+#include <math.h>
+
+void sincos(double t, double *y, double *x)
+{
+ *y = sin(t);
+ *x = cos(t);
+}