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