Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/machine/spu/headers/cosf.h')
-rw-r--r--newlib/libm/machine/spu/headers/cosf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libm/machine/spu/headers/cosf.h b/newlib/libm/machine/spu/headers/cosf.h
new file mode 100644
index 000000000..49e6f716f
--- /dev/null
+++ b/newlib/libm/machine/spu/headers/cosf.h
@@ -0,0 +1,6 @@
+#include "headers/cosf4.h"
+
+static __inline float _cosf(float angle)
+{
+ return spu_extract(_cosf4(spu_promote(angle, 0)), 0);
+}