diff options
Diffstat (limited to 'newlib/libm/machine/spu/headers/log2.h')
-rw-r--r-- | newlib/libm/machine/spu/headers/log2.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libm/machine/spu/headers/log2.h b/newlib/libm/machine/spu/headers/log2.h new file mode 100644 index 000000000..50ab477c5 --- /dev/null +++ b/newlib/libm/machine/spu/headers/log2.h @@ -0,0 +1,6 @@ +#include "headers/log2d2.h" + +static __inline double _log2(double vx) +{ + return spu_extract(_log2d2(spu_promote(vx, 0)), 0); +} |