34 #ifndef SERIAL_NUMBER_HPP_ 35 #define SERIAL_NUMBER_HPP_ 64 template <
typename U
intType>
static bool IsLess(UintType aFirst, UintType aSecond)
69 "UintType MUST be an 8, 16, 32, or 64 bit `uint` type");
73 return ((aFirst - aSecond) & kNegativeMask) != 0;
92 template <
typename U
intType>
static bool IsGreater(UintType aFirst, UintType aSecond)
94 return IsLess(aSecond, aFirst);
100 #endif // SERIAL_NUMBER_HPP_
Definition: numeric_limits.hpp:47
Definition: type_traits.hpp:99
Definition: serial_number.hpp:46
static bool IsGreater(UintType aFirst, UintType aSecond)
Definition: serial_number.hpp:92
static bool IsLess(UintType aFirst, UintType aSecond)
Definition: serial_number.hpp:64