1 #ifndef _RE2C_UTIL_U32LIM_
2 #define _RE2C_UTIL_U32LIM_
10 template<u
int32_t LIMIT>
15 : value (x < LIMIT ? x : LIMIT)
18 : value (x < LIMIT ? static_cast<uint32_t> (x) : LIMIT)
43 return value == LIMIT;
49 =
static_cast<uint64_t
> (x.value)
50 + static_cast<uint64_t> (y.value);
59 =
static_cast<uint64_t
> (x.value)
60 * static_cast<uint64_t> (y.value);
68 return x.value < y.value;
72 #endif // _RE2C_UTIL_U32LIM_
static u32lim_t from32(uint32_t x)
friend bool operator<(u32lim_t x, u32lim_t y)
static u32lim_t from64(uint64_t x)
friend u32lim_t operator+(u32lim_t x, u32lim_t y)
friend u32lim_t operator*(u32lim_t x, u32lim_t y)