about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);
+}