Lines Matching refs:value
21 // checks 0 <= value <= max.22 // On success, returns value24 template <typename T> T checkLE(uint64_t value, T max) {26 if (value > static_cast<uint64_t>(max)) {28 value = 0;30 return static_cast<T>(value);33 int checkGE(int value, int min) {34 if (value < min) {36 value = min;38 return value;