Home
last modified time | relevance | path

Searched refs:nmemb (Results 1 – 25 of 38) sorted by relevance

12

/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/
A Dutils.c169 const uint64_t total_size = nmemb * size; in CheckSizeArgumentsOverflow()
170 if (nmemb == 0) return 1; in CheckSizeArgumentsOverflow()
191 void* WebPSafeMalloc(uint64_t nmemb, size_t size) { in WebPSafeMalloc() argument
194 if (!CheckSizeArgumentsOverflow(nmemb, size)) return NULL; in WebPSafeMalloc()
195 assert(nmemb * size > 0); in WebPSafeMalloc()
196 ptr = malloc((size_t)(nmemb * size)); in WebPSafeMalloc()
197 AddMem(ptr, (size_t)(nmemb * size)); in WebPSafeMalloc()
201 void* WebPSafeCalloc(uint64_t nmemb, size_t size) { in WebPSafeCalloc() argument
205 assert(nmemb * size > 0); in WebPSafeCalloc()
206 ptr = calloc((size_t)nmemb, size); in WebPSafeCalloc()
[all …]
A Dutils.h51 WEBP_EXTERN void* WebPSafeMalloc(uint64_t nmemb, size_t size);
54 WEBP_EXTERN void* WebPSafeCalloc(uint64_t nmemb, size_t size);
/AliOS-Things-master/components/linkkit/external/nghttp2/
A Dnghttp2_mem.c59 static void *default_calloc(size_t nmemb, size_t size, void *mem_user_data) in default_calloc() argument
64 return LITE_calloc(nmemb, size, MEM_MAGIC, "nghttp2"); in default_calloc()
66 void *ptr = HAL_Malloc(nmemb * size); in default_calloc()
68 memset(ptr, 0, nmemb * size); in default_calloc()
108 void *nghttp2_mem_calloc(nghttp2_mem *mem, size_t nmemb, size_t size) in nghttp2_mem_calloc() argument
110 return mem->calloc(nmemb, size, mem->mem_user_data); in nghttp2_mem_calloc()
A Dnghttp2_mem.h45 void *nghttp2_mem_calloc(nghttp2_mem *mem, size_t nmemb, size_t size);
/AliOS-Things-master/components/SDL2/src/stdlib/
A DSDL_qsort.c35 qsort(base, nmemb, size, compare); in SDL_qsort()
329 last=first + ((nmemb>limit ? limit : nmemb)-1)*sz;\
337 last=((char*)base)+nmemb*size; \
420 first=(char*)base; last=first+(nmemb-1)*size; in qsort_nonaligned()
451 first=(char*)base; last=first+(nmemb-1)*size; in qsort_aligned()
472 static void qsort_words(void *base, size_t nmemb, in qsort_words() argument
510 last=((char*)base)+nmemb*WORD_BYTES; in qsort_words()
527 if (nmemb<=1) return; in qsortG()
529 qsort_nonaligned(base,nmemb,size,compare); in qsortG()
531 qsort_aligned(base,nmemb,size,compare); in qsortG()
[all …]
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/
A Dcutils.c465 if (nmemb > 1) { in heapsortx()
466 i = (nmemb / 2) * size; in heapsortx()
467 n = nmemb * size; in heapsortx()
510 if (nmemb < 2 || size <= 0) in rqsort()
514 sp->count = nmemb; in rqsort()
521 nmemb = sp->count; in rqsort()
524 while (nmemb > 6) { in rqsort()
528 nmemb = 0; in rqsort()
538 gt = nmemb; in rqsort()
603 nmemb -= gt; in rqsort()
[all …]
/AliOS-Things-master/components/minilibc/libc/
A Dmalloc.c78 MALLOC_WEAK void *calloc(size_t nmemb, size_t size) in calloc() argument
83 ptr = mm_malloc(USR_HEAP, size * nmemb, __builtin_return_address(0)); in calloc()
85 ptr = csi_kernel_malloc(size * nmemb, __builtin_return_address(0)); in calloc()
89 memset(ptr, 0, size * nmemb); in calloc()
/AliOS-Things-master/components/amp-utility/python/
A Duos.py30 def read(buf, size, nmemb, stream): argument
43 def write(buf, size, nmemb, stream): argument
66 def seek(buf, size, nmemb, stream): argument
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/core/src/
A DCurlHttpClient.cc35 static size_t readCallback(void *ptr, size_t size, size_t nmemb, void *stream) { in readCallback() argument
42 if ((size == 0) || (nmemb == 0) || (size * nmemb < 1)) { in readCallback()
46 if (len > size * nmemb) { in readCallback()
47 len = size * nmemb; in readCallback()
54 size_t recvBody(char *ptr, size_t size, size_t nmemb, void *userdata) { in recvBody() argument
56 out << std::string(ptr, nmemb * size); in recvBody()
57 return nmemb * size; in recvBody()
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/libtiff/
A Dtif_aux.c64 tmsize_t nmemb, tmsize_t elem_size, const char* what) in _TIFFCheckRealloc() argument
67 tmsize_t bytes = nmemb * elem_size; in _TIFFCheckRealloc()
72 if (nmemb && elem_size && bytes / elem_size == nmemb) in _TIFFCheckRealloc()
79 what,(long) nmemb, (long) elem_size); in _TIFFCheckRealloc()
86 _TIFFCheckMalloc(TIFF* tif, tmsize_t nmemb, tmsize_t elem_size, const char* what) in _TIFFCheckMalloc() argument
88 return _TIFFCheckRealloc(tif, NULL, nmemb, elem_size, what); in _TIFFCheckMalloc()
A Dtif_unix.c319 void* _TIFFcalloc(tmsize_t nmemb, tmsize_t siz) in _TIFFcalloc() argument
321 if( nmemb == 0 || siz == 0 ) in _TIFFcalloc()
324 return calloc((size_t) nmemb, (size_t)siz); in _TIFFcalloc()
A Dtif_win32.c363 void* _TIFFcalloc(tmsize_t nmemb, tmsize_t siz) in _TIFFcalloc() argument
365 if( nmemb == 0 || siz == 0 ) in _TIFFcalloc()
368 return calloc((size_t) nmemb, (size_t)siz); in _TIFFcalloc()
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/rtw_wpa_supplicant/src/utils/
A Dos.h251 static inline void * os_calloc(size_t nmemb, size_t size) in os_calloc() argument
253 if (size && nmemb > (~(size_t) 0) / size) in os_calloc()
255 return os_zalloc(nmemb * size); in os_calloc()
578 static inline void * os_realloc_array(void *ptr, size_t nmemb, size_t size) in os_realloc_array() argument
580 if (size && nmemb > (~(size_t) 0) / size) in os_realloc_array()
582 return os_realloc(ptr, nmemb * size, nmemb * size); in os_realloc_array()
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/port/
A Dlfind.c51 lfind(const void *key, const void *base, size_t *nmemb, size_t size, in lfind() argument
56 end = (char *)base + *nmemb * size; in lfind()
A Dlibport.h47 lfind(const void *key, const void *base, size_t *nmemb, size_t size,
/AliOS-Things-master/components/freetype/src/gxvalid/
A Dgxvcommn.c73 for ( i = 0; i < nmemb; i++ ) in gxv_set_length_by_ushort_offset()
76 for ( i = 0; i < nmemb; i++ ) in gxv_set_length_by_ushort_offset()
78 buff[nmemb] = limit; in gxv_set_length_by_ushort_offset()
83 if ( buff[nmemb] > limit ) in gxv_set_length_by_ushort_offset()
86 for ( i = 0; i < nmemb; i++ ) in gxv_set_length_by_ushort_offset()
95 if ( j == nmemb ) in gxv_set_length_by_ushort_offset()
138 for ( i = 0; i < nmemb; i++ ) in gxv_set_length_by_ulong_offset()
141 for ( i = 0; i < nmemb; i++ ) in gxv_set_length_by_ulong_offset()
143 buff[nmemb] = limit; in gxv_set_length_by_ulong_offset()
148 if ( buff[nmemb] > limit ) in gxv_set_length_by_ulong_offset()
[all …]
A Dgxvcommn.h491 FT_UInt nmemb,
499 FT_UInt nmemb,
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/fs/mem/
A Dmem_file.h67 size_t (*fread)(void *ptr, size_t size, size_t nmemb, mem_file_cb_t *stream);
68 size_t (*fwrite)(const void *ptr, size_t size, size_t nmemb,mem_file_cb_t *stream);
/AliOS-Things-master/hardware/chip/haas1000/drivers/utils/heap/
A Dheap_api.h66 void *calloc(size_t nmemb, size_t size);
74 void *med_calloc(size_t nmemb, size_t size);
/AliOS-Things-master/components/SDL2/src/test/
A DSDL_test_memory.c158 static void * SDLCALL SDLTest_TrackedCalloc(size_t nmemb, size_t size) in SDLTest_TrackedCalloc() argument
162 mem = SDL_calloc_orig(nmemb, size); in SDLTest_TrackedCalloc()
164 SDL_TrackAllocation(mem, nmemb * size); in SDLTest_TrackedCalloc()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/imageio/
A Dimageio_util.c151 int ImgIoUtilCheckSizeArgumentsOverflow(uint64_t nmemb, size_t size) { in ImgIoUtilCheckSizeArgumentsOverflow() argument
152 const uint64_t total_size = nmemb * size; in ImgIoUtilCheckSizeArgumentsOverflow()
A Dimageio_util.h58 int ImgIoUtilCheckSizeArgumentsOverflow(uint64_t nmemb, size_t size);
/AliOS-Things-master/components/mbedtls/library/
A Dplatform.c64 void * mbedtls_calloc( size_t nmemb, size_t size ) in mbedtls_calloc() argument
66 return (*mbedtls_calloc_func)( nmemb, size ); in mbedtls_calloc()
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/multimedia/speech/inc/
A Dspeech_memory.h30 void *speech_calloc(size_t nmemb, size_t size);
/AliOS-Things-master/components/oss/src/http/
A DCurlHttpClient.cc221 static size_t sendBody(char *ptr, size_t size, size_t nmemb, void *userdata) in sendBody() argument
231 const size_t wanted = size * nmemb; in sendBody()
259 static size_t recvBody(char *ptr, size_t size, size_t nmemb, void *userdata) in recvBody() argument
262 const size_t wanted = size * nmemb; in recvBody()

Completed in 43 milliseconds

12