Lines Matching refs:value
25 // checks 0 <= value <= max.26 // On success, returns value28 template <typename T> T checkLE(uint64_t value, T max) {30 if (value > static_cast<uint64_t>(max)) {32 value = 0;34 return static_cast<T>(value);37 int checkGE(int value, int min) {38 if (value < min) {40 value = min;42 return value;