/external/llvm-project/llvm/test/tools/llvm-pdbutil/ |
D | simple-padding-graphical.test | 20 ; NO_PADDING: struct SimplePadNoPadding [sizeof = 8] { 21 ; NO_PADDING-NEXT: data +0x00 [sizeof=4] int X 22 ; NO_PADDING-NEXT: data +0x04 [sizeof=4] int Y 25 ; UNION: struct SimplePadUnion [sizeof = 16] { 26 ; UNION-NEXT: data +0x00 [sizeof=4] int X 27 ; UNION-NEXT: data +0x00 [sizeof=8] __int64 Y 28 ; UNION-NEXT: data +0x00 [sizeof=16] SimplePadUnion:: 29 ; UNION-NEXT: data +0x00 [sizeof=4] int X 31 ; UNION-NEXT: data +0x08 [sizeof=8] __int64 Y 34 ; NESTED_UNION: struct {{SimplePadUnion::.*}} [sizeof = 16] { [all …]
|
D | complex-padding-graphical.test | 12 ; DIRECT_VB_ONLY: struct TestIVBBase [sizeof = 16] 14 ; DIRECT_VB_ONLY-NEXT: vbptr +0x00 [sizeof=4] 15 ; DIRECT_VB_ONLY-NEXT: data +0x04 [sizeof=4] int A 16 ; DIRECT_VB_ONLY-NEXT: vbase +0x08 [sizeof=8] TestVB 17 ; DIRECT_VB_ONLY-NEXT: vfptr +0x08 [sizeof=4] 18 ; DIRECT_VB_ONLY-NEXT: data +0x0c [sizeof=4] int X 21 DIRECT_VB_AND_NON_VB: struct TestVBLayout [sizeof = 24] 24 DIRECT_VB_AND_NON_VB-NEXT: base +0x00 [sizeof=8] TestNVB 25 DIRECT_VB_AND_NON_VB-NEXT: vfptr +0x00 [sizeof=4] 26 DIRECT_VB_AND_NON_VB-NEXT: data +0x04 [sizeof=4] int Y [all …]
|
D | class-layout.test | 20 ; MEMBERS_TEST: class MembersTest::A [sizeof = 16] { 24 ; MEMBERS_TEST-DAG: data +0x00 [sizeof=4] int IntMemberVar 26 ; MEMBERS_TEST-NEXT: data +0x08 [sizeof=8] double DoubleMemberVar 30 ; BASE_CLASS_A: class BaseClassTest::A [sizeof = 1] {} 33 ; BASE_CLASS_B: class BaseClassTest::B [sizeof = 4] 37 ; BASE_CLASS_C: class BaseClassTest::C [sizeof = 4] 41 ; BASE_CLASS_D: class BaseClassTest::D [sizeof = 8] 46 ; UDT_KIND_TEST-DAG: union UdtKindTest::C [sizeof = 1] {} 47 ; UDT_KIND_TEST-DAG: class UdtKindTest::B [sizeof = 1] {} 48 ; UDT_KIND_TEST-DAG: struct UdtKindTest::A [sizeof = 1] {} [all …]
|
D | symbol-filters.test | 59 ; SIZE_SORT_DATA: data {{.*}}sizeof=8{{.*}}double DoubleGlobalVar 60 ; SIZE_SORT_DATA-DAG: data {{.*}}sizeof=4{{.*}}GlobalEnum GlobalEnumVar 61 ; SIZE_SORT_DATA-DAG: data {{.*}}sizeof=4{{.*}}int IntGlobalVar 62 ; SIZE_SORT_DATA: data {{.*}}sizeof=3{{.*}}char ThreeBytes[3] 63 ; SIZE_SORT_DATA: data {{.*}}sizeof=2{{.*}}char TwoBytes[2] 64 ; SIZE_SORT_DATA: data {{.*}}sizeof=1{{.*}}char OneByte 66 ; NAME_SORT_FUNCS: func {{.*}}sizeof= 40{{.*}}AFunc 67 ; NAME_SORT_FUNCS: func {{.*}}sizeof= 10{{.*}}BFunc 68 ; NAME_SORT_FUNCS: func {{.*}}sizeof= 14{{.*}}CFunc 69 ; NAME_SORT_FUNCS: func {{.*}}sizeof= 16{{.*}}FilterTestClass::foo [all …]
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_interceptors_ioctl.inc | 50 _(FIOASYNC, READ, sizeof(int)); 52 _(FIOGETOWN, WRITE, sizeof(int)); 53 _(FIONBIO, READ, sizeof(int)); 55 _(FIOSETOWN, READ, sizeof(int)); 56 _(SIOCATMARK, WRITE, sizeof(int)); 58 _(SIOCGPGRP, WRITE, sizeof(int)); 59 _(SIOCSPGRP, READ, sizeof(int)); 62 _(TIOCGETD, WRITE, sizeof(int)); 65 _(TIOCMBIC, READ, sizeof(int)); 66 _(TIOCMBIS, READ, sizeof(int)); [all …]
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_interceptors_ioctl.inc | 51 _(FIOASYNC, READ, sizeof(int)); 53 _(FIOGETOWN, WRITE, sizeof(int)); 54 _(FIONBIO, READ, sizeof(int)); 56 _(FIOSETOWN, READ, sizeof(int)); 57 _(SIOCATMARK, WRITE, sizeof(int)); 59 _(SIOCGPGRP, WRITE, sizeof(int)); 60 _(SIOCSPGRP, READ, sizeof(int)); 65 _(TIOCGETD, WRITE, sizeof(int)); 68 _(TIOCMBIC, READ, sizeof(int)); 69 _(TIOCMBIS, READ, sizeof(int)); [all …]
|
D | sanitizer_interceptors_ioctl_netbsd.inc | 117 _(CRIOGET, READWRITE, sizeof(u32)); 118 _(CIOCFSESSION, READ, sizeof(u32)); 128 _(CIOCASYMFEAT, WRITE, sizeof(u32)); 146 _(DMX_ADD_PID, READ, sizeof(u16)); 147 _(DMX_REMOVE_PID, READ, sizeof(u16)); 152 _(FE_READ_BER, WRITE, sizeof(u32)); 153 _(FE_READ_SNR, WRITE, sizeof(u16)); 154 _(FE_READ_SIGNAL_STRENGTH, WRITE, sizeof(u16)); 155 _(FE_READ_UNCORRECTED_BLOCKS, WRITE, sizeof(u32)); 166 _(FE_ENABLE_HIGH_LNB_VOLTAGE, READ, sizeof(int)); [all …]
|
/external/python/cpython3/Lib/lib2to3/tests/data/ |
D | infinite_recursion.py | 40 assert sizeof(__mbstate_t) == 128, sizeof(__mbstate_t) 76 assert sizeof(sigcontext) == 72, sizeof(sigcontext) 100 assert sizeof(aes_key_st) == 244, sizeof(aes_key_st) 118 assert sizeof(asn1_ctx_st) == 44, sizeof(asn1_ctx_st) 131 assert sizeof(asn1_object_st) == 24, sizeof(asn1_object_st) 142 assert sizeof(asn1_string_st) == 16, sizeof(asn1_string_st) 152 assert sizeof(ASN1_ENCODING_st) == 12, sizeof(ASN1_ENCODING_st) 164 assert sizeof(asn1_string_table_st) == 20, sizeof(asn1_string_table_st) 229 assert sizeof(N12asn1_type_st4DOLLAR_11E) == 4, sizeof(N12asn1_type_st4DOLLAR_11E) 235 assert sizeof(asn1_type_st) == 8, sizeof(asn1_type_st) [all …]
|
/external/python/cpython2/Lib/lib2to3/tests/data/ |
D | infinite_recursion.py | 40 assert sizeof(__mbstate_t) == 128, sizeof(__mbstate_t) 76 assert sizeof(sigcontext) == 72, sizeof(sigcontext) 100 assert sizeof(aes_key_st) == 244, sizeof(aes_key_st) 118 assert sizeof(asn1_ctx_st) == 44, sizeof(asn1_ctx_st) 131 assert sizeof(asn1_object_st) == 24, sizeof(asn1_object_st) 142 assert sizeof(asn1_string_st) == 16, sizeof(asn1_string_st) 152 assert sizeof(ASN1_ENCODING_st) == 12, sizeof(ASN1_ENCODING_st) 164 assert sizeof(asn1_string_table_st) == 20, sizeof(asn1_string_table_st) 229 assert sizeof(N12asn1_type_st4DOLLAR_11E) == 4, sizeof(N12asn1_type_st4DOLLAR_11E) 235 assert sizeof(asn1_type_st) == 8, sizeof(asn1_type_st) [all …]
|
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/ |
D | bugprone-sizeof-expression.rst | 1 .. title:: clang-tidy - bugprone-sizeof-expression 3 bugprone-sizeof-expression 6 The check finds usages of ``sizeof`` expressions which are most likely errors. 8 The ``sizeof`` operator yields the size (in bytes) of its operand, which may be 12 Suspicious usage of 'sizeof(K)' 15 A common mistake is to query the ``sizeof`` of an integer literal. This is 23 memset(buf, 0, sizeof(BUFLEN)); // sizeof(42) ==> sizeof(int) 25 Suspicious usage of 'sizeof(expr)' 29 mistake is to query the ``sizeof`` on the integer or enum that represents the 30 type that should be used by ``sizeof``. This results in the size of the integer [all …]
|
D | bugprone-sizeof-container.rst | 1 .. title:: clang-tidy - bugprone-sizeof-container 3 bugprone-sizeof-container 6 The check finds usages of ``sizeof`` on expressions of STL container types. Most 18 …int a = 47 + sizeof(s); // warning: sizeof() doesn't return the size of the container. Did you mea… 20 int b = sizeof(std::string); // no warning, probably intended. 23 …int c = sizeof(array_of_strings) / sizeof(array_of_strings[0]); // no warning, definitely intended. 26 int d = sizeof(std_array); // no warning, probably intended.
|
/external/e2fsprogs/config/ |
D | parse-types.sh | 39 if (sizeof(__U8_TYPEDEF) != 1) { 41 (int) sizeof(__U8_TYPEDEF)); 48 if (sizeof(__S8_TYPEDEF) != 1) { 50 (int) sizeof(__S8_TYPEDEF)); 57 if (sizeof(__U16_TYPEDEF) != 2) { 59 (int) sizeof(__U16_TYPEDEF)); 66 if (sizeof(__S16_TYPEDEF) != 2) { 68 (int) sizeof(__S16_TYPEDEF)); 76 if (sizeof(__U32_TYPEDEF) != 4) { 78 (int) sizeof(__U32_TYPEDEF)); [all …]
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_bitfields.py | 65 self.assertEqual(sizeof(X), sizeof(c_longlong)) 76 self.assertEqual(sizeof(X), sizeof(c_longlong)) 89 self.assertEqual(sizeof(X), sizeof(c_typ)*2) 105 self.assertEqual(sizeof(X), sizeof(c_typ)) 156 self.assertEqual(sizeof(X), sizeof(c_typ)) 159 _fields_ = [("a", c_typ, sizeof(c_typ)*8)] 160 self.assertEqual(sizeof(X), sizeof(c_typ)) 162 result = self.fail_fields(("a", c_typ, sizeof(c_typ)*8 + 1)) 170 self.assertEqual(sizeof(X), sizeof(c_short)) 177 self.assertEqual(sizeof(X), sizeof(c_short)*3) [all …]
|
D | test_sizes.py | 10 self.assertEqual(1, sizeof(c_int8)) 11 self.assertEqual(1, sizeof(c_uint8)) 14 self.assertEqual(2, sizeof(c_int16)) 15 self.assertEqual(2, sizeof(c_uint16)) 18 self.assertEqual(4, sizeof(c_int32)) 19 self.assertEqual(4, sizeof(c_uint32)) 22 self.assertEqual(8, sizeof(c_int64)) 23 self.assertEqual(8, sizeof(c_uint64)) 26 self.assertEqual(sizeof(c_void_p), sizeof(c_size_t)) 29 self.assertEqual(sizeof(c_void_p), sizeof(c_ssize_t))
|
D | test_varsize_struct.py | 10 self.assertEqual(sizeof(X), sizeof(c_int) * 2) 14 self.assertEqual(sizeof(x), sizeof(c_int) * 2) 17 new_size = sizeof(X) + sizeof(c_int) * 1 19 self.assertEqual(sizeof(x), new_size) 23 new_size = sizeof(X) + sizeof(c_int) * 9 25 self.assertEqual(sizeof(x), new_size) 29 new_size = sizeof(X) + sizeof(c_int) * 1 31 self.assertEqual(sizeof(x), new_size)
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_bitfields.py | 62 self.assertEqual(sizeof(X), sizeof(c_longlong)) 73 self.assertEqual(sizeof(X), sizeof(c_longlong)) 86 self.assertEqual(sizeof(X), sizeof(c_typ)*2) 102 self.assertEqual(sizeof(X), sizeof(c_typ)) 153 self.assertEqual(sizeof(X), sizeof(c_typ)) 156 _fields_ = [("a", c_typ, sizeof(c_typ)*8)] 157 self.assertEqual(sizeof(X), sizeof(c_typ)) 159 result = self.fail_fields(("a", c_typ, sizeof(c_typ)*8 + 1)) 167 self.assertEqual(sizeof(X), sizeof(c_short)) 174 self.assertEqual(sizeof(X), sizeof(c_short)*3) [all …]
|
D | test_sizes.py | 11 self.assertEqual(1, sizeof(c_int8)) 12 self.assertEqual(1, sizeof(c_uint8)) 15 self.assertEqual(2, sizeof(c_int16)) 16 self.assertEqual(2, sizeof(c_uint16)) 19 self.assertEqual(4, sizeof(c_int32)) 20 self.assertEqual(4, sizeof(c_uint32)) 23 self.assertEqual(8, sizeof(c_int64)) 24 self.assertEqual(8, sizeof(c_uint64)) 27 self.assertEqual(sizeof(c_void_p), sizeof(c_size_t)) 30 self.assertEqual(sizeof(c_void_p), sizeof(c_ssize_t))
|
D | test_varsize_struct.py | 10 self.assertEqual(sizeof(X), sizeof(c_int) * 2) 14 self.assertEqual(sizeof(x), sizeof(c_int) * 2) 17 new_size = sizeof(X) + sizeof(c_int) * 1 19 self.assertEqual(sizeof(x), new_size) 23 new_size = sizeof(X) + sizeof(c_int) * 9 25 self.assertEqual(sizeof(x), new_size) 29 new_size = sizeof(X) + sizeof(c_int) * 1 31 self.assertEqual(sizeof(x), new_size)
|
D | test_structures.py | 19 self.assertEqual(sizeof(X), sizeof(c_int)) 20 self.assertEqual(sizeof(Y), sizeof(c_int)*2) 21 self.assertEqual(sizeof(Z), sizeof(c_int)) 29 self.assertEqual(sizeof(X), 0) 34 self.assertEqual(sizeof(Y), sizeof(X)) 40 self.assertEqual(sizeof(X), sizeof(c_int)) 41 self.assertEqual(sizeof(Y), sizeof(c_int)*2) 42 self.assertEqual(sizeof(Z), sizeof(c_int)) 68 self.assertEqual((sizeof(X), code), 76 self.assertEqual((sizeof(X), code), [all …]
|
D | test_buffers.py | 10 self.assertEqual(sizeof(b), 32 * sizeof(c_char)) 15 self.assertEqual(sizeof(b), 4 * sizeof(c_char)) 31 self.assertEqual(sizeof(b), 4 * sizeof(c_char)) 44 self.assertEqual(sizeof(b), 32 * sizeof(c_wchar)) 49 self.assertEqual(sizeof(b), 4 * sizeof(c_wchar)) 62 self.assertEqual(sizeof(b), 4 * sizeof(c_wchar))
|
/external/toybox/kconfig/ |
D | zconf.hash.c_shipped | 91 char kconf_id_strings_str2[sizeof("on")]; 92 char kconf_id_strings_str6[sizeof("string")]; 93 char kconf_id_strings_str7[sizeof("default")]; 94 char kconf_id_strings_str8[sizeof("def_bool")]; 95 char kconf_id_strings_str10[sizeof("range")]; 96 char kconf_id_strings_str11[sizeof("def_boolean")]; 97 char kconf_id_strings_str12[sizeof("def_tristate")]; 98 char kconf_id_strings_str13[sizeof("hex")]; 99 char kconf_id_strings_str14[sizeof("defconfig_list")]; 100 char kconf_id_strings_str16[sizeof("option")]; [all …]
|
/external/llvm-project/llvm/test/DebugInfo/PDB/DIA/ |
D | pdbdump-symbol-format.test | 35 ; TYPES_1: struct A [sizeof = 4] { 42 ; TYPES_2: struct MemberTest [sizeof = 96] { 43 ; TYPES_2: data +0x00 [sizeof=4] MemberTest::NestedEnum m_nested_enum 44 ; TYPES_2: data +0x04 [sizeof=4] int m_typedef 45 ; TYPES_2: data +0x08 [sizeof=1] bool m_bool 46 ; TYPES_2: data +0x09 [sizeof=1] char m_char 47 ; TYPES_2: data +0x0a [sizeof=2] wchar_t m_wchar_t 48 ; TYPES_2: data +0x0c [sizeof=4] int m_int 49 ; TYPES_2: data +0x10 [sizeof=4] unsigned int m_unsigned 50 ; TYPES_2: data +0x14 [sizeof=4] long m_long [all …]
|
/external/llvm-project/clang/test/CodeGenOpenCL/ |
D | amdgpu-sizeof-alignof.cl | 34 check(sizeof(size_t) == PTSIZE); 36 check(sizeof(intptr_t) == PTSIZE); 38 check(sizeof(uintptr_t) == PTSIZE); 40 check(sizeof(ptrdiff_t) == PTSIZE); 43 check(sizeof(char) == 1); 45 check(sizeof(short) == 2); 47 check(sizeof(int) == 4); 49 check(sizeof(long) == 8); 52 check(sizeof(half) == 2); 55 check(sizeof(float) == 4); [all …]
|
/external/llvm-project/lld/test/COFF/ |
D | pdb-globals-dia-func-collision3.test | 43 CHECK-NEXT: func [0x000010d0+ 0 - 0x000010d1- 1 | sizeof= 1] (FPO) void __cdecl LuU() 45 CHECK-NEXT: func [0x000010b0+ 0 - 0x000010b1- 1 | sizeof= 1] (FPO) void __cdecl oet() 47 CHECK-NEXT: func [0x00001080+ 0 - 0x00001081- 1 | sizeof= 1] (FPO) void __cdecl OUV() 49 CHECK-NEXT: func [0x00001120+ 0 - 0x00001121- 1 | sizeof= 1] (FPO) void __cdecl pui() 51 CHECK-NEXT: func [0x00001090+ 0 - 0x00001091- 1 | sizeof= 1] (FPO) void __cdecl quH() 53 CHECK-NEXT: func [0x00001110+ 0 - 0x00001111- 1 | sizeof= 1] (FPO) void __cdecl sEH() 55 CHECK-NEXT: func [0x00001050+ 0 - 0x00001051- 1 | sizeof= 1] (FPO) void __cdecl teO() 57 CHECK-NEXT: func [0x00001030+ 0 - 0x00001031- 1 | sizeof= 1] (FPO) void __cdecl tEo() 59 CHECK-NEXT: func [0x000010c0+ 0 - 0x000010c1- 1 | sizeof= 1] (FPO) void __cdecl tuM() 61 CHECK-NEXT: func [0x00001040+ 0 - 0x00001041- 1 | sizeof= 1] (FPO) void __cdecl VUo() [all …]
|
/external/skqp/src/gpu/mtl/ |
D | GrMtlPipelineStateDataManager.mm | 65 memcpy(buffer, &i, sizeof(int32_t)); 78 SkASSERT(sizeof(int32_t) == 4); 81 memcpy(buffer, curVec, sizeof(int32_t)); 82 buffer = static_cast<char*>(buffer) + 4*sizeof(int32_t); 91 SkASSERT(sizeof(float) == 4); 92 memcpy(buffer, &v0, sizeof(float)); 105 SkASSERT(sizeof(float) == 4); 108 memcpy(buffer, curVec, sizeof(float)); 109 buffer = static_cast<char*>(buffer) + 4*sizeof(float); 119 memcpy(buffer, v, 2 * sizeof(int32_t)); [all …]
|