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/acosh.h')
-rw-r--r--newlib/libm/machine/spu/headers/acosh.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/newlib/libm/machine/spu/headers/acosh.h b/newlib/libm/machine/spu/headers/acosh.h
index 960394b64..d84708a30 100644
--- a/newlib/libm/machine/spu/headers/acosh.h
+++ b/newlib/libm/machine/spu/headers/acosh.h
@@ -1,6 +1,16 @@
#include "headers/acoshd2.h"
+#include "headers/dom_chkd_less_than.h"
static __inline double _acosh(double x)
{
- return spu_extract(_acoshd2(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(_acoshd2(vx), 0);
+#ifndef _IEEE_LIBM
+ dom_chkd_less_than(vx, vc);
+#endif
+ return res;
}