Commit Graph

37 Commits

Author SHA1 Message Date
5bc2cf12d4 maths: use true constexpr values for pi 2018-03-12 23:06:15 +11:00
cfe1185621 maths: move log2 into header for constexpr 2017-12-22 12:34:14 +11:00
c4ca41d6c4 maths: make round_pow2 constexpr 2017-01-04 22:40:06 +11:00
9a798446b5 build: remove unnecessary includes
discovered with include-what-you-use
2016-10-12 15:08:22 +11:00
8cc4c1e82a format: reimplement format rendering
requires literal string arrays, and implements more of the specifier
specification. does not implement 'n' or '$' specifiers. falls back to
snprintf for real arguments.
2016-07-28 13:39:27 +10:00
e71bd9f621 maths: move is_integer into headers to avoid param explosion 2016-05-12 17:34:47 +10:00
c04c56ed32 maths: make is_pow2 constexpr 2016-02-02 11:32:29 +11:00
791f8b2bcd maths: remove rootsquare, use std::hypot instead 2015-11-16 13:18:29 +11:00
b1bc54ac8c maths: move remaining operations into util namespace 2015-11-16 11:44:07 +11:00
5a26793b0a maths: reduce template verbosity 2015-11-13 18:00:15 +11:00
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
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
9a1a75d623 maths: correct constness of PI instantiations 2015-05-15 11:01:11 +10:00
7bc96bd60f maths: explicitly instantiate PI for float, double 2015-05-01 02:42:32 +10:00
2658b41ea1 relicence under Apache-2.0 2015-04-13 18:05:28 +10: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
75d69bf9df maths: fix the ordering of limit 2015-02-05 20:37:07 +11:00
8487f700f6 maths: add smoothstep 2015-02-05 20:37:07 +11:00
84ca008305 copyright headers and date bumps 2014-09-17 18:20:28 +10:00
bb3cbb584c maths: add log2up 2014-09-17 16:41:38 +10:00
b3e72051d6 maths: fix log2 2014-09-17 16:41:19 +10:00
755e0d92cb maths: add log2 2014-09-11 15:34:59 +10:00
59348c0589 maths: whitespace 2014-09-11 15:34:46 +10:00
935b1fe2e9 maths: allow differing arg typs in round_up 2014-08-01 20:44:58 +10:00
bce3abac40 build: remove implicit type casting warnings 2014-07-02 15:47:53 +10:00
20e8297768 Add query for decimal digits of an integer 2012-07-30 16:31:51 +10:00
983b96c958 Move is_pow2 to headers for template generation 2012-07-30 16:31:19 +10:00
f9cc4926f2 Categorise functionality from types.hpp 2012-05-25 15:19:07 +10:00
4f5d75a1df Make all check macros uppercase 2012-05-11 12:34:21 +10:00
4a745f870e Use signbit for floating point sign<T> 2012-05-03 15:55:45 +10:00
77942e008d Change my email to an active domain 2012-04-23 13:10:50 +10:00
fc0b978ac1 Add maths check for integer numbers on doubles 2012-04-20 18:04:40 +10:00
380d51d05a Add is_pow2, round_up 2011-08-29 14:31:22 +10:00
31796b34f6 Add pure annotation to simple maths and ntoh funcs 2011-07-16 15:53:53 +10:00
20f81a7630 Correct package name in copyright headers
Package is no longer waif, after its seperation from the waif
library/application. Hopefully there aren't any more dependencies...
2011-06-21 20:26:32 +10:00
745e06d1af initial import from waif 2011-05-23 17:18:52 +10:00