Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/machine/spu/headers/log1p.h')
-rw-r--r--newlib/libm/machine/spu/headers/log1p.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/newlib/libm/machine/spu/headers/log1p.h b/newlib/libm/machine/spu/headers/log1p.h
index 46244fbfd..758be8d37 100644
--- a/newlib/libm/machine/spu/headers/log1p.h
+++ b/newlib/libm/machine/spu/headers/log1p.h
@@ -1,6 +1,16 @@
#include "headers/log1pd2.h"
+#include "headers/dom_chkd_less_than.h"
static __inline double _log1p(double x)
{
- return spu_extract(_log1pd2(spu_promote(x, 0)), 0);
+ double res;
+ vector double vx;
+ vector double vc = { -1.0, -1.0 };
+
+ vx = spu_promote(x, 0);
+ res = spu_extract(_log1pd2(vx), 0);
+#ifndef _IEEE_LIBM
+ dom_chkd_less_than(vx, vc);
+#endif
+ return res;
}