b6a4166c68
maths: style
2015-11-13 17:25:21 +11:00
89fe57b65b
maths: move more operations into util::
2015-11-13 17:18:10 +11:00
02a42f282e
maths: use SFINAE for round_to instead of assert
2015-11-13 13:48:46 +11:00
cd58dc8cc3
maths: rename align as round_to
...
reduces confusion between pointer align, and number rounding
2015-11-13 13:48:46 +11:00
02e0885ee9
maths: make pow more readable
2015-10-12 23:56:59 +11:00
c052d7df4b
maths: use templated PI and E constants
2015-04-29 17:45:39 +10:00
2658b41ea1
relicence under Apache-2.0
2015-04-13 18:05:28 +10:00
14cab4fb9b
maths: use std::signbit instead of builtin
2015-04-07 16:53:11 +10:00
93ed983a6f
maths: use __builtin_signbit to handle +- zeros
2015-03-24 02:42:42 +11:00
585a0b464c
maths: make sign query inline
...
code which needs this function tends to require a fairly simple
implementation inline for the optimiser to reach more successfully. we
tended to generate function calls to this which slowed this inner loops.
2015-03-20 01:36:15 +11:00
2fcc16646c
maths: templatise to_{radians,degrees}
2015-02-04 15:44:03 +11:00
e4a93fe23c
maths: make pow constexpr
2015-01-28 14:57:37 +11:00
4260c91cd0
maths: add integer power operation
2015-01-21 23:40:13 +11:00
9fc979ee1d
maths: rename divup to align
2014-09-01 16:26:01 +10:00
935b1fe2e9
maths: allow differing arg typs in round_up
2014-08-01 20:44:58 +10:00