Home
last modified time | relevance | path

Searched refs:RAPIDJSON_ALIGN (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dallocatorstest.cpp67 EXPECT_EQ(RAPIDJSON_UINT64_C2(0x00000000, 0x00000000), RAPIDJSON_ALIGN(0)); in TEST()
69 EXPECT_EQ(RAPIDJSON_UINT64_C2(0x00000000, 0x00000008), RAPIDJSON_ALIGN(i)); in TEST()
70 …EXPECT_EQ(RAPIDJSON_UINT64_C2(0x00000000, 0x00000010), RAPIDJSON_ALIGN(RAPIDJSON_UINT64_C2(0x00000… in TEST()
71 …EXPECT_EQ(RAPIDJSON_UINT64_C2(0x00000001, 0x00000000), RAPIDJSON_ALIGN(RAPIDJSON_UINT64_C2(0x00000… in TEST()
72 …EXPECT_EQ(RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0xFFFFFFF8), RAPIDJSON_ALIGN(RAPIDJSON_UINT64_C2(0xFFFFF… in TEST()
75 EXPECT_EQ(0u, RAPIDJSON_ALIGN(0u)); in TEST()
77 EXPECT_EQ(4u, RAPIDJSON_ALIGN(i)); in TEST()
78 EXPECT_EQ(8u, RAPIDJSON_ALIGN(4u + i)); in TEST()
79 EXPECT_EQ(0xFFFFFFF8u, RAPIDJSON_ALIGN(0xFFFFFFF4u + i)); in TEST()
80 EXPECT_EQ(0xFFFFFFFCu, RAPIDJSON_ALIGN(0xFFFFFFF8u + i)); in TEST()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dallocators.h180 size = RAPIDJSON_ALIGN(size); in Malloc()
184 …void *buffer = reinterpret_cast<char *>(chunkHead_) + RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + chunk… in Malloc()
202 …if (originalPtr == (char *)(chunkHead_) + RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + chunkHead_->size … in Realloc()
204 increment = RAPIDJSON_ALIGN(increment); in Realloc()
234 …ChunkHeader* chunk = reinterpret_cast<ChunkHeader*>(baseAllocator_->Malloc(RAPIDJSON_ALIGN(sizeof(… in AddChunk()
Drapidjson.h243 #ifndef RAPIDJSON_ALIGN
245 #define RAPIDJSON_ALIGN(x) (((x) + static_cast<uint64_t>(7u)) & ~static_cast<uint64_t>(7u)) macro
247 #define RAPIDJSON_ALIGN(x) (((x) + 3u) & ~3u) macro