Home | History | Annotate | Download | only in gptfdisk

Lines Matching refs:high

48 // Get a numeric value from the user, between low and high (inclusive).
51 // (If def is outside of the low-high range, an explicit response
53 int GetNumber(int low, int high, int def, const string & prompt) {
57 if (low != high) { // bother only if low and high differ...
65 if ((response < low) || (response > high))
70 } while ((response < low) || (response > high));
71 } else { // low == high, so return this value
94 // Obtains a sector number, between low and high, from the
98 // respectively. If a "-" prefix is used, use the high value minus
102 uint64_t GetSectorNum(uint64_t low, uint64_t high, uint64_t def, uint64_t sSize,
112 response = IeeeToInt(line, sSize, low, high, def);
113 } while ((response < low) || (response > high));
122 // inclues a "-", subtracts from high. If IeeeValue is empty, returns def.
125 // inValue works out to something outside the range low-high, returns the
134 uint64_t IeeeToInt(string inValue, uint64_t sSize, uint64_t low, uint64_t high, uint64_t def) {
189 // Recompute response based on low part of range (if default == high
191 // range) or the defaut value (if default != high, which should be
193 if (def == high) {
207 if (response > high)
210 response = high - response;