4 Commits (c15d3b1323e5643c407aa517fab4037f64d2cd64)

Author SHA1 Message Date
Robin Mills d632988bbd Massive code prolog cleanup. 4 years ago
Dan Čermák 2dacb19933 [safe_op] Add Safe::abs(), calculates absoulte value without UB
Add a drop-in replacement for std::abs which never produces
negative values and thereby never invokes undefined behavior.
7 years ago
Dan Čermák 06ec1e6984 [safe_op] Refactored addition overflow checks using functions only
- templated structs were not required, SFINAE works for functions too
  => use instead, removes some unneeded code
- fix non-usage of builtins with clang
- adjust unit tests
7 years ago
Dan Čermák 3b3283e37d Added unit tests for new overflow checking addition functions 8 years ago