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