Sam Hocevar
0303a8384f
win32: fix Visual Studio compilation and link issues.
12 vuotta sitten
Sam Hocevar
8bea4cf189
math: ensure real::fabs() is never chosen over std::fabs() for arguments
that are not explicitly real, even with namespace mistakes.
12 vuotta sitten
Sam Hocevar
54f74a1b20
win32: some compilation fixes here and there.
12 vuotta sitten
Sam Hocevar
56511457d2
test: give more explicit names to unit test cases.
13 vuotta sitten
Sam Hocevar
5081f7034a
test: reorganise test suite and benchmark code.
13 vuotta sitten
Sam Hocevar
5a5b811200
lolunit: rename a few methods for consistency.
13 vuotta sitten
Sam Hocevar
2290b7b930
lolunit: add a LOLUNIT_SET_CONTEXT / LOLUNIT_UNSET_CONTEXT macro pair.
This is useful when doing several asserts in one loop, for instance: there
isn't always a way to deduce the loop index from the assert failure, so
these macros allow the user to give more context information.
13 vuotta sitten
Sam Hocevar
5ab9eb3c62
test: get rid of the need for LOLUNIT_SETUP_FIXTURE().
13 vuotta sitten
Sam Hocevar
a374127e80
test: replace CppUnit with our LolUnit test suite.
CppUnit is really too large for our needs, would require to be precompiled
for many platforms, in all combinations of debug and release modes, with
additional variants for libstdc++ versions. We replace it with our own
lightweight implementation, LolUnit. Good riddance.
13 vuotta sitten
Sam Hocevar
0e622822e7
test: add a few Visual Studio 2010 project files and fix testsuite code
so that it builds properly.
13 vuotta sitten
Sam Hocevar
5454005d81
debug: various improvements to the test programs.
13 vuotta sitten
Sam Hocevar
2489233a44
core: improve tan() accuracy by tweaking higher order Taylor coefficients.
13 vuotta sitten
Sam Hocevar
82d81256b9
core: implement accelerated lol_sincos() and lol_tan().
13 vuotta sitten
Sam Hocevar
49f9c59ff3
core: implement accelerated cos().
13 vuotta sitten
Sam Hocevar
6ed53d9868
test: do the trigonometry tests on doubles instead of floats.
13 vuotta sitten
Sam Hocevar
105485a3aa
test: new test for trigonometric functions.
13 vuotta sitten