Home
last modified time | relevance | path

Searched refs:malloc (Results 251 - 275 of 2531) sorted by relevance

1...<<11121314151617181920>>...102

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
H A DSmallPtrSet.cpp34 CurArray = (const void**)malloc(sizeof(void*) * CurArraySize); in shrink_and_clear()
124 CurArray = (const void**)malloc(sizeof(void*) * NewSize);
152 CurArray = (const void**)malloc(sizeof(void*) * that.CurArraySize);
182 CurArray = (const void**)malloc(sizeof(void*) * RHS.CurArraySize);
/third_party/skia/third_party/externals/zlib/google/
H A Dzip_internal.cc72 ret = malloc(sizeof(WIN32FILE_IOWIN)); in ZipOpenFunc()
108 free(opaque); // malloc'ed in FillFdOpenFileFunc() in FdCloseFileFunc()
118 int* ptr_fd = static_cast<int*>(malloc(sizeof(fd))); in FillFdOpenFileFunc()
134 void* ret = malloc(sizeof(WIN32FILE_IOWIN)); in HandleOpenFileFunc()
141 free(stream); // malloc'ed in HandleOpenFileFunc() in HandleCloseFileFunc()
306 ZipBuffer* buffer = static_cast<ZipBuffer*>(malloc(sizeof(ZipBuffer))); in PrepareMemoryForUnzipping()
/third_party/selinux/libselinux/src/
H A Dget_context_list.c233 usercon_str = malloc(usercon_len); in get_context_user()
323 *newcon = malloc(nlen); in get_failsafe_context()
431 fname = malloc(fname_len); in get_ordered_context_list()
482 reachable = malloc(2 * sizeof(char *)); in get_ordered_context_list()
/third_party/selinux/libsepol/cil/test/unit/
H A DCuTest.c39 char* newStr = (char*) malloc( sizeof(char) * (size) ); in CuStrAlloc()
59 str->buffer = (char*) malloc(sizeof(char) * str->size); in CuStringInit()
65 CuString* str = (CuString*) malloc(sizeof(CuString)); in CuStringNew()
68 str->buffer = (char*) malloc(sizeof(char) * str->size); in CuStringNew()
/third_party/cups-filters/filter/foomatic-rip/
H A Dutil.c361 tmp = malloc(len +1); in make_absolute_path()
364 cwd = malloc(len); in make_absolute_path()
439 argv = malloc((cnt +1) * sizeof(char *)); in argv_split()
446 s = malloc(len + 1); in argv_split()
570 dstr_t *ds = malloc(sizeof(dstr_t)); in create_dstr()
573 ds->data = malloc(ds->alloc); in create_dstr()
733 ds->data = malloc(ds->alloc); in fgetdstr()
798 ds->data = malloc(ds->alloc); in dstrinsert()
819 strf = malloc(len +1); in dstrinsertf()
934 list_t *l = malloc(sizeo in list_create()
[all...]
/third_party/exfatprogs/dump/
H A Ddump.c79 ppbr = malloc(EXFAT_MAX_SECTOR_SIZE); in exfat_show_ondisk_all_info()
141 ed = malloc(sizeof(struct exfat_dentry)*3); in exfat_show_ondisk_all_info()
182 bitmap = malloc(bitmap_len); in exfat_show_ondisk_all_info()
/third_party/libsnd/src/
H A Dogg_vcomment.c101 tag = malloc (tag_size) ; in vorbiscomment_read_tags()
122 tag = malloc (tag_size) ; in vorbiscomment_read_tags()
152 tag = malloc (tag_size) ; in vorbiscomment_read_tags()
/third_party/mesa3d/src/freedreno/drm/virtio/
H A Dvirtio_ringbuffer.c135 submit_bos = malloc(fd_submit->nr_bos * sizeof(submit_bos[0])); in flush_submit_list()
136 guest_handles = malloc(fd_submit->nr_bos * sizeof(guest_handles[0])); in flush_submit_list()
160 struct msm_ccmd_gem_submit_req *req = malloc(req_len); in flush_submit_list()
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-raw-proxy/
H A Dminimal-ws-raw-proxy.c85 pc = malloc(sizeof(*pc)); in callback_proxy_ws_server()
203 msg = (proxy_msg_t *)malloc(sizeof(*msg) + LWS_PRE + len); in callback_proxy_ws_server()
312 msg = (proxy_msg_t *)malloc(sizeof(*msg) + LWS_PRE + len); in callback_proxy_raw_client()
/third_party/mesa3d/src/mesa/program/
H A Dprog_cache.c93 items = malloc(size * sizeof(*items)); in rehash()
214 c->key = malloc(keysize); in _mesa_program_cache_insert()
243 c->key = malloc(keysize); in _mesa_shader_cache_insert()
/third_party/icu/icu4c/source/samples/ucnv/
H A Dflagcb.c24 ctx = (FromUFLAGContext*) malloc(sizeof(FromUFLAGContext)); in flagCB_fromU_openContext()
161 newCtx = malloc(sizeof(debugCBContext)); in debugCB_clone()
276 ctx = malloc(sizeof(debugCBContext)); in debugCB_openContext()
/third_party/ltp/testcases/realtime/perf/latency/
H A Dpthread_cond_many.c199 pt = malloc(sizeof(*pt) * nthreads); in test_signal()
307 child_waiting = malloc(sizeof(*child_waiting) * nthreads); in main()
308 condlist = malloc(sizeof(*condlist) * nthreads); in main()
/third_party/musl/libc-test/src/functional/
H A Ddl_multithread_lock.c114 char *memory = (char *)malloc(TEST_SIZE); in CallBack004()
177 pthread_t *threads = (pthread_t *) malloc(sizeof(pthread_t) * num_threads); in do_test_concurrently()
205 pthread_t *threads = (pthread_t *) malloc(sizeof(pthread_t) * (num_threads1 + num_threads2)); in do_test_double_concurrently()
346 * @tc.desc : malloc and fork in different threads to check that there is no ABBA deadlock
H A Dtest-malloc-info-stats-print.h22 #include <malloc.h>
28 #include "test-malloc-stats-common.h"
85 ptrs[i] = malloc(sizes[i]); in get_main_thread_test_results()
138 allocs[i] = malloc(sizes[i]); in allocate_and_abandon()
/third_party/skia/third_party/externals/libjpeg-turbo/
H A Djdatadst.c26 #ifndef HAVE_STDLIB_H /* <stdlib.h> should declare malloc(),free() */
27 extern void *malloc(size_t size);
139 nextbuffer = (JOCTET *)malloc(nextsize); in METHODDEF()
241 * The standard library functions malloc/free are used for allocating
283 dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE); in jpeg_mem_dest()
/third_party/skia/third_party/externals/icu/source/samples/ucnv/
H A Dflagcb.c24 ctx = (FromUFLAGContext*) malloc(sizeof(FromUFLAGContext)); in flagCB_fromU_openContext()
161 newCtx = malloc(sizeof(debugCBContext)); in debugCB_clone()
276 ctx = malloc(sizeof(debugCBContext)); in debugCB_openContext()
/third_party/selinux/libsepol/src/
H A Dibpkey_record.c82 tmp_subnet_prefix = malloc(INET6_ADDRSTRLEN); in ibpkey_alloc_subnet_prefix_string()
104 (sepol_ibpkey_key_t *)malloc(sizeof(sepol_ibpkey_key_t)); in sepol_ibpkey_key_create()
290 sepol_ibpkey_t *tmp_ibpkey = (sepol_ibpkey_t *)malloc(sizeof(sepol_ibpkey_t)); in sepol_ibpkey_create()
/third_party/lz4/programs/
H A Dlz4io.c51 #include <stdlib.h> /* malloc, free */
150 LZ4IO_prefs_t* const ret = (LZ4IO_prefs_t*)malloc(sizeof(*ret)); in LZ4IO_defaultPreferences()
438 in_buff = (char*)malloc(LEGACY_BLOCKSIZE); in LZ4IO_compressFilename_Legacy()
439 out_buff = (char*)malloc((size_t)outBuffSize + 4); in LZ4IO_compressFilename_Legacy()
505 char* dstFileName = (char*)malloc(FNSPACE); in LZ4IO_compressMultipleFilenames_Legacy()
524 dstFileName = (char*)malloc(ofnSize); in LZ4IO_compressMultipleFilenames_Legacy()
562 char* circularBuf = (char*)malloc(circularBufSize); in LZ4IO_createDict()
598 dictBuf = (char *)malloc(dictLen ? dictLen : 1); in LZ4IO_createDict()
633 ress.srcBuffer = malloc(blockSize); in LZ4IO_createCResources()
636 ress.dstBuffer = malloc(res in LZ4IO_createCResources()
[all...]
H A Dbench.c40 #include <stdlib.h> /* malloc, free */
363 blockParam_t* const blockTable = (blockParam_t*) malloc(maxNbBlocks * sizeof(blockParam_t)); in BMK_benchMem()
365 void* const compressedBuffer = malloc(maxCompressedSize); in BMK_benchMem()
369 void* const resultBuffer = malloc(maxDecSize); in BMK_benchMem()
617 testmem = (BYTE*) malloc ((size_t)requiredMem); in BMK_findMaxMem()
697 size_t* fileSizes = (size_t*)malloc(nbFiles * sizeof(size_t)); in BMK_benchFileTable()
714 srcBuffer = malloc(benchedSize + !benchedSize); /* avoid alloc of zero */ in BMK_benchFileTable()
740 void* const srcBuffer = malloc(benchedSize); in BMK_syntheticTest()
817 dictBuf = (char*)malloc(dictSize); in BMK_benchFiles()
/third_party/elfutils/libelf/
H A Delf32_updatefile.c218 Elf_Scn **scns = malloc (shnum * sizeof (Elf_Scn *)); in __elfw2()
251 void *p = malloc (sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
278 void *p = malloc (scn->data_list.data.d.d_size); in __elfw2()
363 So use normal malloc for smaller alignments. */ in __elfw2()
367 converted = malloc (size); in __elfw2()
614 malloc (sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2()
674 malloc (shnum * sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
688 Elf_Scn **scns = malloc (shnum * sizeof (Elf_Scn *)); in __elfw2()
757 buf = malloc (dl->data.d.d_size); in __elfw2()
/third_party/cups-filters/fontembed/
H A Dsfnt.c104 ours=buf=malloc(sizeof(char)*pad_len); in otf_read()
176 otf->tables=malloc(sizeof(OTF_DIRENT)*otf->numTables); in otf_do_load()
292 end=malloc((tmp-file+1)*sizeof(char)); in otf_load()
386 char *tables=malloc(16*numTables); in otf_find_table()
479 otf->glyphOffsets=malloc((otf->numGlyphs+1)*sizeof(unsigned int)); in otf_load_glyf()
516 otf->gly=malloc(maxGlyfLen*sizeof(char)); in otf_load_glyf()
899 int *order=malloc(sizeof(int)*numTables); // temporary in otf_write_sfnt()
900 char *start=malloc(12+16*numTables); in otf_write_sfnt()
/third_party/mesa3d/src/mesa/main/
H A Deval.c165 buffer = malloc(uorder * size * sizeof(GLfloat)); in _mesa_copy_map_points1f()
189 buffer = malloc(uorder * size * sizeof(GLfloat)); in _mesa_copy_map_points1d()
233 buffer = malloc((uorder*vorder*size+hsize)*sizeof(GLfloat)); in _mesa_copy_map_points2f()
235 buffer = malloc((uorder*vorder*size+dsize)*sizeof(GLfloat)); in _mesa_copy_map_points2f()
276 buffer = malloc((uorder*vorder*size+hsize)*sizeof(GLfloat)); in _mesa_copy_map_points2d()
278 buffer = malloc((uorder*vorder*size+dsize)*sizeof(GLfloat)); in _mesa_copy_map_points2d()
840 map->Points = malloc(n * sizeof(GLfloat)); in init_1d_map()
861 map->Points = malloc(n * sizeof(GLfloat)); in init_2d_map()
/third_party/backends/backend/
H A Dcanon_pp.c476 devlist = malloc((num_devices + 1) * sizeof(*devlist)); in sane_get_devices()
649 if(!(tmp_range = malloc(sizeof(*tmp_range)))) in sane_open()
656 if(!(tmp_range = malloc(sizeof(*tmp_range)))) in sane_open()
663 if(!(tmp_range = malloc(sizeof(*tmp_range)))) in sane_open()
670 if(!(tmp_range = malloc(sizeof(*tmp_range)))) in sane_open()
1243 if ((lbuf = malloc(bytes)) == NULL) in sane_read()
1570 cs = malloc(sizeof(*cs)); in init_device()
1578 if ((cs->params.port = malloc(sizeof(*(cs->params.port)))) == NULL) in init_device()
1812 if ((cs->weights_file = malloc(i + 1)) == NULL) in fix_weights_file()
1828 if ((tmp = malloc( in fix_weights_file()
[all...]
H A Dhp5400_internal.c114 MatchVersions = malloc( sizeof(versionString) * numVersions ); in InitHp5400_internal()
372 calinfo = malloc (calSize); in SetCalibration()
435 buffer = malloc (2 * 65536); in WriteGammaCalibTable()
464 int *buffer = malloc (sizeof (int) * 65536); in SetDefaultGamma()
495 p->buffer = malloc (p->buffersize); in CircBufferInit()
567 p->buffer = malloc (newsize); in CircBufferGetLine()
705 in = malloc (planes * (xsize * bpp + 1)); in DecodeImage()
710 buf = malloc (3 * xsize * bpp); in DecodeImage()
791 array[j] = malloc (sizeof (int) * length); in DoAverageScan()
795 buffer = malloc (hton in DoAverageScan()
[all...]
H A Dsnapscan-sources.c384 *pps = (Source *) malloc(sizeof(SCSISource)); in create_base_source()
396 *pps = (Source *) malloc(sizeof(FDSource)); in create_base_source()
408 *pps = (Source *) malloc(sizeof(BufSource)); in create_base_source()
616 pself->ch_buf = (SANE_Byte *) malloc(pself->ch_size); in Expander_init()
647 *pps = (Source *) malloc(sizeof(Expander)); in create_Expander()
864 pself->ch_buf = (SANE_Byte *) malloc(pself->ch_size); in Deinterlacer_init()
894 *pps = (Source *) malloc(sizeof(Deinterlacer)); in create_Deinterlacer()
1098 pself->cbuf = (SANE_Byte *) malloc(pself->cb_size); in RGBRouter_init()
1099 pself->xbuf = (SANE_Byte *) malloc(pself->cb_line_size); in RGBRouter_init()
1135 *pps = (Source *) malloc(sizeo in create_RGBRouter()
[all...]

Completed in 23 milliseconds

1...<<11121314151617181920>>...102