Home
last modified time | relevance | path

Searched refs:SIZE_MAX (Results 1 – 25 of 340) sorted by relevance

12345678910>>...14

/external/webrtc/media/base/
Dturn_utils_unittest.cc20 size_t content_pos = SIZE_MAX; in TEST()
21 size_t content_size = SIZE_MAX; in TEST()
33 EXPECT_EQ(SIZE_MAX, content_pos); in TEST()
34 EXPECT_EQ(SIZE_MAX, content_size); in TEST()
46 EXPECT_EQ(SIZE_MAX, content_pos); in TEST()
47 EXPECT_EQ(SIZE_MAX, content_size); in TEST()
65 EXPECT_EQ(SIZE_MAX, content_pos); in TEST()
66 EXPECT_EQ(SIZE_MAX, content_size); in TEST()
71 size_t content_pos = SIZE_MAX; in TEST()
72 size_t content_size = SIZE_MAX; in TEST()
[all …]
/external/e2fsprogs/intl/
Dxsize.h50 ((N) <= SIZE_MAX ? (size_t) (N) : SIZE_MAX)
60 return (sum >= size1 ? sum : SIZE_MAX); in xsum()
100 ((N) <= SIZE_MAX / (ELSIZE) ? (size_t) (N) * (ELSIZE) : SIZE_MAX)
104 ((SIZE) == SIZE_MAX)
107 ((SIZE) != SIZE_MAX)
/external/gwp_asan/gwp_asan/tests/
Dbasic.cpp42 EXPECT_EQ(nullptr, GPA.allocate(SIZE_MAX, 0)); in TEST_F()
43 EXPECT_EQ(nullptr, GPA.allocate(SIZE_MAX, 1)); in TEST_F()
44 EXPECT_EQ(nullptr, GPA.allocate(0, SIZE_MAX / 2)); in TEST_F()
45 EXPECT_EQ(nullptr, GPA.allocate(1, SIZE_MAX / 2)); in TEST_F()
46 EXPECT_EQ(nullptr, GPA.allocate(SIZE_MAX, SIZE_MAX / 2)); in TEST_F()
62 EXPECT_EQ(nullptr, GPA.allocate(0, SIZE_MAX)); in TEST_F()
63 EXPECT_EQ(nullptr, GPA.allocate(1, SIZE_MAX)); in TEST_F()
/external/FXdiv/test/
Dquotient.cc218 EXPECT_EQ(SIZE_MAX / 1, in TEST()
219 fxdiv_quotient_size_t(SIZE_MAX, in TEST()
221 EXPECT_EQ(SIZE_MAX / SIZE_MAX, in TEST()
222 fxdiv_quotient_size_t(SIZE_MAX, in TEST()
223 fxdiv_init_size_t(SIZE_MAX))); in TEST()
224 EXPECT_EQ((SIZE_MAX - 1) / SIZE_MAX, in TEST()
225 fxdiv_quotient_size_t(SIZE_MAX - 1, in TEST()
226 fxdiv_init_size_t(SIZE_MAX))); in TEST()
227 EXPECT_EQ(SIZE_MAX / (SIZE_MAX - 1), in TEST()
228 fxdiv_quotient_size_t(SIZE_MAX, in TEST()
[all …]
Dmultiply-high.cc30 EXPECT_EQ(0, fxdiv_mulhi_size_t(1, SIZE_MAX)); in TEST()
31 EXPECT_EQ(0, fxdiv_mulhi_size_t(SIZE_MAX, 1)); in TEST()
32 EXPECT_EQ(SIZE_MAX - 1, fxdiv_mulhi_size_t(SIZE_MAX, SIZE_MAX)); in TEST()
/external/flac/include/share/
Dalloc.h51 #ifndef SIZE_MAX
63 # define SIZE_MAX SIZE_T_MAX macro
125 if(size1 > SIZE_MAX / size2) in safe_malloc_mul_3op_()
128 if(size1 > SIZE_MAX / size3) in safe_malloc_mul_3op_()
138 if(size1 > SIZE_MAX / size2) in safe_malloc_mul2add_()
151 if(size1 > SIZE_MAX / size2) in safe_malloc_muladd2_()
203 if(size1 > SIZE_MAX / size2) in safe_realloc_mul_2op_()
/external/rust/crates/ring/crypto/
Dconstant_time_test.c104 SIZE_MAX / 2 - 1,
105 SIZE_MAX / 2,
106 SIZE_MAX / 2 + 1,
107 SIZE_MAX - 1,
108 SIZE_MAX
/external/cpuinfo/src/linux/
Dmockfile.c33 files[file_count].offset = SIZE_MAX; in cpuinfo_mock_filesystem()
52 if (cpuinfo_mock_files[i].offset != SIZE_MAX) { in cpuinfo_mock_open()
74 if (cpuinfo_mock_files[fd].offset == SIZE_MAX) { in cpuinfo_mock_close()
78 cpuinfo_mock_files[fd].offset = SIZE_MAX; in cpuinfo_mock_close()
92 if (cpuinfo_mock_files[fd].offset == SIZE_MAX) { in cpuinfo_mock_read()
/external/flac/src/libFLAC/
Dmemory.c76 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ in FLAC__memory_alloc_aligned_int32_array()
105 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ in FLAC__memory_alloc_aligned_uint32_array()
134 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ in FLAC__memory_alloc_aligned_uint64_array()
163 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ in FLAC__memory_alloc_aligned_unsigned_array()
194 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ in FLAC__memory_alloc_aligned_real_array()
216 if(size1 > SIZE_MAX / size2) in safe_malloc_mul_2op_p()
/external/python/cpython3/Python/
Dasdl.c12 (size && (((size_t)size - 1) > (SIZE_MAX / sizeof(void *))))) { in _Py_asdl_seq_new()
19 if (n > SIZE_MAX - sizeof(asdl_seq)) { in _Py_asdl_seq_new()
43 (size && (((size_t)size - 1) > (SIZE_MAX / sizeof(void *))))) { in _Py_asdl_int_seq_new()
50 if (n > SIZE_MAX - sizeof(asdl_seq)) { in _Py_asdl_int_seq_new()
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/
Dwrappers_c_test.cpp55 EXPECT_EQ(malloc(SIZE_MAX), nullptr); in TEST()
75 EXPECT_EQ(calloc(SIZE_MAX, 1U), nullptr); in TEST()
82 EXPECT_EQ(calloc(SIZE_MAX, SIZE_MAX), nullptr); in TEST()
105 EXPECT_EQ(memalign(4096U, SIZE_MAX), nullptr); in TEST()
107 EXPECT_EQ(posix_memalign(&P, 4096U, SIZE_MAX), ENOMEM); in TEST()
165 EXPECT_EQ(realloc(nullptr, SIZE_MAX), nullptr); in TEST()
170 EXPECT_EQ(realloc(P, SIZE_MAX), nullptr); in TEST()
224 EXPECT_EQ(pvalloc(SIZE_MAX), nullptr); in TEST()
232 EXPECT_EQ(valloc(SIZE_MAX), nullptr); in TEST()
/external/scudo/standalone/tests/
Dwrappers_c_test.cpp66 EXPECT_EQ(malloc(SIZE_MAX), nullptr); in TEST()
86 EXPECT_EQ(calloc(SIZE_MAX, 1U), nullptr); in TEST()
93 EXPECT_EQ(calloc(SIZE_MAX, SIZE_MAX), nullptr); in TEST()
128 EXPECT_EQ(memalign(4096U, SIZE_MAX), nullptr); in TEST()
130 EXPECT_EQ(posix_memalign(&P, 4096U, SIZE_MAX), ENOMEM); in TEST()
188 EXPECT_EQ(realloc(nullptr, SIZE_MAX), nullptr); in TEST()
193 EXPECT_EQ(realloc(P, SIZE_MAX), nullptr); in TEST()
247 EXPECT_EQ(pvalloc(SIZE_MAX), nullptr); in TEST()
255 EXPECT_EQ(valloc(SIZE_MAX), nullptr); in TEST()
/external/scrypt/lib/crypto/
Dcrypto_scrypt-neon.c203 #if SIZE_MAX > UINT32_MAX in crypto_scrypt()
217 if ((r > SIZE_MAX / 128 / p) || in crypto_scrypt()
218 #if SIZE_MAX / 256 <= UINT32_MAX in crypto_scrypt()
219 (r > SIZE_MAX / 256) || in crypto_scrypt()
221 (N > SIZE_MAX / 128 / r)) { in crypto_scrypt()
Dcrypto_scrypt-ref.c230 #if SIZE_MAX > UINT32_MAX in crypto_scrypt()
244 if ((r > SIZE_MAX / 128 / p) || in crypto_scrypt()
245 #if SIZE_MAX / 256 <= UINT32_MAX in crypto_scrypt()
246 (r > SIZE_MAX / 256) || in crypto_scrypt()
248 (N > SIZE_MAX / 128 / r)) { in crypto_scrypt()
Dcrypto_scrypt-sse.c277 #if SIZE_MAX > UINT32_MAX in crypto_scrypt()
291 if ((r > SIZE_MAX / 128 / p) || in crypto_scrypt()
292 #if SIZE_MAX / 256 <= UINT32_MAX in crypto_scrypt()
293 (r > (SIZE_MAX - 64) / 256) || in crypto_scrypt()
295 (N > SIZE_MAX / 128 / r)) { in crypto_scrypt()
/external/clang/test/Headers/
Dcxx11.cpp24 #ifndef SIZE_MAX
25 #error SIZE_MAX should be defined in C++
/external/llvm-project/clang/test/Headers/
Dcxx11.cpp24 #ifndef SIZE_MAX
25 #error SIZE_MAX should be defined in C++
/external/nanopb-c/examples/network_server/
Dcommon.c32 pb_ostream_t stream = {&write_callback, (void*)(intptr_t)fd, SIZE_MAX, 0}; in pb_ostream_from_socket()
38 pb_istream_t stream = {&read_callback, (void*)(intptr_t)fd, SIZE_MAX}; in pb_istream_from_socket()
/external/grpc-grpc/third_party/nanopb/examples/network_server/
Dcommon.c32 pb_ostream_t stream = {&write_callback, (void*)(intptr_t)fd, SIZE_MAX, 0}; in pb_ostream_from_socket()
38 pb_istream_t stream = {&read_callback, (void*)(intptr_t)fd, SIZE_MAX}; in pb_istream_from_socket()
/external/jemalloc_new/include/msvc_compat/C99/
Dstdint.h202 #ifndef SIZE_MAX // [
204 # define SIZE_MAX _UI64_MAX macro
206 # define SIZE_MAX _UI32_MAX macro
/external/skia/src/core/
DSkMath.cpp47 return tmp.ok() ? sum : SIZE_MAX; in Add()
53 return tmp.ok() ? prod : SIZE_MAX; in Mul()
/external/openssh/openbsd-compat/
Drecallocarray.c47 newnmemb > 0 && SIZE_MAX / newnmemb < size) { in recallocarray()
54 oldnmemb > 0 && SIZE_MAX / oldnmemb < size) { in recallocarray()
/external/skqp/src/core/
DSkMath.cpp92 return tmp.ok() ? sum : SIZE_MAX; in Add()
98 return tmp.ok() ? prod : SIZE_MAX; in Mul()
/external/libevent/include/event2/
Devent-config-bionic.h18 #if SIZE_MAX == UINT64_MAX
20 #elif SIZE_MAX == UINT32_MAX
Devent-config-darwin.h18 #if SIZE_MAX == UINT64_MAX
20 #elif SIZE_MAX == UINT32_MAX

12345678910>>...14