Sam Hocevar
66b7dd7198
test: remove isnan() unit tests because we can't rely on that function.
vor 11 Jahren
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
vor 12 Jahren
Sam Hocevar
56511457d2
test: give more explicit names to unit test cases.
vor 13 Jahren
Sam Hocevar
5081f7034a
test: reorganise test suite and benchmark code.
vor 13 Jahren
Sam Hocevar
04c4a959cd
core: add our custom isnan() macro to the core headers.
vor 13 Jahren
Sam Hocevar
5a5b811200
lolunit: rename a few methods for consistency.
vor 13 Jahren
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.
vor 13 Jahren
Sam Hocevar
5ab9eb3c62
test: get rid of the need for LOLUNIT_SETUP_FIXTURE().
vor 13 Jahren
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.
vor 13 Jahren
Sam Hocevar
0e622822e7
test: add a few Visual Studio 2010 project files and fix testsuite code
so that it builds properly.
vor 13 Jahren
Sam Hocevar
3402db36c3
optim: better isnan() reimplementation.
vor 13 Jahren
Sam Hocevar
7680eca5d8
test: implement a custom isnan()
This version is faster (about 25% on x86_64) and works when extreme
optimisation options such as -ffast-math are used.
vor 13 Jahren
Sam Hocevar
cb001ddbcc
core: tune the half precision code so that the best variants are being
used on the PS3 platform.
vor 13 Jahren
Sam Hocevar
e47928e8d1
test: improve the benchmark code to measure a lot more half precision
number conversions.
vor 13 Jahren
Sam Hocevar
0bbd1e43c2
test: add a fallback for isnan() when not defined by the system includes.
vor 13 Jahren
Sam Hocevar
205fc5fc22
core: rename half::isnan() etc. to half::is_nan() because "isnan" can be
a C macro on some systems (Android NDK, PS3...).
vor 13 Jahren
Sam Hocevar
2d85e76ec8
core: minor refactoring in the float / half conversions to accomodate
for future array versions.
vor 13 Jahren
Sam Hocevar
8b71ddb30c
core: implement new half / float operations and the associated tests.
vor 13 Jahren
Sam Hocevar
92e3387f7c
test: augment the half precision numbers testsuite.
vor 13 Jahren
Sam Hocevar
4379388b52
test: add first test routines for the half class.
vor 13 Jahren