Commit Graph

2202 Commits

Author SHA1 Message Date
54a56e5d50 matrix: reduce use of indented namespacing 2016-08-15 20:56:10 +10:00
980018656b matrix: use begin/end to define most operators 2016-08-15 20:56:10 +10:00
18915b6610 matrix: use infix_iterator for ostream operator 2016-08-15 20:56:10 +10:00
cee2b7b516 matrix: make rows/cols constexpr 2016-08-15 20:56:10 +10:00
43b59c6801 matrix: add begin/end family of methods 2016-08-15 20:56:10 +10:00
b809925396 vector: rename UNIT to ONES
unit isn't a normalised vector, so it's misleading to call it a 'unit'
vector
2016-08-15 20:56:10 +10:00
86aec9d9dd backtrace: remove excess newline in execinfo backend 2016-08-15 20:56:10 +10:00
2bbba9ab01 guid: style 2016-08-15 20:56:10 +10:00
931dc65727 colour: describe the rationale for overloaded cast operator 2016-08-15 20:56:10 +10:00
94ef217778 colour: add type_name specialisation 2016-08-13 21:03:39 +10:00
bc8cac0e1e introspection: remove type_name's empty default definition 2016-08-13 21:02:57 +10:00
99034e4e4e configure: comment deferred call to NC_DEBUGGING 2016-08-13 17:22:23 +10:00
b8c88c1292 net: remove networking code
this now forms a separate library, libcruft-net.
2016-08-12 15:15:37 +10:00
ead926bed2 vector: remove difference methods 2016-08-11 16:33:42 +10:00
1f3b44a20e vector: move vector::is_zero to coord::almost_zero 2016-08-11 16:33:32 +10:00
fe625c3441 quaternion: style 2016-08-11 15:01:07 +10:00
606a9c4eb8 coord/ops: use free functions for normalisations 2016-08-11 14:58:46 +10:00
517d7ce4a2 coord/ops: use distinct trait to enable scalar ops 2016-08-11 14:58:04 +10:00
650f5c05e6 coord/ops: rename traits to result 2016-08-11 14:23:32 +10:00
efb2657798 coord/fwd: use fwd header for ops 2016-08-11 14:22:53 +10:00
dfdd9421cd Revert "coord/base: remove front/back methods"
This reverts commit 0b811e636e.
2016-08-10 18:26:40 +10:00
cf3d58074f vector: add convenience typedef vectoru 2016-08-10 18:26:13 +10:00
974998cc48 quaternion: update to use coord framework 2016-08-10 17:42:52 +10:00
bb6678726f matrix: rename translate/rotate to translation/rotation 2016-08-10 17:42:19 +10:00
de48f75e96 format: fix transcription of zero values to strings
an iteration condition terminated the write when a value was zero rather
than when all numerals were written. instead, iterate over the remaining
numerals.

fixes printf("%zu", 0u)
2016-08-10 17:38:39 +10:00
00eca4445b debug: use less complex specialistion for validator 2016-08-10 17:36:25 +10:00
8f8896b0f6 debug: use appropriate signed literals for CHECK 2016-08-10 17:34:54 +10:00
0b811e636e coord/base: remove front/back methods 2016-08-10 17:33:58 +10:00
6ddff9dfde coord/base: use std::fill for scalar constructor 2016-08-10 17:33:45 +10:00
116ad04a1f build: use ostream/istream over iostream 2016-08-04 17:42:41 +10:00
310c01b9d2 view: instantiate uint8_t ostream operator 2016-08-04 14:15:02 +10:00
d0a797d37e debug: add CHECK_MOD 2016-08-03 18:12:05 +10:00
74284415a7 debug: prefer constref temporaries for CHECK macros 2016-08-03 18:11:29 +10:00
9270a05a8b debug: prefer use of the standard __func__ symbol 2016-08-03 18:11:04 +10:00
c8d8067af2 format: add unsigned char write method
unsigned char sometimes arises from string literals
2016-08-03 18:10:09 +10:00
f9fd156df8 io_posix: add fd constructors to mapped_file 2016-08-02 18:51:04 +10:00
c6f483d077 ascii: add to_integer from ascii to numeric 2016-08-02 18:50:35 +10:00
3a0f20e68b ascii: add is_space 2016-08-02 18:50:26 +10:00
5fee69debb annotation: add likely/unlikely functions 2016-08-02 18:49:42 +10:00
7e0875628b m4/nc: bump for ipa-pta optimsation fixes 2016-08-01 17:24:29 +10:00
7d277bb8ff debug: reduce constexpr tomfoolery where not required
don't use compiler fooling tricks where it's not required
2016-08-01 17:23:53 +10:00
0b85632c97 ripemd: panic rather than throw in constexpr
calculating the hash should never need to throw; all error cases should
be detectable at construction time. we should panic if we detect such an
error.

this fixes a compilation warning
2016-08-01 17:23:30 +10:00
19bf405710 m4/nc: use new NC_SUBPACKAGE argument form 2016-07-31 14:32:09 +10:00
453bd1666d m4: delete unused ax m4 files 2016-07-31 14:32:09 +10:00
c26c687912 format: set ostream precision as if for strings
ostream conversions are converted to strings anyway, so we should treat
them as such earlier in the process.
2016-07-28 16:13:23 +10:00
fad8181842 format: allow undersize integers for conversion 2016-07-28 16:13:23 +10:00
a40e09ed97 format: write c_str as %s by default, support c_str as %p 2016-07-28 14:18:47 +10:00
b4640d64d8 format: use const-ref over rval-ref for value params 2016-07-28 14:18:47 +10:00
b44e6b8cd7 WIP tap param rename 2016-07-28 14:18:47 +10:00
1e31f5daff Merge branch 'master' of ssh://nerdcruft.net/var/git/libgim 2016-07-28 13:47:36 +10:00