CVS commit: src/tests/lib/libm

2020-08-25 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Tue Aug 25 13:39:16 UTC 2020

Modified Files:
src/tests/lib/libm: t_fmod.c

Log Message:
Only expect the fmod test case to fail when using qemu's TCG CPU emulation,
and not under hardware virtualization such as qemu -accel nvmm.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libm/t_fmod.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2020-06-20 Thread Luke Mewburn
Module Name:src
Committed By:   lukem
Date:   Sun Jun 21 06:58:16 UTC 2020

Modified Files:
src/tests/lib/libm: Makefile

Log Message:
fix build of t_cabsl from t_cabsl.cxx

t_cabsl source is in t_cabsl.cxx not t_cabsl.cc - the latter
is what bsd.tests.mk defaults to.

This only broke after my commit of share/mk/bsd.dep.mk rev 1.85
but I don't know why it didn't cause a problem previously.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/tests/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2019-04-25 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Apr 25 22:58:24 UTC 2019

Modified Files:
src/tests/lib/libm: t_cos.c

Log Message:
Expand to cover long double somewhat.

The given data is for double, so use DBL_EPSILON and don't expect better
results.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libm/t_cos.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2018-11-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 15 05:14:20 UTC 2018

Modified Files:
src/tests/lib/libm: t_cbrt.c

Log Message:
cbrtl_powl is xfail only if long double has more bits than double.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_cbrt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2018-11-10 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sat Nov 10 23:04:16 UTC 2018

Modified Files:
src/tests/lib/libm: t_cos.c

Log Message:
Print the input to cosf on failure too.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libm/t_cos.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2018-11-06 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Nov  7 03:59:37 UTC 2018

Modified Files:
src/tests/lib/libm: t_acos.c t_asin.c t_cbrt.c t_cos.c t_cosh.c t_exp.c
t_ldexp.c t_libm.h t_log.c t_scalbn.c t_sin.c t_sinh.c t_sqrt.c
t_tan.c

Log Message:
Fix up libm tests.

- Fix up last few digits of a lot of known-answer tests.

  Confirmed with GNU mpfr to 200 bits of precision and cross-checked
  with whatever libm Ubuntu ships with.

- Test relative error, not absolute error.

- Set bounds in terms of *_EPSILON, not magic numbers.

  *_EPSILON is twice the largest relative error of a correctly
  rounded operation, and equal to the largest relative error of an
  operation with up to 1ulp error.

  Most of the operations we're testing are not correctly rounded, but
  they ought to be no more than 1ulp away.  For the few cases where
  that's not a priori clear (like comparing cbrt and pow(x, 1/3)),
  use twice *_EPSILON to allow some leeway.

- Write the success condition positively as error <= eps.

  This comes out false if the result is a NaN, meaning failure.  In
  contrast, if we write error > eps for the _failure_ condition, then
  if the result is a NaN, it will also come out false, but meaning
  success, which is not what we want.

- Fix the trigonometric test cases near bad spots.

  sin(pi - d) for nonzero d is not zero; it is d + O(d^3).  pi is not
  a floating-point number, so these results should be approximately
  the nonzero error of our approximation to pi.  Likewise with
  cos(pi/2 - d) and tan(pi + d).

  (Yes, I know the sin _function_ is ill-conditioned near pi so you
  shouldn't pass approximate inputs near there, but that's separate
  from whether a sin _implementation_ gives an answer that is wrong
  by quintillions of ulps.)

  Since on x86 (i386 and amd64 alike) we currently use x87 hardware
  trigonometric instructions, which are bad, these are marked xfail
  on x86 for now until we switch to software implementations (coming
  soon to a repository near you).

- Use %.8g, %.17g, %.35g to print float, double, long double in failures.

  This should be enough to identify the problematic outputs and/or
  reproduce the computation, even if long double is binary128 with
  115 bits of precision.

If there are any new libm test failures after this, tell me what
architecture you're on and send me the atf output and I'll try to
figure it out.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/tests/lib/libm/t_acos.c
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libm/t_asin.c \
src/tests/lib/libm/t_cbrt.c
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_cos.c \
src/tests/lib/libm/t_sin.c
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libm/t_cosh.c \
src/tests/lib/libm/t_libm.h src/tests/lib/libm/t_sinh.c
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libm/t_exp.c
cvs rdiff -u -r1.16 -r1.17 src/tests/lib/libm/t_ldexp.c
cvs rdiff -u -r1.13 -r1.14 src/tests/lib/libm/t_log.c
cvs rdiff -u -r1.15 -r1.16 src/tests/lib/libm/t_scalbn.c
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libm/t_sqrt.c
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libm/t_tan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2018-11-06 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Nov  7 03:56:18 UTC 2018

Modified Files:
src/tests/lib/libm: Makefile

Log Message:
Build libm tests with -fno-builtin.

This way they test libm, not whatever the compiler does.

We should _also_ have automatic integration tests for what the
compiler does, as a separate thing.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/tests/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2018-06-14 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Jun 14 21:57:25 UTC 2018

Modified Files:
src/tests/lib/libm: t_ilogb.c

Log Message:
for consistency, print the statement that is true in the error case.
also add missing closing paren


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libm/t_ilogb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2018-06-14 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Jun 14 21:11:08 UTC 2018

Modified Files:
src/tests/lib/libm: t_ilogb.c

Log Message:
Test for FE_INVALID in a way that works for powerpc too.

powerpc seems to return FE_INVALID | FE_VXSOFT rather than just FE_INVALID.
XXX need extra careful reading of standards


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libm/t_ilogb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2018-06-04 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Jun  4 09:13:47 UTC 2018

Modified Files:
src/tests/lib/libm: Makefile

Log Message:
Blindly add __TEST_FENV in the hope of fixing the vax build.

(So we can include fenv.h, and then not use it - we ifdef vax out
for OS-portability reasons.)


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/tests/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2018-06-03 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Sun Jun  3 08:39:00 UTC 2018

Modified Files:
src/tests/lib/libm: t_scalbn.c

Log Message:
Test and clear exception around scalbn calls.
Second part of PR bin/51834.

ifdef out vax to avoid netbsd-specific macros.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/tests/lib/libm/t_scalbn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-09-03 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Sep  3 13:41:19 UTC 2017

Modified Files:
src/tests/lib/libm: t_round.c

Log Message:
Fix verb form.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libm/t_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-09-03 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Sun Sep  3 13:29:55 UTC 2017

Modified Files:
src/tests/lib/libm: t_round.c

Log Message:
Use a global double to stop GCC from optimizing the test away
Better diagnostic messages
More familiar test for 'even number'


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libm/t_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-08-30 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Aug 30 22:55:41 UTC 2017

Modified Files:
src/tests/lib/libm: t_round.c

Log Message:
Add a short case for the alpha test failure

Now I see it's down to the choice of -mfp-trap-mode (n works, su/sui/u don't)


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libm/t_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-08-30 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Aug 30 14:24:20 UTC 2017

Modified Files:
src/tests/lib/libm: t_round.c

Log Message:
use PRIu64 to print uint64_t, don't print sizeof

fixes build. sorry, built tested an older version for 32bit.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libm/t_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-08-30 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Aug 30 10:51:06 UTC 2017

Modified Files:
src/tests/lib/libm: t_round.c

Log Message:
Add test case for alpha's MPFR config test failure
This assert fires with -mieee, but not without it.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-08-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 21 17:11:18 UTC 2017

Modified Files:
src/tests/lib/libm: t_fe_round.c

Log Message:
don't skip nexttoward for aarch64 and mips64


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libm/t_fe_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-08-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Aug 20 08:25:47 UTC 2017

Modified Files:
src/tests/lib/libm: t_fe_round.c

Log Message:
fix build (missing nexttoward on mips64 and aarch64)


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libm/t_fe_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-08-17 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Thu Aug 17 09:14:28 UTC 2017

Modified Files:
src/tests/lib/libm: t_fe_round.c

Log Message:
Add test cases for nextafter() and nexttoward().  At the moment no
corner cases are tested, and the test cases are little more than a
verification that the functions are present in the implementation.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libm/t_fe_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-08-11 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Fri Aug 11 20:31:58 UTC 2017

Modified Files:
src/tests/lib/libm: t_fe_round.c

Log Message:
Re-enable the test for nearbyint(), now that all ports (save vax,
which has a separate #if section here) should have nearbyint().


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libm/t_fe_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-07-25 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue Jul 25 21:26:56 UTC 2017

Modified Files:
src/tests/lib/libm: t_fe_round.c

Log Message:
Revert previous as it breaks at least sparc and hpcsh builds.
nearbyint() is not included in libm on all platforms.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_fe_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-07-24 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Mon Jul 24 18:14:46 UTC 2017

Modified Files:
src/tests/lib/libm: t_fe_round.c

Log Message:
Add a test checking nearbyint(), using the same table as used by
the existing lrint() test.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libm/t_fe_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-07-24 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Mon Jul 24 18:13:36 UTC 2017

Modified Files:
src/tests/lib/libm: t_fe_round.c

Log Message:
Swap around the two last args to the check for expected fegetround(),
so the error message makes sense.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_fe_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-01-20 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Fri Jan 20 21:15:56 UTC 2017

Modified Files:
src/tests/lib/libm: t_pow.c

Log Message:
use isinf instead of isinff. this doesn't introduce a functional change -
isinf works for float as well, and is more portable.

from Ngie Cooper in PR bin/51838


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_pow.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-01-13 Thread Alistair G. Crooks
Module Name:src
Committed By:   agc
Date:   Fri Jan 13 21:09:12 UTC 2017

Modified Files:
src/tests/lib/libm: t_scalbn.c

Log Message:
also terminate 2 other statements properly


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/tests/lib/libm/t_scalbn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-01-13 Thread Alistair G. Crooks
Module Name:src
Committed By:   agc
Date:   Fri Jan 13 21:00:59 UTC 2017

Modified Files:
src/tests/lib/libm: t_scalbn.c

Log Message:
terminate the statement properly


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/tests/lib/libm/t_scalbn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-01-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jan 13 19:26:03 UTC 2017

Modified Files:
src/tests/lib/libm: t_scalbn.c

Log Message:
PR/51839: Ngie Cooper: reset errno to 0 before calling scalbn*


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/tests/lib/libm/t_scalbn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2017-01-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jan 13 19:23:40 UTC 2017

Modified Files:
src/tests/lib/libm: t_ilogb.c

Log Message:
PR/51837: Ngie Cooper: add limits.h for INT_MAX


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libm/t_ilogb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2016-12-19 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Dec 20 06:13:19 UTC 2016

Modified Files:
src/tests/lib/libm: Makefile

Log Message:
define __TEST_FENV in the makefile for t_fe_round
should fix vax build (it doesn't have fenv.h)


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/tests/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2016-12-19 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Dec 20 06:07:38 UTC 2016

Modified Files:
src/tests/lib/libm: t_fe_round.c

Log Message:
use labs for absolute value of long
should fix arm build


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_fe_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2016-12-19 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Dec 19 17:38:24 UTC 2016

Modified Files:
src/tests/lib/libm: Makefile
Added Files:
src/tests/lib/libm: t_fe_round.c

Log Message:
add test for fesetround/fegetround that uses lrint (and tests it a bunch).
It doesn't fail on amd64.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/tests/lib/libm/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libm/t_fe_round.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2016-09-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Sep 20 17:19:29 UTC 2016

Modified Files:
src/tests/lib/libm: t_casinh.c

Log Message:
print what went wrong.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_casinh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2016-08-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug 27 10:07:05 UTC 2016

Modified Files:
src/tests/lib/libm: t_precision.c

Log Message:
do the long double tests if we have long double.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_precision.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2016-08-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Aug 26 08:01:55 UTC 2016

Modified Files:
src/tests/lib/libm: t_ilogb.c

Log Message:
forgot to protect an ilogbl


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libm/t_ilogb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2016-08-24 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Aug 25 00:32:31 UTC 2016

Modified Files:
src/tests/lib/libm: t_ldexp.c

Log Message:
Add a failing case for t_ldexp

ldexp(2.0, INT_MAX) should be HUGE_VAL, not 0


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/tests/lib/libm/t_ldexp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2016-08-24 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Aug 25 00:26:01 UTC 2016

Modified Files:
src/tests/lib/libm: t_ldexp.c

Log Message:
don't skip the entire test iteration if exp2=SKIP, only the second
application of the function

this doesn't introduce new failures on amd64


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/tests/lib/libm/t_ldexp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2016-08-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 24 10:04:53 UTC 2016

Modified Files:
src/tests/lib/libm: t_ilogb.c

Log Message:
fix test; clearing the exception does not return the old exception bitmask.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_ilogb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2016-08-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 24 09:13:44 UTC 2016

Modified Files:
src/tests/lib/libm: t_ilogb.c

Log Message:
fix long double


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libm/t_ilogb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2016-08-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 23 10:03:44 UTC 2016

Modified Files:
src/tests/lib/libm: Makefile t_ilogb.c

Log Message:
portability fixes


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/tests/lib/libm/Makefile
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_ilogb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2016-08-22 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Aug 22 10:36:20 UTC 2016

Modified Files:
src/tests/lib/libm: t_ilogb.c

Log Message:
Mistakes were made, compare correct values now.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_ilogb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2016-01-24 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Sun Jan 24 20:26:47 UTC 2016

Modified Files:
src/tests/lib/libm: Makefile
Added Files:
src/tests/lib/libm: t_hypot.c

Log Message:
Add some tests of hypot() and hypotf()


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/tests/lib/libm/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libm/t_hypot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2015-12-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Dec 22 14:27:51 UTC 2015

Modified Files:
src/tests/lib/libm: Makefile

Log Message:
add __TEST_FENV


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/tests/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2015-12-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Dec 22 14:20:59 UTC 2015

Modified Files:
src/tests/lib/libm: Makefile t_fenv.c

Log Message:
put have fenv stuff elsewhere.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/tests/lib/libm/Makefile
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_fenv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2015-09-07 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Tue Sep  8 05:24:27 UTC 2015

Modified Files:
src/tests/lib/libm: t_pow.c

Log Message:
Clear the XFAIL from PR 45391.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libm/t_pow.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2015-02-09 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Feb  9 19:39:48 UTC 2015

Modified Files:
src/tests/lib/libm: t_log.c

Log Message:
Remove expected failure and references to port-alpha/46301, now that
it is fixed.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/tests/lib/libm/t_log.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2015-01-20 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Tue Jan 20 20:43:10 UTC 2015

Modified Files:
src/tests/lib/libm: Makefile

Log Message:
Remove stale comment about ARM fenv support.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/tests/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2015-01-03 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Sat Jan  3 14:23:53 UTC 2015

Modified Files:
src/tests/lib/libm: Makefile t_fmod.c

Log Message:
Mark the lib/libm/t_fmod test as an expected failure under QEMU,
with a reference to PR misc/44767.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/tests/lib/libm/Makefile
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_fmod.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-12-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Dec 29 19:51:53 UTC 2014

Modified Files:
src/tests/lib/libm: t_fenv.c

Log Message:
Skip rounding mode tests on ARM FPUs that do not allow configuration of them.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_fenv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-12-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sat Dec 27 17:55:05 UTC 2014

Modified Files:
src/tests/lib/libm: Makefile

Log Message:
Enable fenv.h on arm again


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/tests/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-12-22 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Dec 22 11:21:08 UTC 2014

Modified Files:
src/tests/lib/libm: Makefile

Log Message:
Disabel fenv tests for arm, the implementation is incomplete.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/tests/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-12-21 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Dec 21 15:37:03 UTC 2014

Modified Files:
src/tests/lib/libm: Makefile
Added Files:
src/tests/lib/libm: t_fenv.c

Log Message:
Add a test program for basic fenv.h rounding mode/exception mask testing.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/tests/lib/libm/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libm/t_fenv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-10-07 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Tue Oct  7 16:53:44 UTC 2014

Modified Files:
src/tests/lib/libm: t_exp.c

Log Message:
In the exp2_values test case, provide separate expected return values
for the float case, reflecting the actual exp2f() argument value after
rounding to float precision.  Fixes PR lib/49256.  Thanks to Makoto
Kamada and Tetsuya Isaki for the analysis.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libm/t_exp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-05-18 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun May 18 10:47:38 UTC 2014

Modified Files:
src/tests/lib/libm: Makefile

Log Message:
Re-enable alpha IEEE compiler options


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/tests/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-04-28 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Apr 28 08:46:35 UTC 2014

Modified Files:
src/tests/lib/libm: Makefile

Log Message:
Tune COPTS for alpha


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/tests/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-25 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Mar 25 17:30:15 UTC 2014

Modified Files:
src/tests/lib/libm: t_libm.h

Log Message:
Consistently use long double.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libm/t_libm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-17 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Mar 17 11:08:11 UTC 2014

Modified Files:
src/tests/lib/libm: t_atan.c t_exp.c

Log Message:
Handle VAX


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/tests/lib/libm/t_atan.c
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libm/t_exp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-16 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Sun Mar 16 22:51:19 UTC 2014

Modified Files:
src/tests/lib/libm: t_exp.c

Log Message:
Add a lot more tests for exp2() and exp2f().
exp2f(7.7) and exp2f(8.8) seem too far from their expected values
  (especially the latter).
exp2(-1023) and below are badly broken.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libm/t_exp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-16 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Sun Mar 16 22:49:27 UTC 2014

Modified Files:
src/tests/lib/libm: t_libm.h

Log Message:
Print the result as a 'long double' - on i386 a return value that
should be infinity might just be too large for 'double' and won't
get converted until it has to be saved to memory.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_libm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-16 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Sun Mar 16 18:42:21 UTC 2014

Modified Files:
src/tests/lib/libm: t_libm.h

Log Message:
Check that the result isn't equaly to the expected value before checking
  the absolute size of the error term.
If the expected result is +/-infinity it should compare equal, but the
  result of the subtract may not be zero.
Also print the result and error values in fp hex to make it easier to
  see how may lsb bits are incorrect.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libm/t_libm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-12 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Mar 12 21:40:07 UTC 2014

Modified Files:
src/tests/lib/libm: t_ldexp.c t_sqrt.c

Log Message:
Avoid double constants out of range


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/tests/lib/libm/t_ldexp.c
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libm/t_sqrt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sat Mar  8 17:05:47 UTC 2014

Modified Files:
src/tests/lib/libm: t_atan.c

Log Message:
no NaN tests for vax


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/tests/lib/libm/t_atan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-07 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Mar  7 12:46:48 UTC 2014

Modified Files:
src/tests/lib/libm: t_atan.c t_libm.h

Log Message:
Vax does not do +/- INF.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/tests/lib/libm/t_atan.c
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_libm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-05 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Wed Mar  5 20:15:41 UTC 2014

Modified Files:
src/tests/lib/libm: t_atan.c

Log Message:
A couple of the atan tests are randomly failing.
Print the incorrect value.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/tests/lib/libm/t_atan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-05 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Wed Mar  5 20:14:46 UTC 2014

Modified Files:
src/tests/lib/libm: t_acos.c t_libm.h

Log Message:
Fix some typos.
Make the infinity and nan constants 'double' not 'long double'.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/lib/libm/t_acos.c
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_libm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-05 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Wed Mar  5 19:43:46 UTC 2014

Modified Files:
src/tests/lib/libm: t_acos.c
Added Files:
src/tests/lib/libm: t_libm.h

Log Message:
Move the #defines that simplified the test definitions and checks
  into a separate header than can be used by the other libm tests.
Make the subtest index 'unsigned int' so that simple constants (eg 0)
  print correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libm/t_acos.c
cvs rdiff -u -r0 -r1.1 src/tests/lib/libm/t_libm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-03 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Mon Mar  3 18:21:33 UTC 2014

Modified Files:
src/tests/lib/libm: t_acos.c

Log Message:
Remove the print of the rounding mode.
It was added in case it was non-zero - which it isn't.
It still isn't clear why acos(-1) gives the wrong result on some amd64
  systems.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libm/t_acos.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-03 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Mar  3 12:15:27 UTC 2014

Modified Files:
src/tests/lib/libm: Makefile

Log Message:
Define HAVE_FENV_H on architectures that support it.
What a mess, we need a central place for this!


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/tests/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-03 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Mar  3 10:39:08 UTC 2014

Modified Files:
src/tests/lib/libm: t_asin.c t_atan.c t_cbrt.c t_ceil.c t_cos.c
t_cosh.c t_erf.c t_exp.c t_ldexp.c t_log.c t_pow.c t_scalbn.c
t_sin.c t_sinh.c t_sqrt.c t_tan.c t_tanh.c

Log Message:
Remove all cargo-cult #ifndef __vax__ from the tests, that just paper
over bugs in the vax libm.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_asin.c \
src/tests/lib/libm/t_cbrt.c src/tests/lib/libm/t_pow.c
cvs rdiff -u -r1.10 -r1.11 src/tests/lib/libm/t_atan.c \
src/tests/lib/libm/t_log.c src/tests/lib/libm/t_scalbn.c
cvs rdiff -u -r1.9 -r1.10 src/tests/lib/libm/t_ceil.c
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libm/t_cos.c \
src/tests/lib/libm/t_sin.c
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libm/t_cosh.c \
src/tests/lib/libm/t_sinh.c src/tests/lib/libm/t_sqrt.c
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_erf.c
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_exp.c \
src/tests/lib/libm/t_tan.c
cvs rdiff -u -r1.11 -r1.12 src/tests/lib/libm/t_ldexp.c
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libm/t_tanh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-03 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Mar  3 10:38:36 UTC 2014

Modified Files:
src/tests/lib/libm: t_acos.c

Log Message:
Fix build for platforms w/o fenv.h.
Remove some bogus #ifdef __vax__ (and add a few, hopefully non-bogus,
new ones).


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libm/t_acos.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-02 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Sun Mar  2 22:40:45 UTC 2014

Modified Files:
src/tests/lib/libm: t_acos.c

Log Message:
Include the subtest number in any error output.
Also temporarily print the rounding mode.
I think that acos(-1) is ending up with the wrong sign because the test
  is being run with 'round towards -ve infinity' set.
I think it getting set somewhere and causing this test to fail.
The acos() code probably needs fixing - it shouldn't depend on the
round mode like this. But first I want to know if this if the error.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libm/t_acos.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-03-01 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Sat Mar  1 21:08:39 UTC 2014

Modified Files:
src/tests/lib/libm: t_acos.c

Log Message:
Some of the acos() tests seem to fail on some systems.
Sorting out why isn't helped by the tests not reporting the erronous value.
Change the 'boilerplate' pattern used so that all the values are output.
Reduce the amount of faffy red tape as well.
Some of these reductions could be shared with other libm tests, but for
  the moment they are defined in this file.
All these tests pass on my amd64 system, and when I run amd64 qemu.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_acos.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2014-02-27 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Feb 27 17:26:02 UTC 2014

Modified Files:
src/tests/lib/libm: t_atan.c t_exp.c t_fmod.c t_log.c

Log Message:
Avoid promotion in subexpressions.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/lib/libm/t_atan.c \
src/tests/lib/libm/t_log.c
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libm/t_exp.c
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_fmod.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2013-11-22 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Nov 22 17:19:14 UTC 2013

Modified Files:
src/tests/lib/libm: t_sqrt.c

Log Message:
Adjust expected epsilon for sqrtl <-> powl comparisions for defects in
powl (which actually is pow for now)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_sqrt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2013-06-13 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Fri Jun 14 05:39:28 UTC 2013

Modified Files:
src/tests/lib/libm: t_atan.c

Log Message:
Remove header files which became unnecessary in 1.7.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libm/t_atan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2013-05-24 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri May 24 11:47:13 UTC 2013

Modified Files:
src/tests/lib/libm: t_scalbn.c

Log Message:
Backout previous - real fix for vax libm upcoming.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/lib/libm/t_scalbn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2013-05-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu May 23 20:45:47 UTC 2013

Modified Files:
src/tests/lib/libm: t_scalbn.c

Log Message:
vaxinate the new tests.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libm/t_scalbn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2013-05-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon May 20 12:21:42 UTC 2013

Modified Files:
src/tests/lib/libm: t_scalbn.c

Log Message:
Add a few test cases to test "ordinary" values with the various scalbn
variants. While there, make some spuriously failing tests print out the
broken values on failure.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libm/t_scalbn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2013-04-09 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Tue Apr  9 12:11:04 UTC 2013

Modified Files:
src/tests/lib/libm: t_acos.c t_asin.c t_atan.c t_cosh.c t_sinh.c

Log Message:
Use a pre-calculated value as expected result, instead of
comparing it in a mathematical formula.
PR lib/46434 (and see also 46433).


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libm/t_acos.c
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_asin.c
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libm/t_atan.c
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_cosh.c \
src/tests/lib/libm/t_sinh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2013-04-09 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Tue Apr  9 11:42:56 UTC 2013

Modified Files:
src/tests/lib/libm: t_exp.c

Log Message:
Tune the epsilon about each value for exp{,f}_product.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_exp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2013-03-20 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Thu Mar 21 02:10:52 UTC 2013

Modified Files:
src/tests/lib/libm: t_atan.c

Log Message:
Fix and revive test of atan_inf_neg, atan_inf_pos and atan_tan on i386.
PR port-i386/46108.
The machine epsilon 1.0e-40 is too severe and nonsense for double
because DBL_EPSILON is about 2.2e-16 .  I think that 1.0e-15 is
enough good, in this case.
XXX However, test of atan_tan should be replaced for other reasons.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libm/t_atan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2012-05-30 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Wed May 30 15:14:11 UTC 2012

Modified Files:
src/tests/lib/libm: t_exp.c

Log Message:
Add patch from Tetsuya Isaki in PR lib/46433.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_exp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2012-04-08 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Apr  8 09:36:04 UTC 2012

Modified Files:
src/tests/lib/libm: t_log.c

Log Message:
Remove one xfail that does not seem to fail (on alpha).


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libm/t_log.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2012-04-06 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Fri Apr  6 08:07:32 UTC 2012

Modified Files:
src/tests/lib/libm: t_log.c

Log Message:
Point to PR port-alpha/46301 when failing on Alpha.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libm/t_log.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2012-03-23 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Mar 23 23:45:31 UTC 2012

Modified Files:
src/tests/lib/libm: t_acos.c

Log Message:
If one of the tests with eps fails, print the failing eps.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_acos.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2012-03-10 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 11 06:36:05 UTC 2012

Modified Files:
src/tests/lib/libm: t_atan.c

Log Message:
And finally, fix boolean logic in the previous.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libm/t_atan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2012-03-10 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 11 06:32:53 UTC 2012

Modified Files:
src/tests/lib/libm: t_atan.c

Log Message:
Fix previous: curiously enough, i386/qemu is not affected, so use the
"system(3) hack" to identify Qemu.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_atan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2012-03-10 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Mar 10 20:11:01 UTC 2012

Modified Files:
src/tests/lib/libm: t_atan.c

Log Message:
Point to PR port-i386/46108 when failing on i386.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libm/t_atan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2012-02-28 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Feb 28 08:58:39 UTC 2012

Modified Files:
src/tests/lib/libm: t_atan.c

Log Message:
Remove an escape sequence that was introduced by accident.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_atan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2012-02-27 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Feb 28 06:09:49 UTC 2012

Modified Files:
src/tests/lib/libm: t_atan.c

Log Message:
Fix wrong type.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_atan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2012-02-12 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Feb 13 05:09:01 UTC 2012

Modified Files:
src/tests/lib/libm: t_sqrt.c

Log Message:
Fix wrong error failure message.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_sqrt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2012-02-05 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Sun Feb  5 17:52:55 UTC 2012

Modified Files:
src/tests/lib/libm: t_log.c

Log Message:
Change eps to fit within the VAX FP range.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libm/t_log.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2011-11-19 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sat Nov 19 12:46:41 UTC 2011

Modified Files:
src/tests/lib/libm: t_sqrt.c

Log Message:
The compiler is allowed to use intermediate higher precision for float
arithmetic, which may cause differences smaller than float precision
but still much larger than eps = 1e-30.
Forcing intermediate results to volatile variables removes the excess
precision.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_sqrt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2011-10-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Oct 18 14:16:42 UTC 2011

Modified Files:
src/tests/lib/libm: t_cosh.c t_sinh.c

Log Message:
Reduce tolerance even more.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libm/t_cosh.c \
src/tests/lib/libm/t_sinh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2011-10-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Oct 18 04:51:01 UTC 2011

Modified Files:
src/tests/lib/libm: t_cosh.c t_sinh.c

Log Message:
Adjust and add some printfs.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_cosh.c \
src/tests/lib/libm/t_sinh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2011-10-16 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Oct 16 13:43:26 UTC 2011

Modified Files:
src/tests/lib/libm: Makefile

Log Message:
Remove 't_rint' as it was committed accidentally.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/tests/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2011-10-16 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Oct 16 13:42:22 UTC 2011

Modified Files:
src/tests/lib/libm: Makefile t_cosh.c t_sinh.c

Log Message:
As couple of checks fails on i386/qemu, reduce tolerance.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/tests/lib/libm/Makefile
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_cosh.c \
src/tests/lib/libm/t_sinh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2011-10-16 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Oct 16 08:25:55 UTC 2011

Modified Files:
src/tests/lib/libm: Makefile

Log Message:
Add t_sqrt and t_cbrt.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/tests/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2011-09-23 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Fri Sep 23 13:48:28 UTC 2011

Modified Files:
src/tests/lib/libm: t_pow.c

Log Message:
More bugs in pow(3); cases for PR port-amd64/45391.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_pow.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2011-09-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Sep 18 04:49:11 UTC 2011

Modified Files:
src/tests/lib/libm: t_log.c

Log Message:
Add few basic checks.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_log.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libm

2011-09-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Sep 18 04:48:38 UTC 2011

Modified Files:
src/tests/lib/libm: t_acos.c

Log Message:
Reduce tolerance to see whether still acosf(cosf(x)) != x on i386/qemu.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_acos.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



  1   2   >