Commit Graph

1380 Commits

Author SHA1 Message Date
eb2722bfa4 maths: style 2015-11-16 13:21:38 +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
8f806b5fa8 cmdopt: use util's implementation of pow 2015-11-13 17:59:58 +11:00
b6a4166c68 maths: style 2015-11-13 17:25:21 +11:00
1ec9582240 alloc: add initial allocator stubs 2015-11-13 17:18:10 +11:00
584b57b669 m/b/circular: check ftruncate return value 2015-11-13 17:18:10 +11:00
8b16317b0e float: style 2015-11-13 17:18:10 +11:00
f2bd6501e2 maths: remove const/pure attributes
const/pure attributes are causing inconsitencies for various functions.
it's safer to just not use them until there's a more thorough
investigation of their impact.
2015-11-13 17:18:10 +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
c76e0716c4 maths: annotate with gnu::const where appropriate 2015-11-13 13:50:58 +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
11256c2645 raii: scoped_function takes a nullary void functor 2015-11-13 13:48:46 +11:00
3531b09794 platform: add platform suffix definitions 2015-11-13 13:48:46 +11:00
6561e46018 memory: remove legacy scoped_malloc 2015-11-13 13:48:46 +11:00
32ca27abdf memory: add paged and circular buffers 2015-11-11 16:56:35 +11:00
597fda0dfa memory: add pagesize query 2015-11-11 16:56:00 +11:00
e5dd121ece types: add std::data analogue 2015-11-05 13:17:59 +11:00
a73fb9307c matrix: extract size dependant operations 2015-11-04 23:23:46 +11:00
2ca4a7e291 coord/ops: enable iff types are coords 2015-11-04 23:22:49 +11:00
23fff4a65a coord/ops: expand dot product to accept arrays 2015-11-04 17:10:16 +11:00
176b33604b matrix: parameterise on dimension 2015-10-30 23:40:13 +11:00
fe7e3e9c6f test/maths: remove debug print statement 2015-10-29 18:23:07 +11:00
ac86ef3bd5 maths: fix hi-lo normalisation shift size 2015-10-29 18:22:46 +11:00
0369b16f73 maths: correct limit's assertion operator 2015-10-29 18:22:28 +11:00
c33fd2601c backtrace: add addr2line fields in output 2015-10-29 17:52:48 +11:00
620c2d3eb1 io: add FILE slurp overload 2015-10-29 17:52:19 +11:00
4aeacc3a27 maths: make limit constexpr friendly 2015-10-29 10:51:43 +11:00
556ba956a3 image: instantiate 64 bit types 2015-10-29 10:51:42 +11:00
975fe0be5b image: fix is_packed query 2015-10-29 10:51:42 +11:00
480bcdc555 image: fix buffer stride initialisation 2015-10-29 10:51:42 +11:00
cb12d4fd1f io: remove redundant write overloads 2015-10-29 10:51:42 +11:00
73720feceb io: remove access_flag abstraction 2015-10-29 10:48:11 +11:00
1de33ce53c debug: use new namespace 2015-10-29 10:45:42 +11:00
2702c53df4 debug: make panic and friends constexpr 2015-10-29 10:43:41 +11:00
ba9a8f8b35 io: add more write wrappers 2015-10-20 21:04:14 +11:00
003685ce2b image: templatise on component count 2015-10-20 16:54:15 +11:00
03efa074ab maths: make limit constexpr 2015-10-20 16:54:15 +11:00
c2770a266b maths: split normalise functions 2015-10-20 16:54:15 +11:00
3991848726 coord: add vector relational operators 2015-10-20 12:37:08 +11:00
b5929b7b4a image: remove access to w/h/s members 2015-10-19 17:43:48 +11:00
fdb12e57f6 log: call format::operator% directly
one of the arguments may have overloaded operator% which may cause weird
compile-time errors
2015-10-19 17:41:56 +11:00
d847071f76 extent: add convenience size typedefs 2015-10-19 17:09:00 +11:00
b45255900c netpbm: avoid image w/h/s variables 2015-10-19 17:08:35 +11:00
4cd6dcc85c region: use size_type for scaling param 2015-10-19 17:08:08 +11:00
f9bb2be93c noise/midpoint: use explicit image extent query 2015-10-19 17:07:53 +11:00
36b4043faf maths: add identity function 2015-10-19 17:06:52 +11:00