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/log.h')
-rw-r--r--newlib/libm/machine/spu/headers/log.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/newlib/libm/machine/spu/headers/log.h b/newlib/libm/machine/spu/headers/log.h
index 842abbf5e..9bb5e3bff 100644
--- a/newlib/libm/machine/spu/headers/log.h
+++ b/newlib/libm/machine/spu/headers/log.h
@@ -1,6 +1,16 @@
#include "headers/logd2.h"
+#include "headers/dom_chkd_less_than.h"
static __inline double _log(double x)
{
- return spu_extract(_logd2(spu_promote(x, 0)), 0);
+ double res;
+ vector double vx;
+ vector double vc = { 0.0, 0.0 };
+
+ vx = spu_promote(x, 0);
+ res = spu_extract(_logd2(vx), 0);
+#ifndef _IEEE_LIBM
+ dom_chkd_less_than(vx, vc);
+#endif
+ return res;
}