6b1cbc4d73
Move source out of root and into the cruft directory
2024-07-18 12:27:05 +10:00
95c5fc5b1d
bitwise: remove tests that perform a full rotate
...
Full rotation is undefined on x86 so it's caught be assertions now.
2019-05-01 13:17:35 +10:00
174bd62a29
bitwise: add ctz, aka count trailing zeroes
2019-04-24 13:25:44 +10:00
5d76fb7792
bitwise: add bitfield tests
2019-02-03 14:03:38 +11:00
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
9471b9eae7
test: ensure all tests return a useful status code
...
These tests were all assumed to execute correctly because CTest is not
capable of parsing the TAP output and instead relies entirely on status
codes.
2017-05-22 13:55:21 +10:00
9a798446b5
build: remove unnecessary includes
...
discovered with include-what-you-use
2016-10-12 15:08:22 +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
785a9e08f6
tap: remove default format strings
2015-07-21 03:17:20 +10:00
bbbbb675a6
test: move tests to TAP output
2015-04-13 16:45:56 +10:00
61ee601df1
bitwise: use lookup table for byte reverse
...
When used across large buffers an iterative reverse scheme is lesss
efficient. The small cache cost for single reverses is good enough to
just eat here.
2014-09-01 16:23:46 +10:00
028dee034a
bitwise: add rotater
2014-04-16 19:16:25 +10:00
990d5ab806
Rename rotate_left to the more friendly rotatel
2013-03-11 20:41:19 +11:00