• Home
  • Raw
  • Download

Lines Matching refs:kCapacity

345     constexpr size_t kCapacity = 1024u * 1024u;  in TEST_F()  local
347 allocateLinear(kCapacity); in TEST_F()
350 mapLinear(0u, kCapacity, &addr); in TEST_F()
353 for (size_t i = 0; i < kCapacity; ++i) { in TEST_F()
360 mapLinear(kCapacity / 3, kCapacity / 3, &addr); in TEST_F()
362 for (size_t i = 0; i < kCapacity / 3; ++i) { in TEST_F()
363 ASSERT_EQ((i + kCapacity / 3) % 100, addr[i]) << " at i = " << i; in TEST_F()
368 constexpr size_t kCapacity = 1024u * 1024u; in TEST_F() local
374 kCapacity, in TEST_F()
382 ASSERT_EQ(kCapacity, writeView.capacity()); in TEST_F()
384 ASSERT_EQ(kCapacity, writeView.size()); in TEST_F()
392 writeView.setOffset(kCapacity / 3); in TEST_F()
396 ASSERT_EQ((i + kCapacity / 3) % 100u, data[i]) << " at i = " << i in TEST_F()
402 kCapacity / 3, kCapacity / 3, fence); in TEST_F()
407 ASSERT_EQ(kCapacity / 3, readView.capacity()); in TEST_F()
413 ASSERT_EQ((i + kCapacity / 3) % 100u, constData[i]) << " at i = " << i in TEST_F()
425 ASSERT_EQ((i + 333u + kCapacity / 3) % 100u, constData[i]) << " at i = " << i; in TEST_F()
674 constexpr size_t kCapacity = 1024u; in TEST_F() local
678 kCapacity, in TEST_F()
685 std::shared_ptr<C2Buffer> buffer(new Buffer( { block->share(0, kCapacity, C2Fence()) })); in TEST_F()
692 buffer.reset(new Buffer( { block->share(0, kCapacity, C2Fence()) })); in TEST_F()
705 buffer.reset(new Buffer( { block->share(0, kCapacity, C2Fence()) })); in TEST_F()
751 constexpr size_t kCapacity = 524288u; in TEST_F() local
758 kCapacity, in TEST_F()
762 C2ConstLinearBlock cBlock = block->share(0, kCapacity / 2, C2Fence()); in TEST_F()