Home
last modified time | relevance | path

Searched refs:upper (Results 1 – 25 of 115) sorted by relevance

12345

/haiku/src/system/kernel/util/
H A Dring_buffer.cpp61 size_t upper = buffer->size - buffer->first; in read_from_buffer() local
62 size_t lower = length - upper; in read_from_buffer()
65 if (user_memcpy(data, buffer->buffer + buffer->first, upper) < B_OK in read_from_buffer()
66 || user_memcpy(data + upper, buffer->buffer, lower) < B_OK) in read_from_buffer()
69 memcpy(data, buffer->buffer + buffer->first, upper); in read_from_buffer()
70 memcpy(data + upper, buffer->buffer, lower); in read_from_buffer()
104 size_t upper = buffer->size - position; in write_to_buffer() local
105 size_t lower = length - upper; in write_to_buffer()
108 if (user_memcpy(buffer->buffer + position, data, upper) < B_OK in write_to_buffer()
109 || user_memcpy(buffer->buffer, data + upper, lower) < B_OK) in write_to_buffer()
[all …]
/haiku/src/add-ons/print/drivers/gutenprint/
H A DGPParameterVisitor.cpp242 double upper = description->bounds.dbl.upper; in VisitDoubleParameter() local
244 if (lower <= defaultValue && defaultValue <= upper) in VisitDoubleParameter()
245 DoubleParameter(name, text, lower, upper, defaultValue, parameterClass); in VisitDoubleParameter()
256 int upper = description->bounds.integer.upper; in VisitIntParameter() local
258 if (lower <= defaultValue && defaultValue <= upper) in VisitIntParameter()
259 IntParameter(name, text, lower, upper, defaultValue, parameterClass); in VisitIntParameter()
270 double upper = description->bounds.dimension.upper; in VisitDimensionParameter() local
272 if (lower <= defaultValue && defaultValue <= upper) in VisitDimensionParameter()
273 DimensionParameter(name, text, lower, upper, defaultValue, in VisitDimensionParameter()
H A DGPCapabilityExtractor.h49 double lower, double upper, double defaultValue,
52 int upper, int defaultValue,
55 int lower, int upper, int defaultValue,
H A DGPParameterVisitor.h69 double lower, double upper, double defaultValue,
72 int lower, int upper, int defaultValue,
76 int upper, int defaultValue,
H A DGPCapabilityExtractor.cpp231 const char* displayName, double lower, double upper, double defaultValue, in DoubleParameter() argument
237 DoubleRangeCap* capability = new DoubleRangeCap(displayName, lower, upper, in DoubleParameter()
246 int lower, int upper, int defaultValue, in IntParameter() argument
252 IntRangeCap* capability = new IntRangeCap(displayName, lower, upper, in IntParameter()
261 const char* displayName, int lower, int upper, int defaultValue, in DimensionParameter() argument
267 IntRangeCap* capability = new IntRangeCap(displayName, lower, upper, in DimensionParameter()
/haiku/src/kits/debugger/dwarf/
H A DBaseUnit.cpp97 int upper = fEntries.Count() - 1; in EntryForOffset() local
98 while (lower < upper) { in EntryForOffset()
99 int mid = (lower + upper + 1) / 2; in EntryForOffset()
101 upper = mid - 1; in EntryForOffset()
/haiku/src/servers/registrar/
H A DPriorityMessageQueue.cpp119 int32 upper = fMessages.CountItems(); in _FindInsertionIndex() local
120 while (lower < upper) { in _FindInsertionIndex()
121 int32 mid = (lower + upper) / 2; in _FindInsertionIndex()
126 upper = mid; in _FindInsertionIndex()
H A DEventQueue.cpp303 int32 upper = fEvents.CountItems(); in _FindInsertionIndex() local
305 while (lower < upper) { in _FindInsertionIndex()
306 int32 mid = (lower + upper) / 2; in _FindInsertionIndex()
309 upper = mid; // time < mid:time => time < upper:time in _FindInsertionIndex()
/haiku/src/kits/debugger/model/
H A DFileSourceCode.cpp137 int32 upper = fSourceLocations.Size(); in _FindSourceLocationIndex() local
138 while (lower < upper) { in _FindSourceLocationIndex()
139 int32 mid = (lower + upper) / 2; in _FindSourceLocationIndex()
141 upper = mid; in _FindSourceLocationIndex()
H A DType.cpp53 BVariant upper = subrangeType->UpperBound(); in CountElements() local
55 if (!lower.IsInteger(&isSigned) || !upper.IsInteger()) in CountElements()
59 ? upper.ToInt64() - lower.ToInt64() + 1 in CountElements()
60 : upper.ToUInt64() - lower.ToUInt64() + 1; in CountElements()
/haiku/src/apps/debuganalyzer/model/
H A DThreadModel.cpp105 int32 upper = CountSchedulingEvents() - 1; in FindSchedulingEvent() local
107 while (lower < upper) { in FindSchedulingEvent()
108 int32 mid = (lower + upper) / 2; in FindSchedulingEvent()
115 upper = mid; in FindSchedulingEvent()
H A DModel.cpp362 size_t upper = fIORequestCount; in ClosestRequestStartIndex() local
363 while (lower < upper) { in ClosestRequestStartIndex()
364 size_t mid = (lower + upper) / 2; in ClosestRequestStartIndex()
370 upper = mid; in ClosestRequestStartIndex()
669 size_t upper = CountEvents(); in ClosestEventIndex() local
670 while (lower < upper) { in ClosestEventIndex()
671 size_t mid = (lower + upper) / 2; in ClosestEventIndex()
672 while (mid < upper) { in ClosestEventIndex()
687 if (mid == upper) { in ClosestEventIndex()
697 upper = mid; in ClosestEventIndex()
/haiku/src/kits/shared/
H A DMemoryRingIO.cpp129 const size_t upper = fBufferSize - fReadAtNext; in Read() local
130 const size_t lower = size - upper; in Read()
131 memcpy(buffer, fBuffer + fReadAtNext, upper); in Read()
132 memcpy(buffer + upper, fBuffer, lower); in Read()
166 const size_t upper = fBufferSize - fWriteAtNext; in Write() local
167 const size_t lower = size - upper; in Write()
169 memcpy(fBuffer, buffer + upper, lower); in Write()
/haiku/src/bin/debug/profile/
H A DSharedImage.cpp103 int32 upper = fSymbolCount; in FindSymbol() local
105 while (lower < upper) { in FindSymbol()
106 int32 mid = (lower + upper) / 2; in FindSymbol()
110 upper = mid; in FindSymbol()
/haiku/src/tests/system/kernel/
H A Dmtrr_power_test.c8 nearest_powers(uint64 value, uint64 *lower, uint64 *upper) in nearest_powers() argument
18 if (upper) in nearest_powers()
19 *upper = power; in nearest_powers()
/haiku/src/apps/mediaplayer/support/
H A DEventQueue.cpp129 int32 upper = fEvents.CountItems(); in _AddEvent() local
130 while (lower < upper) { in _AddEvent()
131 int32 mid = (lower + upper) / 2; in _AddEvent()
134 upper = mid; in _AddEvent()
/haiku/src/add-ons/kernel/generic/tty/
H A Dline_buffer.cpp112 size_t upper = buffer.size - buffer.first; in line_buffer_user_read() local
113 size_t lower = length - upper; in line_buffer_user_read()
115 if (user_memcpy(data, buffer.buffer + buffer.first, upper) != B_OK in line_buffer_user_read()
116 || user_memcpy(data + upper, buffer.buffer, lower) != B_OK) in line_buffer_user_read()
/haiku/src/tests/system/network/tcptester/
H A Dtcptester.cpp55 int upper, lower = number(ctx); in value() local
58 upper = number(ctx); in value()
60 upper = lower + 50; in value()
64 return lower + rand() % (upper - lower + 1); in value()
/haiku/src/apps/mediaplayer/supplier/
H A DSubTitlesSRT.cpp195 int32 upper = fSubTitles.CountItems(); in _IndexFor() local
196 while (lower < upper) { in _IndexFor()
197 int32 mid = (lower + upper) / 2; in _IndexFor()
201 upper = mid; in _IndexFor()
/haiku/src/apps/debuganalyzer/gui/
H A DListSelectionModel.cpp178 int32 upper = fSelectedItems.Count(); in _FindItem() local
180 while (lower < upper) { in _FindItem()
181 int32 mid = (lower + upper) / 2; in _FindItem()
186 upper = mid; in _FindItem()
/haiku/src/kits/debugger/source_language/c_family/
H A DCLanguageFamilySyntaxHighlightInfo.cpp89 int upper = (sizeof(kLanguageKeywords)/sizeof(char*)) - 1; in IsLanguageKeyword() local
91 while (lower < upper) { in IsLanguageKeyword()
92 int mid = (lower + upper + 1) / 2; in IsLanguageKeyword()
98 upper = mid - 1; in IsLanguageKeyword()
/haiku/src/add-ons/kernel/drivers/network/ether/ipro1000/dev/e1000/
H A Dem_txrx.c112 status = txr->tx_base[cur].upper.fields.status; in em_dump_rs()
123 if (txr->tx_base[i].upper.fields.status & E1000_TXD_STAT_DD) in em_dump_rs()
412 ctxd->upper.data = htole32(txd_upper); in em_isc_txd_encap()
421 ctxd->upper.data = htole32(txd_upper); in em_isc_txd_encap()
431 ctxd->upper.data = htole32(txd_upper); in em_isc_txd_encap()
490 status = txr->tx_base[cur].upper.fields.status; in em_isc_txd_credits_update()
520 status = txr->tx_base[cur].upper.fields.status; in em_isc_txd_credits_update()
578 rxd->wb.upper.status_error = 0; in em_isc_rxd_refill()
634 staterr = le32toh(rxd->wb.upper.status_error); in em_isc_rxd_available()
727 staterr = le32toh(rxd->wb.upper.status_error); in em_isc_rxd_pkt_get()
[all …]
/haiku/src/system/libroot/posix/crypt/
H A Dcrypt.cpp55 const uint8 upper = n >> 4; in toHex() local
58 assert(lower < 16 && upper < 16); in toHex()
59 outBuffer[outIndex++] = kHexAlphabet[upper]; in toHex()
/haiku/src/add-ons/kernel/debugger/qrencode/
H A Dmodule.cpp63 bool upper = qrcode_bit(qrCode, x, y); in print_qrcode() local
65 if (upper == lower) in print_qrcode()
66 kputs(upper ? "\x11" : " "); in print_qrcode()
68 kputs(upper ? "\x12" : "\x13"); in print_qrcode()
/haiku/headers/private/kernel/util/
H A DVectorSet.h437 int32 upper = Count(); in _FindInsertionIndex() local
438 while (lower < upper) { in _FindInsertionIndex()
439 int32 mid = (lower + upper) / 2; in _FindInsertionIndex()
444 upper = mid; in _FindInsertionIndex()

12345