Home
last modified time | relevance | path

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

123456789

/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/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/flac/libFLAC/
Dmemory.c75 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ in FLAC__memory_alloc_aligned_int32_array()
104 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ in FLAC__memory_alloc_aligned_uint32_array()
133 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ in FLAC__memory_alloc_aligned_uint64_array()
162 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ in FLAC__memory_alloc_aligned_unsigned_array()
193 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ in FLAC__memory_alloc_aligned_real_array()
215 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/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/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/openssh/
Dsshbuf-misc.c82 if (SIZE_MAX / 2 <= len || (ret = malloc(len * 2 + 1)) == NULL) in sshbuf_dtob16()
103 if (SIZE_MAX / 2 <= len || (ret = malloc(plen)) == NULL) in sshbuf_dtob64()
146 if (s == NULL || l > SIZE_MAX) in sshbuf_dup_string()
/external/python/cpython3/Modules/_decimal/libmpdec/
Dvcstdint.h187 #ifndef SIZE_MAX // [
189 # define SIZE_MAX _UI64_MAX macro
191 # define SIZE_MAX _UI32_MAX macro
/external/libusb/msvc/
Dstdint.h203 #ifndef SIZE_MAX
205 #define SIZE_MAX UINT64_MAX macro
207 #define SIZE_MAX UINT32_MAX macro
/external/jemalloc/include/msvc_compat/C99/
Dstdint.h202 #ifndef SIZE_MAX // [
204 # define SIZE_MAX _UI64_MAX macro
206 # define SIZE_MAX _UI32_MAX macro
/external/llvm/unittests/ADT/
DArrayRefTest.cpp70 ArrayRef<char> AR3((const char *)0x10000, SIZE_MAX - 0x10000); in TEST()
81 ArrayRef<char> AR3((const char *)0x10000, SIZE_MAX - 0x10000); in TEST()
114 ArrayRef<char> AR((const char *)0x10000, SIZE_MAX - 0x10000); in TEST()
/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
Devent-config-linux.h18 #if SIZE_MAX == UINT64_MAX
20 #elif SIZE_MAX == UINT32_MAX
/external/skia/src/core/
DSkMath.cpp92 return tmp.ok() ? sum : SIZE_MAX; in Add()
98 return tmp.ok() ? prod : SIZE_MAX; in Mul()
/external/epid-sdk/epid/member/tiny/math/unittests/
Donetimepad.h55 if (uint8_data.size() > SIZE_MAX / CHAR_BIT) in InitUint8()
64 if (uint32_data.size() * sizeof(uint32_t) > SIZE_MAX / CHAR_BIT) in InitUint32()
/external/pdfium/third_party/libopenjpeg20/
D0003-dwt-decode.patch154 - if (l_data_size > (SIZE_MAX / sizeof(OPJ_INT32))) {
155 + if (l_data_count > (SIZE_MAX / sizeof(OPJ_INT32))) {
198 - if (h_mem_size > (SIZE_MAX / PARALLEL_COLS_53 / sizeof(OPJ_INT32))) {
199 + if (h.mem_count > (SIZE_MAX / PARALLEL_COLS_53 / sizeof(OPJ_INT32))) {
236 - if (h_mem_size > (SIZE_MAX / (4 * sizeof(OPJ_INT32)))) {
237 + if (h.mem_count > (SIZE_MAX / (4 * sizeof(OPJ_INT32)))) {
/external/nanopb-c/tests/io_errors/
Dio_errors.c59 pb_istream_t stream = {&read_callback, NULL, SIZE_MAX}; in main()
99 pb_ostream_t stream = {&write_callback, NULL, SIZE_MAX, 0}; in main()
/external/grpc-grpc/third_party/nanopb/tests/io_errors/
Dio_errors.c59 pb_istream_t stream = {&read_callback, NULL, SIZE_MAX}; in main()
99 pb_ostream_t stream = {&write_callback, NULL, SIZE_MAX, 0}; in main()

123456789