Home
last modified time | relevance | path

Searched refs:MOJO_ALIGNOF (Results 1 – 8 of 8) sorted by relevance

/external/libmojo/mojo/public/c/system/tests/
Dmacros_unittest.cc35 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/
Dmacros.h22 #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
Dbuffer.h43 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) == 8, "int64_t has weird alignment");
Ddata_pipe.h44 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) == 8, "int64_t has weird alignment");
Dtypes.h184 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int32_t) == 4, "int32_t has weird alignment");
Dmessage_pipe.h49 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) == 8, "int64_t has weird alignment");
/external/libmojo/mojo/edk/system/
Doptions_validation.h35 CHECK(options && IsAligned<MOJO_ALIGNOF(Options)>(options)); in UserOptionsReader()
Doptions_validation_unittest.cc21 static_assert(MOJO_ALIGNOF(int64_t) == 8, "int64_t has weird alignment");