Home | History | Annotate | Download | only in gptfdisk

Lines Matching refs:high

46 // Get a numeric value from the user, between low and high (inclusive).
49 // (If def is outside of the low-high range, an explicit response
51 int GetNumber(int low, int high, int def, const string & prompt) {
55 if (low != high) { // bother only if low and high differ...
63 if ((response < low) || (response > high))
68 } while ((response < low) || (response > high));
69 } else { // low == high, so return this value
92 // Obtains a sector number, between low and high, from the
96 // respectively. If a "-" prefix is used, use the high value minus
100 uint64_t GetSectorNum(uint64_t low, uint64_t high, uint64_t def, uint64_t sSize,
110 response = IeeeToInt(line, sSize, low, high, def);
111 } while ((response < low) || (response > high));
120 // inclues a "-", subtracts from high. If IeeeValue is empty, returns def.
123 // inValue works out to something outside the range low-high, returns the
132 uint64_t IeeeToInt(string inValue, uint64_t sSize, uint64_t low, uint64_t high, uint64_t def) {
187 // Recompute response based on low part of range (if default == high
189 // range) or the defaut value (if default != high, which should be
191 if (def == high) {
205 if (response > high)
208 response = high - response;