f6056153e3
rename root namespace from util to cruft
...
This places, at long last, the core library code into the same namespace
as the extended library code.
2018-08-05 14:42:02 +10:00
803acc9a87
relicense under MPL-2.0
2018-08-04 15:14:06 +10:00
9a798446b5
build: remove unnecessary includes
...
discovered with include-what-you-use
2016-10-12 15:08:22 +11:00
a59844be98
don't pull in namespace std
2016-03-11 13:28:56 +11:00
8b16317b0e
float: style
2015-11-13 17:18:10 +11:00
7b083df977
maths: tighten up type requirements for almost_equal
...
almost_equal only operates on two reals, or two integers (and even then
only on the same signedness).
2015-11-13 17:18:10 +11:00
b3a8240150
float: bump almost_equal delta slightly
2015-08-25 17:18:31 +10:00
08b6cbacea
float: lower ULPs threshold for almost_equal
...
we weren't detecting differences with 4 decimal point differences
2015-08-20 15:34:20 +10:00
7ae57730f0
whitespace
2015-04-13 18:06:08 +10:00
9a6c4572fa
float: correctly handle double comparisons
2015-02-03 15:54:55 +11:00
6bf011efa4
float: tighten up almost_equal tolerance
2015-01-29 15:49:57 +11:00
c841aadda0
float: fix negative-zero/zero almost_equal
2015-01-29 15:49:57 +11:00
794a688470
float: almost_equal takes unsigned ULPs
2015-01-29 15:44:30 +11:00
52f53caee5
debug: drop support for CHECK_HARD
...
HARD vs SOFT assertions were never very well defined or supported.
Currently they just imply a level of functionality that isn't present;
it's better to remove them instead of expending the effort at this
point.
2015-01-28 14:49:34 +11:00
aca28a65e5
float: check comparison ULPs is sensible
2015-01-22 00:24:34 +11:00
b02aa2e568
float: remove debug print
2015-01-22 00:24:24 +11:00
ca6fa4ad3e
float: use ULP based comparison
2015-01-21 23:32:06 +11:00
bce3abac40
build: remove implicit type casting warnings
2014-07-02 15:47:53 +10:00
281c1bed99
For floating constants to be of parent floating type
2012-06-13 16:01:42 +10:00
4f5d75a1df
Make all check macros uppercase
2012-05-11 12:34:21 +10:00
32e3e61fa7
Fix almost_equal for NaN and Inf
2012-05-03 15:58:18 +10:00
f29cb50ff7
Avoid type punning by using an integer/float union
2011-06-30 21:43:23 +10:00
745e06d1af
initial import from waif
2011-05-23 17:18:52 +10:00