Searched refs:MOJO_ALIGNOF (Results 1 – 9 of 9) sorted by relevance
/external/libchrome/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/libchrome/libchrome_tools/patch/ |
D | alignof_int64.patch | 12 MOJO_ALIGNOF maps to) would return the *preferred alignment* of a type, not 42 -static_assert(MOJO_ALIGNOF(int64_t) == 8, "int64_t has weird alignment"); 43 +static_assert(MOJO_ALIGNOF(int64_t) <= 8, "int64_t has weird alignment"); 55 -MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) == 8, "int64_t has weird alignment"); 56 +MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) <= 8, "int64_t has weird alignment"); 68 -MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) == 8, "int64_t has weird alignment"); 69 +MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) <= 8, "int64_t has weird alignment"); 81 -MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) == 8, "int64_t has weird alignment"); 82 +MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) <= 8, "int64_t has weird alignment");
|
/external/libchrome/mojo/public/c/system/ |
D | macros.h | 31 #define MOJO_ALIGNOF(type) alignof(type) macro 33 #define MOJO_ALIGNOF(type) __alignof__(type) macro 37 #define MOJO_ALIGNOF(type) (sizeof(type) - sizeof(type) + __alignof(type)) macro
|
D | buffer.h | 33 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) <= 8, "int64_t has weird alignment");
|
D | types.h | 214 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int32_t) == 4, "int32_t has weird alignment");
|
D | data_pipe.h | 43 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) <= 8, "int64_t has weird alignment");
|
D | message_pipe.h | 38 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) <= 8, "int64_t has weird alignment");
|
/external/libchrome/mojo/core/ |
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");
|