HomeSort by relevance Sort by last modified time
    Searched full:alignof (Results 1 - 25 of 399) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /toolchain/binutils/binutils-2.25/ld/testsuite/ld-scripts/
alignof.t 4 tmpdir/alignof.o (.text)
8 tmpdir/alignof.o (.data)
9 LONG (ALIGNOF(.text))
10 LONG (ALIGNOF(.data))
14 alignof_text = ALIGNOF(.text);
15 alignof_data = ALIGNOF(.data);
alignof.exp 1 # Test ALIGNOF in a linker script.
28 set testname "ALIGNOF"
30 if ![ld_assemble $as $srcdir/$subdir/alignof.s tmpdir/alignof.o] {
35 if ![ld_simple_link $ld tmpdir/alignof "-T $srcdir/$subdir/alignof.t tmpdir/alignof.o"] {
40 if ![ld_nm $nm "" tmpdir/alignof] {
  /external/clang/test/Frontend/
x86_64-nacl-types.cpp 7 static_assert(alignof(char) == 1, "alignof char is wrong");
10 static_assert(alignof(short) == 2, "alignof short is wrong");
13 static_assert(alignof(int) == 4, "alignof int is wrong");
16 static_assert(alignof(long) == 4, "alignof long is wrong");
19 static_assert(alignof(long long) == 8, "alignof long long is wrong wrong")
    [all...]
mips-long-double.c 10 _Static_assert(_Alignof(long double) == 8, "alignof long double is wrong");
13 _Static_assert(_Alignof(long double) == 16, "alignof long double is wrong");
17 _Static_assert(_Alignof(long double) == 8, "alignof long double is wrong");
  /external/llvm/unittests/Support/
AlignOfTest.cpp 16 #include "llvm/Support/AlignOf.h"
94 [AlignOf<char>::Alignment > 0]
95 [AlignOf<short>::Alignment > 0]
96 [AlignOf<int>::Alignment > 0]
97 [AlignOf<long>::Alignment > 0]
98 [AlignOf<long long>::Alignment > 0]
99 [AlignOf<float>::Alignment > 0]
100 [AlignOf<double>::Alignment > 0]
101 [AlignOf<long double>::Alignment > 0]
102 [AlignOf<void *>::Alignment > 0
    [all...]
  /external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/
p7.cpp 7 static_assert(alignof(X<char, int, sizeof(int)>) == alignof(int), ""); variable
8 static_assert(alignof(X<int, char, 1>) == alignof(int), ""); variable
15 static_assert(alignof(Y<char, int, sizeof(int)>) == alignof(int), ""); variable
16 static_assert(alignof(Y<int, char, 1>) == alignof(int), ""); // expected-note {{in instantiation of}} variable
19 int x = alignof int; // expected-error {{expected parentheses around type name in alignof expression}
    [all...]
  /external/clang/test/SemaCXX/
attr-aligned.cpp 5 static_assert(alignof(S1) == 8, "attribute ignored");
6 static_assert(alignof(struct S1) == 1, "attribute applied to original type");
9 static_assert(alignof(S2) == 8, "attribute not propagated");
10 static_assert(alignof(struct S2) == 8, "attribute ignored");
15 static_assert(alignof(S3) == 8, "attribute ignored");
16 static_assert(alignof(struct S3) == 4, "attribute clobbered");
attr-cxx0x.cpp 28 template <typename... B> struct alignas(alignof(A) * alignof(B)...) inner {};
36 static_assert(alignof(align_big) == alignof(int), "k's alignment is wrong"); // expected-warning{{'alignof' applied to an expression is a GNU extension}}
37 static_assert(alignof(align_small) == 1, "j's alignment is wrong"); // expected-warning{{'alignof' applied to an expression is a GNU extension}}
38 static_assert(alignof(align_multiple) == 8, "l's alignment is wrong"); // expected-warning{{'alignof' applied to an expression is a GNU extension}}
39 static_assert(alignof(align_member) == 8, "quuux's alignment is wrong")
43 static_assert(alignof(align_class_temp_pack_type<short, int, long>) == alignof(long), "template's alignment is wrong"); variable
45 static_assert(alignof(outer<int,char>::inner<double,short>) == alignof(int) * alignof(double), "template's alignment is wrong"); variable
    [all...]
alignof.cpp 7 static const int test0 = __alignof__(x); // expected-error {{invalid application of 'alignof' to a field of a class still being defined}}
8 static const int test1 = __alignof__(S0::x); // expected-error {{invalid application of 'alignof' to a field of a class still being defined}}
9 auto test2() -> char(&)[__alignof__(x)]; // expected-error {{invalid application of 'alignof' to a field of a class still being defined}}
14 const int test3 = __alignof__(s1); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}}
22 int test5 = __alignof__(s); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}}
26 const int test7 = __alignof__(S2::s); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}}
37 static const int test9 = __alignof__(s2.s); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}}
40 static const int test12 = __alignof__(S3::s2.s); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}}
64 static_assert(alignof(test14) == 8, "foo"); // expected-warning {{'alignof' applied to an expression is a GNU extension}
67 static_assert(alignof(int[]) == alignof(int), ""); \/\/ ok variable
78 static_assert(alignof(S<-1>::a) == alignof(int), ""); \/\/ expected-warning {{GNU extension}} member in namespace:alignof_array_expr
    [all...]
alignof-sizeof-reference.cpp 7 static_assert(alignof(r) == 1, "bad alignment"); // expected-warning {{GNU extension}}
8 static_assert(alignof(char&) == 1, "bad alignment");
23 (void)alignof(f_template<int>); // expected-error{{reference to overloaded function could not be resolved; did you mean to call it?}} expected-warning {{GNU extension}}
  /prebuilts/go/darwin-x86/test/fixedbugs/
bug279.go 19 n = unsafe.Alignof(0)
21 println("BUG alignof 0", n)
30 n = unsafe.Alignof("")
32 println("BUG alignof \"\"", n)
bug381.go 10 // bug381.go:29: unsafe.Alignof(0) not used
29 unsafe.Alignof(0) // ERROR "unsafe\.Alignof|value computed is not used"
  /prebuilts/go/linux-x86/test/fixedbugs/
bug279.go 19 n = unsafe.Alignof(0)
21 println("BUG alignof 0", n)
30 n = unsafe.Alignof("")
32 println("BUG alignof \"\"", n)
bug381.go 10 // bug381.go:29: unsafe.Alignof(0) not used
29 unsafe.Alignof(0) // ERROR "unsafe\.Alignof|value computed is not used"
  /external/clang/test/Index/
print-type-size.cpp 11 // CHECK64: VarDecl=v1:[[@LINE+2]]:7 (Definition) [type=void *] [typekind=Pointer] [sizeof=8] [alignof=8]
12 // CHECK32: VarDecl=v1:[[@LINE+1]]:7 (Definition) [type=void *] [typekind=Pointer] [sizeof=4] [alignof=4]
16 // CHECK64: StructDecl=simple:[[@LINE+2]]:8 (Definition) [type=basic::simple] [typekind=Record] [sizeof=48] [alignof=8]
17 // CHECK32: StructDecl=simple:[[@LINE+1]]:8 (Definition) [type=basic::simple] [typekind=Record] [sizeof=36] [alignof=4]
21 // CHECK64: FieldDecl=c:[[@LINE+1]]:7 (Definition) [type=int] [typekind=Int] [sizeof=4] [alignof=4] [offsetof=40] [BitFieldSize=3]
25 // CHECK64: FieldDecl=f:[[@LINE+1]]:7 (Definition) [type=int] [typekind=Int] [sizeof=4] [alignof=4] [offsetof=133] [BitFieldSize=4]
27 // CHECK64: FieldDecl=g:[[@LINE+2]]:13 (Definition) [type=long long] [typekind=LongLong] [sizeof=8] [alignof=8] [offsetof=192]
28 // CHECK32: FieldDecl=g:[[@LINE+1]]:13 (Definition) [type=long long] [typekind=LongLong] [sizeof=8] [alignof=4] [offsetof=128]
30 // CHECK64: FieldDecl=h:[[@LINE+1]]:8 (Definition) [type=char] [typekind=Char_S] [sizeof=1] [alignof=1] [offsetof=256] [BitFieldSize=3]
34 // CHECK64: FieldDecl=k:[[@LINE+2]]:10 (Definition) [type=char *] [typekind=Pointer] [sizeof=8] [alignof=8] [offsetof=320
    [all...]
  /external/clang/test/Headers/
c11.c 21 alignas(alignof(int)) char c[4];
28 _Static_assert(alignof(max_align_t) >= alignof(long long), "");
30 _Static_assert(alignof(max_align_t) >= alignof(long double), "");
cxx11.cpp 13 #if defined alignof
14 #error alignof should not be defined in C++
  /external/clang/test/SemaTemplate/
attributes.cpp 33 static_assert(alignof(t) == alignof(T), "my_aligned_storage align wrong"); // expected-warning{{'alignof' applied to an expression is a GNU extension}}
37 my_aligned_storage<sizeof(T), alignof(T)> t;
  /art/runtime/base/
length_prefixed_array.h 36 T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
41 const T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) const {
46 StrideIterator<T> begin(size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
51 size_t alignment = alignof(T)) const {
55 StrideIterator<T> end(size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
60 size_t alignment = alignof(T)) const {
66 size_t alignment = alignof(T)) {
73 size_t alignment = alignof(T)) {
89 void ClearPadding(size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
113 LengthPrefixedArray<T>* arr, size_t element_size = sizeof(T), size_t alignment = alignof(T))
    [all...]
  /external/clang/test/Sema/
alignas.c 25 _Static_assert(alignof(align_big) == alignof(int), "k's alignment is wrong"); variable
26 _Static_assert(alignof(align_small) == 1, "j's alignment is wrong");
27 _Static_assert(alignof(align_multiple) == 8, "l's alignment is wrong");
28 _Static_assert(alignof(struct align_member) == 8, "quuux's alignment is wrong");
  /external/libchrome/base/memory/
aligned_memory_unittest.cc 23 EXPECT_EQ(8u, ALIGNOF(raw8));
24 EXPECT_EQ(16u, ALIGNOF(raw16));
25 EXPECT_EQ(256u, ALIGNOF(raw256));
26 EXPECT_EQ(4096u, ALIGNOF(raw4096));
39 EXPECT_EQ(8u, ALIGNOF(raw8));
40 EXPECT_EQ(16u, ALIGNOF(raw16));
41 EXPECT_EQ(128u, ALIGNOF(raw128));
59 EXPECT_EQ(256u, ALIGNOF(raw256));
65 EXPECT_EQ(4096u, ALIGNOF(raw4096));
  /prebuilts/go/darwin-x86/src/go/types/
sizes.go 11 // Alignof returns the alignment of a variable of type T.
12 // Alignof must implement the alignment guarantees required by the spec.
13 Alignof(T Type) int64
48 func (s *StdSizes) Alignof(T Type) int64 {
53 // spec: "For a variable x of array type: unsafe.Alignof(x)
54 // is the same as unsafe.Alignof(x[0]), but at least 1."
55 return s.Alignof(t.elem)
57 // spec: "For a variable x of struct type: unsafe.Alignof(x)
58 // is the largest of the values unsafe.Alignof(x.f) for each
62 if a := s.Alignof(f.typ); a > max
151 func (conf *Config) alignof(T Type) int64 { func
    [all...]
  /prebuilts/go/linux-x86/src/go/types/
sizes.go 11 // Alignof returns the alignment of a variable of type T.
12 // Alignof must implement the alignment guarantees required by the spec.
13 Alignof(T Type) int64
48 func (s *StdSizes) Alignof(T Type) int64 {
53 // spec: "For a variable x of array type: unsafe.Alignof(x)
54 // is the same as unsafe.Alignof(x[0]), but at least 1."
55 return s.Alignof(t.elem)
57 // spec: "For a variable x of struct type: unsafe.Alignof(x)
58 // is the largest of the values unsafe.Alignof(x.f) for each
62 if a := s.Alignof(f.typ); a > max
151 func (conf *Config) alignof(T Type) int64 { func
    [all...]
  /external/clang/lib/AST/
StmtOpenMP.cpp 61 llvm::alignOf<OMPClause *>());
76 llvm::alignOf<OMPClause *>());
88 llvm::alignOf<OMPClause *>());
116 llvm::alignOf<OMPClause *>());
129 llvm::alignOf<OMPClause *>());
165 llvm::alignOf<OMPClause *>());
178 llvm::alignOf<OMPClause *>());
213 llvm::alignOf<OMPClause *>());
224 llvm::alignOf<OMPClause *>());
239 llvm::alignOf<OMPClause *>())
    [all...]
  /art/runtime/utils/
dex_cache_arrays_layout-inl.h 51 static_assert(alignof(GcRoot<mirror::Class>) == 4, "Expecting alignof(GcRoot<>) == 4");
52 static_assert(alignof(GcRoot<mirror::String>) == 4, "Expecting alignof(GcRoot<>) == 4");
69 return alignof(GcRoot<mirror::Class>);
94 return alignof(GcRoot<mirror::String>);

Completed in 1585 milliseconds

1 2 3 4 5 6 7 8 91011>>