David Schultz
45de1d006d
Factor out some common code from the libm tests. This is a bit messy
...
because different tests have different ideas about what it means to be
"close enough" to the right answer, depending on the properties of the
function being tested. In the process, I fixed some warnings and
added a few more 'volatile' hacks, which are sufficient to make all
the tests pass at -O2 with clang.
2013-06-02 04:30:03 +00:00
David Schultz
659a67c641
Basic tests for complex inverse trig and hyperbolic functions.
2013-05-30 04:46:36 +00:00
David Schultz
6fcec4dd2b
Tests for complex trig and hyperbolic functions.
2011-10-21 06:34:38 +00:00
David Schultz
2dc9da4376
Add some tests for cexp() and cexpf(). (I need to clean up all of
...
these tests some day, but in the mean time, they're a useful sanity
check for future changes.)
2011-03-07 03:15:49 +00:00
David Schultz
18c5bc2279
Add regression tests for logarithmic functions in the math library.
2010-12-05 22:18:35 +00:00
David Schultz
ee7d7a769c
Add some basic regression tests for nearbyint().
2010-12-03 00:44:31 +00:00
David Schultz
d7b27f3d13
Add tests for conj{,f,l}() that I wrote some time ago. These test the
...
versions in libm, not the gcc builtins.
2009-01-31 18:31:57 +00:00
David Schultz
eb516506c9
Add some tests for acos*(), asin*(), atan*(), and atan2*().
2008-07-31 22:43:38 +00:00
David Schultz
8bb8d6397d
Add regression tests for fmin{,f,l} and fmax{,f,l}.
...
I wrote these to test amd64 asm functions that used
maxss, maxsd, minss, and minsd, but it turns out that
those instructions don't handle NaNs and signed zero
in the same way as fmin() and fmax() are required to,
so we're stuck with the C versions for now.
2008-07-03 23:06:06 +00:00
David Schultz
c79a26333b
Add some tests for fma(), fmaf(), and fmal().
2008-04-03 06:15:58 +00:00
David Schultz
a84bcdcea5
Some basic regression tests for {sin,cos,tan}{,f,l}().
2008-02-18 02:00:16 +00:00
David Schultz
e5af135aad
Add some regression tests for libm's exponential functions. These
...
mostly just test corner cases rather than accuracy. Some of the
tests don't pass right now if you compile libm at -O2 due to gcc
constant-folding some things that it shouldn't. I'll fix that
shortly.
2008-01-18 21:46:54 +00:00
David Schultz
64577b835b
Remove another Alpha remnant.
2007-12-16 23:00:18 +00:00
David Schultz
83f63fd648
Regression tests for nan{,f,l}().
2007-12-16 21:19:51 +00:00
David Schultz
2fd9221748
Regression tests for csqrt(3).
2007-12-15 09:16:26 +00:00
Ruslan Ermilov
2b46c64c9c
Remove alpha left-overs.
2006-08-22 08:03:01 +00:00
David Schultz
cd775c1a33
A few simple regression tests for remainder(), remainderf(),
...
remquo(), and remquof().
2005-03-25 06:24:46 +00:00
David Schultz
ca4fcf3f3e
Test cases for nextafter{,f,l} and nexttoward{,f,l}.
2005-03-07 05:03:46 +00:00
David Schultz
b33f870fba
Regression tests for [l]lrint[f]() and [l]lround[f]().
2005-01-11 23:13:36 +00:00
Stefan Farfeleder
c904266eac
Add regression tests for ilogb{,f,l}().
2004-10-11 18:40:45 +00:00
David Schultz
a2ca83c04a
Add some fenv.h regression tests.
2004-06-11 03:22:34 +00:00