summaryrefslogtreecommitdiffstats
path: root/newlib/libm/machine/spu/headers/sqrtf.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/machine/spu/headers/sqrtf.h')
-rw-r--r--newlib/libm/machine/spu/headers/sqrtf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libm/machine/spu/headers/sqrtf.h b/newlib/libm/machine/spu/headers/sqrtf.h
new file mode 100644
index 000000000..4ef91428b
--- /dev/null
+++ b/newlib/libm/machine/spu/headers/sqrtf.h
@@ -0,0 +1,6 @@
+#include "headers/sqrtf4.h"
+
+static __inline float _sqrtf(float in)
+{
+ return spu_extract(_sqrtf4(spu_promote(in, 0)), 0);
+}