HomeSort by relevance Sort by last modified time
    Searched refs:RAPIDJSON_ALIGN (Results 1 - 3 of 3) sorted by null

  /packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
allocatorstest.cpp 67 EXPECT_EQ(RAPIDJSON_UINT64_C2(0x00000000, 0x00000000), RAPIDJSON_ALIGN(0));
69 EXPECT_EQ(RAPIDJSON_UINT64_C2(0x00000000, 0x00000008), RAPIDJSON_ALIGN(i));
70 EXPECT_EQ(RAPIDJSON_UINT64_C2(0x00000000, 0x00000010), RAPIDJSON_ALIGN(RAPIDJSON_UINT64_C2(0x00000000, 0x00000008) + i));
71 EXPECT_EQ(RAPIDJSON_UINT64_C2(0x00000001, 0x00000000), RAPIDJSON_ALIGN(RAPIDJSON_UINT64_C2(0x00000000, 0xFFFFFFF8) + i));
72 EXPECT_EQ(RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0xFFFFFFF8), RAPIDJSON_ALIGN(RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0xFFFFFFF0) + i));
75 EXPECT_EQ(0u, RAPIDJSON_ALIGN(0u));
77 EXPECT_EQ(4u, RAPIDJSON_ALIGN(i));
78 EXPECT_EQ(8u, RAPIDJSON_ALIGN(4u + i));
79 EXPECT_EQ(0xFFFFFFF8u, RAPIDJSON_ALIGN(0xFFFFFFF4u + i));
80 EXPECT_EQ(0xFFFFFFFCu, RAPIDJSON_ALIGN(0xFFFFFFF8u + i))
    [all...]
  /packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
allocators.h 180 size = RAPIDJSON_ALIGN(size);
184 void *buffer = reinterpret_cast<char *>(chunkHead_) + RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + chunkHead_->size;
202 if (originalPtr == (char *)(chunkHead_) + RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + chunkHead_->size - originalSize) {
204 increment = RAPIDJSON_ALIGN(increment);
234 ChunkHeader* chunk = reinterpret_cast<ChunkHeader*>(baseAllocator_->Malloc(RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + capacity));
rapidjson.h 234 // RAPIDJSON_ALIGN
241 alignment. User can customize by defining the RAPIDJSON_ALIGN function macro.
243 #ifndef RAPIDJSON_ALIGN
245 #define RAPIDJSON_ALIGN(x) (((x) + static_cast<uint64_t>(7u)) & ~static_cast<uint64_t>(7u))
247 #define RAPIDJSON_ALIGN(x) (((x) + 3u) & ~3u)

Completed in 6109 milliseconds