Home
last modified time | relevance | path

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

/external/libchrome/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/libchrome/libchrome_tools/patch/
Dalignof_int64.patch12 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/
Dmacros.h31 #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
Dbuffer.h33 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) <= 8, "int64_t has weird alignment");
Dtypes.h214 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int32_t) == 4, "int32_t has weird alignment");
Ddata_pipe.h43 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) <= 8, "int64_t has weird alignment");
Dmessage_pipe.h38 MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) <= 8, "int64_t has weird alignment");
/external/libchrome/mojo/core/
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");