Home
last modified time | relevance | path

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

/system/libfmq/include/fmq/
DMessageQueue.h459 size_t firstRegionLength = first.getLength(); in getSlot() local
462 if (idx > firstRegionLength + secondRegionLength) { in getSlot()
466 if (idx < firstRegionLength) { in getSlot()
470 return second.getAddress() + idx - firstRegionLength; in getSlot()
480 size_t firstRegionLength = first.getLength(); in getMemRegionInfo() local
483 if (startIdx + nMessages > firstRegionLength + secondRegionLength) { in getMemRegionInfo()
492 firstCount = startIdx < firstRegionLength ? in getMemRegionInfo()
493 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.cpp444 size_t firstRegionLength = first.getLength(); in TEST_F() local
447 if (i < firstRegionLength) { in TEST_F()
450 ASSERT_EQ(i, *(second.getAddress() + i - firstRegionLength)); in TEST_F()
491 size_t firstRegionLength = first.getLength(); in TEST_F() local
496 if (i < firstRegionLength) { in TEST_F()
499 *(secondBaseAddress + i - firstRegionLength) = i; in TEST_F()