Searched refs:SafeMath (Results 1 – 2 of 2) sorted by relevance
34 static inline typename select_bigger<T1, T2>::type SafeMath(T1 a, T2 b) { in SafeMath() function47 return SafeMath<std::plus>(a, b); in SafeAdd()53 return SafeMath<std::minus>(a, b); in SafeSub()59 return SafeMath<std::multiplies>(a, b); in SafeMul()
26 TEST(SafeMath, Add) { in TEST() argument61 TEST(SafeMath, Sub) { in TEST() argument96 TEST(SafeMath, Mul) { in TEST() argument