diff options
Diffstat (limited to 'newlib/libm/machine/spu/headers/log1pf.h')
-rw-r--r-- | newlib/libm/machine/spu/headers/log1pf.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/newlib/libm/machine/spu/headers/log1pf.h b/newlib/libm/machine/spu/headers/log1pf.h index 1eab9c9d2..b2af48669 100644 --- a/newlib/libm/machine/spu/headers/log1pf.h +++ b/newlib/libm/machine/spu/headers/log1pf.h @@ -1,6 +1,16 @@ #include "headers/log1pf4.h" +#include "headers/dom_chkf_less_than.h" static __inline float _log1pf(float x) { - return spu_extract(_log1pf4(spu_promote(x, 0)), 0); + float res; + vector float vx; + vector float vc = { -1.0, -1.0, -1.0, -1.0 }; + + vx = spu_promote(x, 0); + res = spu_extract(_log1pf4(vx), 0); +#ifndef _IEEE_LIBM + dom_chkf_less_than(vx, vc); +#endif + return res; } |