This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "uClibc-ng - small C library for embedded systems".
The branch, master has been updated
via 97a011d422f037af35d77c15ccc94c2ed1121471 (commit)
via 1606a5c1fe3d1772636fac0976acdce3972be40d (commit)
from 4e3f659c92fae8a539aeeb113ee401a56d775ab7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 97a011d422f037af35d77c15ccc94c2ed1121471
Author: Waldemar Brodkorb <wbx(a)openadk.org>
Date: Wed Dec 9 19:41:41 2015 +0100
arc: add ulps file for math tests
Using non-generic ulps file reduces failure counts for
math tests. Generated with nsim emulator running
test-{double,idouble,float,ifloat} -u and
gen-libm-test.pl on the build host.
commit 1606a5c1fe3d1772636fac0976acdce3972be40d
Author: Waldemar Brodkorb <wbx(a)uclibc-ng.org>
Date: Wed Dec 9 19:26:33 2015 +0100
do not hardcode path to perl
When cross-compiling on other Unix systems like
FreeBSD 10.x, perl is not in /usr/bin. Use env
to find the perl interpreter and use no fixed path
when executing via make.
-----------------------------------------------------------------------
Summary of changes:
test/math/Makefile.in | 2 +-
test/math/gen-libm-test.pl | 2 +-
.../{libm-test-ulps-xtensa => libm-test-ulps-arc} | 17 ++++++++++++++++-
3 files changed, 18 insertions(+), 3 deletions(-)
copy test/math/{libm-test-ulps-xtensa => libm-test-ulps-arc} (90%)
diff --git a/test/math/Makefile.in b/test/math/Makefile.in
index 9fbd58a..3874001 100644
--- a/test/math/Makefile.in
+++ b/test/math/Makefile.in
@@ -28,7 +28,7 @@ endif
EXTRA_CFLAGS := -fno-builtin
EXTRA_LDFLAGS := -lm
-PERL := /usr/bin/perl
+PERL := perl
MDEPS := $(wildcard test-*.c)
$(MDEPS): libm-test.c
diff --git a/test/math/gen-libm-test.pl b/test/math/gen-libm-test.pl
index 0bb2b46..118f352 100755
--- a/test/math/gen-libm-test.pl
+++ b/test/math/gen-libm-test.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 1999 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# Contributed by Andreas Jaeger <aj(a)suse.de>de>, 1999.
diff --git a/test/math/libm-test-ulps-xtensa b/test/math/libm-test-ulps-arc
similarity index 90%
copy from test/math/libm-test-ulps-xtensa
copy to test/math/libm-test-ulps-arc
index 9c730fa..7139447 100644
--- a/test/math/libm-test-ulps-xtensa
+++ b/test/math/libm-test-ulps-arc
@@ -2,7 +2,6 @@
# cos
Test "cos (M_PI_6l * 2.0) == 0.5":
-double: 1
idouble: 1
Test "cos (M_PI_6l * 4.0) == -0.5":
double: 2
@@ -79,6 +78,16 @@ Test "log10 (e) == log10(e)":
float: 1
ifloat: 1
+# tgamma
+Test "tgamma (-0.5) == -2 sqrt (pi)":
+double: 1
+idouble: 1
+Test "tgamma (0.7) == 1.29805533264755778568117117915281162":
+double: 1
+float: 1
+idouble: 1
+ifloat: 1
+
# Maximal error of functions:
Function: "cos":
double: 2
@@ -126,4 +135,10 @@ Function: "tan":
double: 1
idouble: 1
+Function: "tgamma":
+double: 1
+float: 1
+idouble: 1
+ifloat: 1
+
# end of automatic generation
hooks/post-receive
--
uClibc-ng - small C library for embedded systems
Show replies by date