Home
last modified time | relevance | path

Searched refs:sizeof (Results 1 – 25 of 996) sorted by relevance

12345678910>>...40

/third_party/python/Lib/lib2to3/tests/data/
Dinfinite_recursion.py40 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 …]
/third_party/mbedtls/tests/suites/
Dtest_suite_nist_kw.function27 memset( plaintext, 0, sizeof( plaintext ) );
28 memset( ciphertext1, 0, sizeof( ciphertext1 ) );
29 memset( ciphertext2, 0, sizeof( ciphertext2 ) );
30 memset( key, 0, sizeof( key ) );
40 key, sizeof( key ) * 8,
44 plaintext, sizeof( plaintext ),
46 sizeof( ciphertext1 ) ) == 0 );
47 TEST_ASSERT( output_len == sizeof( ciphertext1 ) );
51 key, sizeof( key ) * 8,
57 sizeof( plaintext ) ) == 0 );
[all …]
Dtest_suite_memory_buffer_alloc.function48 mbedtls_memory_buffer_alloc_init( buf, sizeof( buf ) );
54 ptr_a = mbedtls_calloc( a_bytes, sizeof(char) );
57 allocated_bytes += a_bytes * sizeof(char);
62 ptr_b = mbedtls_calloc( b_bytes, sizeof(char) );
65 allocated_bytes += b_bytes * sizeof(char);
70 ptr_c = mbedtls_calloc( c_bytes, sizeof(char) );
73 allocated_bytes += c_bytes * sizeof(char);
78 ptr_d = mbedtls_calloc( d_bytes, sizeof(char) );
81 allocated_bytes += d_bytes * sizeof(char);
95 allocated_bytes -= a_bytes * sizeof(char);
[all …]
Dtest_suite_ecdsa.function22 memset( &rnd_info, 0x00, sizeof( mbedtls_test_rnd_pseudo_info ) );
23 memset( buf, 0, sizeof( buf ) );
30 TEST_ASSERT( mbedtls_ecdsa_sign( &grp, &r, &s, &d, buf, sizeof( buf ),
33 TEST_ASSERT( mbedtls_ecdsa_verify( &grp, buf, sizeof( buf ), &Q, &r, &s ) == 0 );
54 memset( &rnd_info, 0x00, sizeof( mbedtls_test_rnd_pseudo_info ) );
55 memset( buf, 0, sizeof( buf ) );
59 buf, sizeof( buf ) ) == 0 );
65 TEST_ASSERT( mbedtls_ecdsa_sign( &grp, &r, &s, &d, buf, sizeof( buf ),
68 TEST_ASSERT( mbedtls_ecdsa_verify( &grp, buf, sizeof( buf ), &Q, &r, &s ) == 0 );
157 memset( hash, 0, sizeof( hash ) );
[all …]
Dtest_suite_hmac_drbg.function45 memset( buf, 0, sizeof( buf ) );
46 memset( out, 0, sizeof( out ) );
48 entropy.len = sizeof( buf );
68 TEST_EQUAL( sizeof( buf ) - entropy.len, expected_consumed_entropy );
74 TEST_ASSERT( mbedtls_hmac_drbg_random( &ctx, out, sizeof( out ) - 4 ) == 0 );
75 TEST_ASSERT( mbedtls_hmac_drbg_random_with_add( &ctx, out, sizeof( out ) - 4,
78 TEST_EQUAL( sizeof( buf ) - entropy.len, expected_consumed_entropy );
81 TEST_ASSERT( out[sizeof( out ) - 4] == 0 );
82 TEST_ASSERT( out[sizeof( out ) - 3] == 0 );
83 TEST_ASSERT( out[sizeof( out ) - 2] == 0 );
[all …]
Dtest_suite_base64.function27 TEST_CF_SECRET( &c, sizeof( c ) );
29 TEST_CF_PUBLIC( &c, sizeof( c ) );
30 TEST_CF_PUBLIC( &m, sizeof( m ) );
45 TEST_CF_SECRET( &value, sizeof( value ) );
47 TEST_CF_PUBLIC( &value, sizeof( value ) );
48 TEST_CF_PUBLIC( &digit, sizeof( digit ) );
63 /* base64_digits is 0-terminated. sizeof()-1 excludes the trailing 0. */
64 p = memchr( base64_digits, c, sizeof( base64_digits ) - 1 );
69 TEST_CF_SECRET( &c, sizeof( c ) );
71 TEST_CF_PUBLIC( &c, sizeof( c ) );
[all …]
Dtest_suite_pk.function166 b1, sizeof( b1), b2, sizeof( b2 ) )
168 TEST_ASSERT( mbedtls_pk_decrypt( &pk, b1, sizeof( b1 ),
169 b2, &len, sizeof( b2 ),
172 TEST_ASSERT( mbedtls_pk_encrypt( &pk, b1, sizeof( b1 ),
173 b2, &len, sizeof( b2 ),
229 buf, sizeof( buf ), &len,
237 buf, sizeof( buf ), &len,
245 buf, sizeof( buf ), &len,
252 buf, sizeof( buf ),
259 buf, sizeof( buf ) ) ==
[all …]
Dtest_suite_psa_crypto_se_driver_hal_mocks.function109 memset( &mock_init_data, 0, sizeof( mock_init_data ) );
110 memset( &mock_import_data, 0, sizeof( mock_import_data ) );
111 memset( &mock_export_data, 0, sizeof( mock_export_data ) );
112 memset( &mock_export_public_data, 0, sizeof( mock_export_public_data ) );
113 memset( &mock_sign_data, 0, sizeof( mock_sign_data ) );
114 memset( &mock_verify_data, 0, sizeof( mock_verify_data ) );
115 memset( &mock_allocate_data, 0, sizeof( mock_allocate_data ) );
116 memset( &mock_destroy_data, 0, sizeof( mock_destroy_data ) );
117 memset( &mock_generate_data, 0, sizeof( mock_generate_data ) );
342 memset( &driver, 0, sizeof( driver ) );
[all …]
Dtest_suite_ctr_drbg.function38 TEST_ASSERT( entropy_chunk_len <= sizeof( buf ) );
111 memset( output, 0, sizeof( output ) );
112 memset( additional, 0, sizeof( additional ) );
203 test_max_idx = sizeof( entropy );
204 memset( entropy, 0, sizeof( entropy ) );
235 test_max_idx = sizeof( entropy );
236 memset( entropy, 0, sizeof( entropy ) );
237 memset( out, 0, sizeof( out ) );
238 memset( add, 0, sizeof( add ) );
259 TEST_ASSERT( mbedtls_ctr_drbg_random( &ctx, out, sizeof( out ) - 4 ) == 0 );
[all …]
Dtest_suite_pkwrite.function22 memset( buf, 0, sizeof( buf ) );
23 memset( check_buf, 0, sizeof( check_buf ) );
28 ret = mbedtls_pk_write_pubkey_pem( &key, buf, sizeof( buf ));
34 for( buf_index = pem_len; buf_index < sizeof( buf ); ++buf_index )
41 ilen = fread( check_buf, 1, sizeof( check_buf ), f );
62 memset( buf, 0, sizeof( buf ) );
63 memset( check_buf, 0, sizeof( check_buf ) );
69 ret = mbedtls_pk_write_key_pem( &key, buf, sizeof( buf ));
75 for( buf_index = pem_len; buf_index < sizeof( buf ); ++buf_index )
82 ilen = fread( check_buf, 1, sizeof( check_buf ), f );
/third_party/e2fsprogs/config/
Dparse-types.sh39 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 …]
/third_party/python/Lib/ctypes/test/
Dtest_bitfields.py65 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 …]
Dtest_sizes.py10 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))
Dtest_varsize_struct.py10 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)
Dtest_buffers.py10 self.assertEqual(sizeof(b), 32 * sizeof(c_char))
15 self.assertEqual(sizeof(b), 4 * sizeof(c_char))
34 self.assertEqual(sizeof(b), 32 * sizeof(c_wchar))
39 self.assertEqual(sizeof(b), 4 * sizeof(c_wchar))
54 self.assertEqual(sizeof(b), 4 * sizeof(c_wchar))
65 expected = 5 if sizeof(c_wchar) == 2 else 3
/third_party/toybox/kconfig/
Dzconf.hash.c_shipped91 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 …]
/third_party/musl/include/
Dalltypes.h.in44 …pec { time_t tv_sec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER==4321); long tv_nsec; int …
76 TYPEDEF struct __sigset_t { unsigned long __bits[128/sizeof(long)]; } sigset_t;
83 …YPEDEF struct { union { int __i[sizeof(long)==8?14:9]; volatile int __vi[sizeof(long)==8?14:9]; un…
84 …F struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatil…
85 …F struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatil…
86 TYPEDEF struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)…
87 TYPEDEF struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)…
88 TYPEDEF struct { union { int __i[sizeof(long)==8?14:8]; volatile int __vi[sizeof(long)==8?14:8]; vo…
89 TYPEDEF struct { union { int __i[sizeof(long)==8?8:5]; volatile int __vi[sizeof(long)==8?8:5]; void…
/third_party/musl/porting/linux/user/include/
Dalltypes.h.in44 …pec { time_t tv_sec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER==4321); long tv_nsec; int …
76 TYPEDEF struct __sigset_t { unsigned long __bits[128/sizeof(long)]; } sigset_t;
83 …YPEDEF struct { union { int __i[sizeof(long)==8?14:9]; volatile int __vi[sizeof(long)==8?14:9]; un…
84 …F struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatil…
85 …F struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatil…
86 TYPEDEF struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)…
87 TYPEDEF struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)…
88 TYPEDEF struct { union { int __i[sizeof(long)==8?14:8]; volatile int __vi[sizeof(long)==8?14:8]; vo…
89 TYPEDEF struct { union { int __i[sizeof(long)==8?8:5]; volatile int __vi[sizeof(long)==8?8:5]; void…
/third_party/boost/libs/random/doc/
Dgenerators.qbk46 [[__minstd_rand0] [2[sup 31]-2] [`sizeof(int32_t)`] [[minstd_rand0_speed]] [-]]
47 [[__minstd_rand] [2[sup 31]-2] [`sizeof(int32_t)`] [[minstd_rand_speed]] [-]]
48 [[__rand48][2[sup 48]-1] [`sizeof(uint64_t)`] [[rand48_speed]] [-]]
49 [[__ecuyer1988] [approx. 2[sup 61]] [`2*sizeof(int32_t)`] [[ecuyer_combined_speed]] [-]]
50 [[__knuth_b] [?] [`257*sizeof(uint32_t)`] [[knuth_b_speed]] [-]]
51 [[__kreutzer1986] [?] [`98*sizeof(uint32_t)`] [[kreutzer1986_speed]] [-]]
52 [[__taus88] [~2[sup 88]] [`3*sizeof(uint32_t)`] [[taus88_speed]] [-]]
53 …[[__hellekalek1995] [2[sup 31]-1] [`sizeof(int32_t)`] [[hellekalek1995__inversive__speed]] [good u…
54 …[[__mt11213b] [2[sup 11213]-1] [`352*sizeof(uint32_t)`] [[mt11213b_speed]] [good uniform distribut…
55 …[[__mt19937] [2[sup 19937]-1] [`625*sizeof(uint32_t)`] [[mt19937_speed]] [good uniform distributio…
[all …]
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlPipelineStateDataManager.mm49 memcpy(buffer, &i, sizeof(int32_t));
62 SkASSERT(sizeof(int32_t) == 4);
65 memcpy(buffer, curVec, sizeof(int32_t));
66 buffer = static_cast<char*>(buffer) + 4*sizeof(int32_t);
75 SkASSERT(sizeof(float) == 4);
76 memcpy(buffer, &v0, sizeof(float));
89 SkASSERT(sizeof(float) == 4);
90 memcpy(buffer, v, arrayCount * sizeof(float));
99 memcpy(buffer, v, 2 * sizeof(int32_t));
112 SkASSERT(sizeof(int32_t) == 4);
[all …]
DGrMtlUniformHandler.mm99 return sizeof(int8_t);
101 return 2 * sizeof(int8_t);
103 return 4 * sizeof(int8_t);
105 return 4 * sizeof(int8_t);
107 return sizeof(uint8_t);
109 return 2 * sizeof(uint8_t);
111 return 4 * sizeof(uint8_t);
113 return 4 * sizeof(uint8_t);
115 return sizeof(int16_t);
117 return 2 * sizeof(int16_t);
[all …]
/third_party/boost/libs/mpl/doc/src/refmanual/
Dsizeof_.rst3 sizeof\_
14 struct sizeof\_
24 Returns the result of a ``sizeof(X)`` expression wrapped into an
33 #include <boost/mpl/sizeof.hpp>
48 | ``X`` | Any type | A type to compute the ``sizeof`` for. |
74 typedef size_t< sizeof(x) > n;
91 BOOST_MPL_ASSERT_RELATION( sizeof_<char>::value, ==, sizeof(char) );
92 BOOST_MPL_ASSERT_RELATION( sizeof_<int>::value, ==, sizeof(int) );
93 BOOST_MPL_ASSERT_RELATION( sizeof_<double>::value, ==, sizeof(double) );
94 BOOST_MPL_ASSERT_RELATION( sizeof_<udt>::value, ==, sizeof(my) );
/third_party/flutter/skia/third_party/externals/icu/patches/
Ddouble_conversion.patch26 // Compile time assertion: sizeof(Dest) == sizeof(Source)
29 - typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1];
31 + static_assert(sizeof(Dest) == sizeof(Source),
34 + typedef char StaticAssert[sizeof(Dest) == sizeof(Source) ? 1 : -1];
38 memmove(&dest, &source, sizeof(dest));
/third_party/skia/third_party/externals/libjpeg-turbo/simd/nasm/
Djsimdcfg.inc45 %define SIZEOF_JSAMPLE SIZEOF_BYTE ; sizeof(JSAMPLE)
51 %define SIZEOF_JCOEF SIZEOF_WORD ; sizeof(JCOEF)
56 %define SIZEOF_JDIMENSION SIZEOF_DWORD ; sizeof(JDIMENSION)
61 %define SIZEOF_JSAMPROW SIZEOF_POINTER ; sizeof(JSAMPROW)
62 %define SIZEOF_JSAMPARRAY SIZEOF_POINTER ; sizeof(JSAMPARRAY)
63 %define SIZEOF_JSAMPIMAGE SIZEOF_POINTER ; sizeof(JSAMPIMAGE)
64 %define SIZEOF_JCOEFPTR SIZEOF_POINTER ; sizeof(JCOEFPTR)
73 %define SIZEOF_DCTELEM SIZEOF_WORD ; sizeof(DCTELEM)
75 %define SIZEOF_FAST_FLOAT SIZEOF_FP32 ; sizeof(float)
79 %define SIZEOF_ISLOW_MULT_TYPE SIZEOF_WORD ; sizeof(ISLOW_MULT_TYPE)
[all …]
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/simd/nasm/
Djsimdcfg.inc45 %define SIZEOF_JSAMPLE SIZEOF_BYTE ; sizeof(JSAMPLE)
51 %define SIZEOF_JCOEF SIZEOF_WORD ; sizeof(JCOEF)
56 %define SIZEOF_JDIMENSION SIZEOF_DWORD ; sizeof(JDIMENSION)
61 %define SIZEOF_JSAMPROW SIZEOF_POINTER ; sizeof(JSAMPROW)
62 %define SIZEOF_JSAMPARRAY SIZEOF_POINTER ; sizeof(JSAMPARRAY)
63 %define SIZEOF_JSAMPIMAGE SIZEOF_POINTER ; sizeof(JSAMPIMAGE)
64 %define SIZEOF_JCOEFPTR SIZEOF_POINTER ; sizeof(JCOEFPTR)
73 %define SIZEOF_DCTELEM SIZEOF_WORD ; sizeof(DCTELEM)
75 %define SIZEOF_FAST_FLOAT SIZEOF_FP32 ; sizeof(float)
79 %define SIZEOF_ISLOW_MULT_TYPE SIZEOF_WORD ; sizeof(ISLOW_MULT_TYPE)
[all …]

12345678910>>...40