Commit Graph

17 Commits

Author SHA1 Message Date
f6056153e3 rename root namespace from util to cruft
This places, at long last, the core library code into the same namespace
as the extended library code.
2018-08-05 14:42:02 +10:00
803acc9a87 relicense under MPL-2.0 2018-08-04 15:14:06 +10:00
1567c4f9cc cast: test the correct type for alignment 2018-05-10 14:54:03 +10:00
117a870b19 cast: add ffs cast 2018-05-10 13:52:49 +10:00
ec44c68ce6 view: require fully named types for casting 2018-05-10 12:54:45 +10:00
2ec9a7ebe6 maths: remove util::is_nan in preference of std::isnan 2018-05-10 12:45:45 +10:00
06e29ed136 cast: add alignment cast 2018-05-09 17:47:47 +10:00
c9cc38eac7 cast: tighten type constraints for narrow cast 2018-01-30 16:25:28 +11:00
1d11f05918 cast: move casting functions into util::cast namespace 2018-01-16 15:11:15 +11:00
34788756d2 build: don't use './' as an include prefix
GCC produces ODR error when including paths of the form './foo' and
'foo' in the same binary. Rather than managing duplication we just
universally pick the absolute form over the relative form.
2017-11-22 16:49:37 +11:00
d1fe677977 cast: use is_nan to avoid integer warnings 2017-01-23 21:48:12 +11:00
6781f7a361 cast: allow trunc_cast to same type
this makes templated code slightly easier to write
2016-10-25 17:50:11 +11:00
0e29675ef5 cast: tighten trunc_cast type restrictions
trunc_cast should be between float/int/uint or to types of lesser
precision. also restrict to fundamental types until we actually test
with arbitrary types.
2016-06-29 17:53:44 +10:00
0be5ccf5c7 cast: style 2015-11-17 16:38:59 +11:00
e05e049c69 cast: ensure real<->int or size reduction in trunc_cast 2015-11-17 16:38:34 +11:00
cfb5e13c28 cast: simplify sign_cast, remove identity case 2015-11-17 16:37:51 +11:00
424e6e8701 cast: move types/casts to cast 2015-11-17 16:19:27 +11:00