summaryrefslogtreecommitdiffstats
path: root/newlib/libm/machine/spu/headers/powf.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/machine/spu/headers/powf.h')
-rw-r--r--newlib/libm/machine/spu/headers/powf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libm/machine/spu/headers/powf.h b/newlib/libm/machine/spu/headers/powf.h
new file mode 100644
index 000000000..fb0f98c43
--- /dev/null
+++ b/newlib/libm/machine/spu/headers/powf.h
@@ -0,0 +1,6 @@
+#include "headers/powf4.h"
+
+static __inline double _powf(float x, float y)
+{
+ return spu_extract(_powf4(spu_promote(x, 0), spu_promote(y, 0)), 0);
+}