Home
last modified time | relevance | path

Searched refs:firstRegionLength (Results 1 – 2 of 2) sorted by relevance

/system/libfmq/include/fmq/
DMessageQueueBase.h462 size_t firstRegionLength = first.getLength(); in getSlot() local
465 if (idx > firstRegionLength + secondRegionLength) { in getSlot()
469 if (idx < firstRegionLength) { in getSlot()
473 return second.getAddress() + idx - firstRegionLength; in getSlot()
480 size_t firstRegionLength = first.getLength(); in getMemRegionInfo() local
483 if (startIdx + nMessages > firstRegionLength + secondRegionLength) { in getMemRegionInfo()
493 startIdx < firstRegionLength ? std::min(nMessages, firstRegionLength - startIdx) : 0; in getMemRegionInfo()
503 size_t secondStartIdx = startIdx > firstRegionLength ? startIdx - firstRegionLength : 0; in getMemRegionInfo()
/system/libfmq/tests/
Dmsgq_test_client.cpp702 size_t firstRegionLength = first.getLength(); in TYPED_TEST() local
705 if (i < firstRegionLength) { in TYPED_TEST()
708 ASSERT_EQ(i, *(second.getAddress() + i - firstRegionLength)); in TYPED_TEST()
749 size_t firstRegionLength = first.getLength(); in TYPED_TEST() local
754 if (i < firstRegionLength) { in TYPED_TEST()
757 *(secondBaseAddress + i - firstRegionLength) = i; in TYPED_TEST()