Searched refs:MOJO_ALIGNOF (Results 1 – 8 of 8) sorted by relevance
/external/libmojo/mojo/public/c/system/tests/ |
D | macros_unittest.cc | 35 EXPECT_EQ(1u, MOJO_ALIGNOF(char)); in TEST() 36 EXPECT_EQ(4u, MOJO_ALIGNOF(int32_t)); in TEST() 37 EXPECT_EQ(8u, MOJO_ALIGNOF(int64_t)); in TEST() 38 EXPECT_EQ(8u, MOJO_ALIGNOF(double)); in TEST() 62 EXPECT_EQ(1u, MOJO_ALIGNOF(StructAlignas1)); in TEST() 63 EXPECT_EQ(4u, MOJO_ALIGNOF(StructAlignas4)); in TEST() 64 EXPECT_EQ(8u, MOJO_ALIGNOF(StructAlignas8)); in TEST()
|
/external/libmojo/mojo/public/c/system/ |
D | macros.h | 22 #define MOJO_ALIGNOF(type) alignof(type) macro 24 #define MOJO_ALIGNOF(type) __alignof__(type) macro 28 #define MOJO_ALIGNOF(type) (sizeof(type) - sizeof(type) + __alignof(type)) macro
|
D | buffer.h | 43 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) == 8, "int64_t has weird alignment");
|
D | data_pipe.h | 44 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) == 8, "int64_t has weird alignment");
|
D | types.h | 184 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int32_t) == 4, "int32_t has weird alignment");
|
D | message_pipe.h | 49 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) == 8, "int64_t has weird alignment");
|
/external/libmojo/mojo/edk/system/ |
D | options_validation.h | 35 CHECK(options && IsAligned<MOJO_ALIGNOF(Options)>(options)); in UserOptionsReader()
|
D | options_validation_unittest.cc | 21 static_assert(MOJO_ALIGNOF(int64_t) == 8, "int64_t has weird alignment");
|