Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 383) sorted by relevance

12345678910>>...16

/AliOS-Things-master/solutions/eduk1_demo/k1_apps/aircraftBattle/
A DaircraftBattle.c99 dfo_t *achilles = (dfo_t *)malloc(sizeof(dfo_t)); in create_achilles()
142 dfo_t *titan = (dfo_t *)malloc(sizeof(dfo_t)); in create_titan()
151 act_seq_t *titan_destory_act = (act_seq_t *)malloc(sizeof(act_seq_t)); in create_titan()
158 (act_seq_t **)malloc(sizeof(act_seq_t *) * titan->act_seq_list_len); in create_titan()
185 dfo_t *ares = (dfo_t *)malloc(sizeof(dfo_t)); in create_ares()
201 (act_seq_t **)malloc(sizeof(act_seq_t *) * ares->act_seq_list_len); in create_ares()
228 dfo_t *venture = (dfo_t *)malloc(sizeof(dfo_t)); in create_venture()
271 dfo_t *bullet = (dfo_t *)malloc(sizeof(dfo_t)); in create_bullet()
274 act_seq_t *bullet_normal_act = (act_seq_t *)malloc(sizeof(act_seq_t)); in create_bullet()
321 bullet_group = (dfo_t **)malloc(sizeof(dfo_t *) * MAX_BULLET); in global_create()
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/
A Dfilterbank_util.c69 malloc(num_channels_plus_1 * sizeof(*state->channel_frequency_starts)); in FilterbankPopulateState()
71 malloc(num_channels_plus_1 * sizeof(*state->channel_weight_starts)); in FilterbankPopulateState()
73 malloc(num_channels_plus_1 * sizeof(*state->channel_widths)); in FilterbankPopulateState()
74 state->work = malloc(num_channels_plus_1 * sizeof(*state->work)); in FilterbankPopulateState()
77 malloc(num_channels_plus_1 * sizeof(*center_mel_freqs)); in FilterbankPopulateState()
79 malloc(num_channels_plus_1 * sizeof(*actual_channel_starts)); in FilterbankPopulateState()
81 malloc(num_channels_plus_1 * sizeof(*actual_channel_widths)); in FilterbankPopulateState()
A Dfft_util.cc31 malloc(state->fft_size * sizeof(*state->input))); in FftPopulateState()
38 malloc((state->fft_size / 2 + 1) * sizeof(*state->output) * 2)); in FftPopulateState()
52 state->scratch = malloc(scratch_size); in FftPopulateState()
A Dwindow_util.c37 state->coefficients = malloc(state->size * sizeof(*state->coefficients)); in WindowPopulateState()
54 state->input = malloc(state->size * sizeof(*state->input)); in WindowPopulateState()
60 state->output = malloc(state->size * sizeof(*state->output)); in WindowPopulateState()
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/
A Djmemnobs.c24 extern void * malloc JPP((size_t size));
37 return (void *) malloc(sizeofobject); in jpeg_get_small()
57 return (void FAR *) malloc(sizeofobject); in jpeg_get_large()
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/contrib/dbs/xtiff/
A Dxtiff.c428 dRed = (double *) malloc(colormapSize * sizeof(double)); in GetTIFFHeader()
429 dGreen = (double *) malloc(colormapSize * sizeof(double)); in GetTIFFHeader()
430 dBlue = (double *) malloc(colormapSize * sizeof(double)); in GetTIFFHeader()
456 redMap = (uint16 *) malloc(colormapSize * sizeof(uint16)); in GetTIFFHeader()
457 greenMap = (uint16 *) malloc(colormapSize * sizeof(uint16)); in GetTIFFHeader()
458 blueMap = (uint16 *) malloc(colormapSize * sizeof(uint16)); in GetTIFFHeader()
659 malloc(colormapSize * sizeof(unsigned long)); in GetVisual()
749 malloc(tfImageWidth * tfImageHeight * 4); in GetTIFFImage()
801 malloc(tfBytesPerRow * tfImageHeight); in GetTIFFImage()
809 malloc(tfBytesPerRow * 2 * tfImageHeight + 2); in GetTIFFImage()
[all …]
/AliOS-Things-master/components/py_engine/engine/py/
A Dmalloc.c56 #undef malloc
59 #define malloc(b) gc_alloc((b), false) macro
86 void *ptr = malloc(num_bytes); in m_malloc()
100 void *ptr = malloc(num_bytes); in m_malloc_maybe()
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/unused/
A Djmemansi.c21 extern void * malloc JPP((size_t size));
38 return (void *) malloc(sizeofobject); in jpeg_get_small()
58 return (void FAR *) malloc(sizeofobject); in jpeg_get_large()
A Djmem-android.c24 extern void * malloc JPP((size_t size));
41 return (void *) malloc(sizeofobject); in jpeg_get_small()
61 return (void FAR *) malloc(sizeofobject); in jpeg_get_large()
A Djmemname.c21 extern void * malloc JPP((size_t size));
145 return (void *) malloc(sizeofobject); in jpeg_get_small()
165 return (void FAR *) malloc(sizeofobject); in jpeg_get_large()
/AliOS-Things-master/components/ble_mesh/bt_mesh/aos/
A Dmesh.c267 …struct bt_mesh_elem *elems = (struct bt_mesh_elem *) malloc(sizeof(struct bt_mesh_elem) * param->c… in ble_stack_mesh_init()
281 …struct bt_mesh_model *models = (struct bt_mesh_model *) malloc(sizeof(struct bt_mesh_model) * elem… in ble_stack_mesh_init()
320 …struct bt_health_srv_data_t *srv_data = (struct bt_health_srv_data_t *)malloc(sizeof(struct bt_hea… in ble_stack_mesh_init()
328 … uint8_t *msg_data = (uint8_t *)malloc(param->comp->elem[i].models[j].pub_mesh_len + 1 + 3); in ble_stack_mesh_init()
348 …struct bt_mesh_health_cli *bt_health_cli = (struct bt_mesh_health_cli *)malloc(sizeof(struct bt_me… in ble_stack_mesh_init()
360 …struct bt_mesh_model_op *op = malloc(sizeof(struct bt_mesh_model_op) * (param->comp->elem[i].model… in ble_stack_mesh_init()
381 …struct bt_model_pub_data_t *pub_data = (struct bt_model_pub_data_t *)malloc(sizeof(struct bt_model… in ble_stack_mesh_init()
389 … uint8_t *msg_data = (uint8_t *)malloc(param->comp->elem[i].models[j].pub_mesh_len + 1 + 3); in ble_stack_mesh_init()
411 …struct bt_mesh_model *models = (struct bt_mesh_model *) malloc(sizeof(struct bt_mesh_model) * elem… in ble_stack_mesh_init()
444 …struct bt_model_pub_data_t *pub_data = (struct bt_model_pub_data_t *)malloc(sizeof(struct bt_model… in ble_stack_mesh_init()
[all …]
/AliOS-Things-master/components/posix/src/
A Denviro.c27 penv = malloc(sizeof(pthread_environ_t)); in env_new()
34 penv->envname = malloc(envname_len + 1); in env_new()
45 penv->envval = malloc(envval_len + 1); in env_new()
81 ev = malloc(sizeof(struct _envval)); in envval_deprecat()
141 penv->envval = malloc(envval_len + 1); in setenv()
271 envname = malloc(pos + 1); in putenv()
/AliOS-Things-master/hardware/board/haaseduk1/board_test/
A Dsd_test.c39 data = (char *) malloc(words_len); in sdtest_write()
61 data = (char *) malloc(SDTEST_FILE_LEN); in sdtest_write()
130 data = (char *) malloc(words_len); in sdtest_read()
211 data = (char *)malloc(SDTEST_FILE_LEN); in sdcard_test()
/AliOS-Things-master/components/ota/2ndboot/updater/xz/linux/lib/
A Ddecompress_unxz.c157 #define kmalloc(size, flags) malloc(size)
159 #define vmalloc(size) malloc(size)
282 b.out = malloc(XZ_IOBUF_SIZE); in unxz()
289 in = malloc(XZ_IOBUF_SIZE); in unxz()
/AliOS-Things-master/components/ugraphics/src/rotate/
A Drotate.c24 tempSrc = (unsigned char *)malloc(sizeof(char) * srcW * srcH * channel); in rotate_right90()
54 tempSrc = (unsigned char *)malloc(sizeof(char) * srcW * srcH * channel); in rotate_left90()
84 tempSrc = (unsigned char *)malloc(sizeof(char) * srcW * srcH * channel); in rotate_down()
/AliOS-Things-master/components/http/src/
A Dhttp_formdata.c89 data_info->form_data = (formdata_node_t *)malloc(sizeof(formdata_node_t)); in httpclient_formdata_addtext()
105 current->next = (formdata_node_t *)malloc(sizeof(formdata_node_t)); in httpclient_formdata_addtext()
121 current->data = (char*)malloc(buf_len+1); in httpclient_formdata_addtext()
211 data_info->form_data = (formdata_node_t *)malloc(sizeof(formdata_node_t)); in httpclient_formdata_addfile()
228 current->next = (formdata_node_t *)malloc(sizeof(formdata_node_t)); in httpclient_formdata_addfile()
244 current->data = (char*)malloc(buf_len + 1); in httpclient_formdata_addfile()
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/contrib/dbs/
A Dtiff-palette.c84 red = (uint16 *) malloc(cmsize * sizeof(uint16)); in main()
85 green = (uint16 *) malloc(cmsize * sizeof(uint16)); in main()
86 blue = (uint16 *) malloc(cmsize * sizeof(uint16)); in main()
237 scan_line = (unsigned char *) malloc(WIDTH / (8 / bits_per_pixel)); in main()
/AliOS-Things-master/components/genie_service/genie_port/
A Dgenie_port.h45 #define k_malloc malloc
84 #define hal_malloc malloc
/AliOS-Things-master/components/ble_netconfig/
A Dblecfg_main.c149 cmd_merge = malloc(total_len); in BleCfg_cmd_parse()
180 ssid = malloc(ssid_len + pwd_len + 2); in BleCfg_cmd_parse()
211 pk = malloc(pk_len + dn_len + ds_len + 3); in BleCfg_cmd_parse()
241 ap_info = malloc(AP_INFO_MAX*sizeof(*ap_info)); in BleCfg_cmd_parse()
262 ap_buf = malloc(ap_len); in BleCfg_cmd_parse()
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/
A Daudio_provider.cc131 tempBuf = (char *)malloc(len * channel_num); in pcm_stream_read()
133 mic2_pcm_tmp_buf = (char *)malloc(len); in pcm_stream_read()
134 mic3_pcm_tmp_buf = (char *)malloc(len); in pcm_stream_read()
196 tempBuf = (char *)malloc(duration_sample_count * sample_bytes); in CaptureSamples()
/AliOS-Things-master/components/ota/2ndboot/updater/xz/linux/lib/xz/
A Dxz_config.h39 #define kmalloc(size, flags) malloc(size)
41 #define vmalloc(size) malloc(size)
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/libtests/
A Dreadpng.c66 row = malloc(rowbytes); in read_png()
67 display = malloc(rowbytes); in read_png()
/AliOS-Things-master/components/SDL2/src/stdlib/
A DSDL_qsort.c44 #ifdef malloc
45 #undef malloc
47 #define malloc SDL_malloc macro
416 char *pivot=malloc(size); in qsort_nonaligned()
447 char *pivot=malloc(size); in qsort_aligned()
478 char *pivot=malloc(WORD_BYTES); in qsort_words()
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/test/
A Dinfcover.c84 ptr = malloc(len); in mem_alloc()
90 item = malloc(sizeof(struct mem_item)); in mem_alloc()
162 zone = malloc(sizeof(struct mem_zone)); in mem_setup()
250 in = malloc((strlen(hex) + 1) >> 1); in h2b()
301 out = malloc(len); assert(out != NULL); in inf()
521 out = malloc(size); in try()
523 win = malloc(32768); in try()
525 prefix = malloc(strlen(id) + 6); in try()
/AliOS-Things-master/components/libc_stub/compilers/armlibc/
A Darmcc_libc_uspace.c41 #pragma weak malloc macro
42 void *malloc(size_t size) in malloc() function

Completed in 124 milliseconds

12345678910>>...16