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