Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 224) sorted by relevance

123456789

/AliOS-Things-master/components/py_engine/engine/py/
A Dmap.c74 map->table = m_new0(mp_map_elem_t, map->alloc); in mp_map_init()
76 map->used = 0; in mp_map_init()
94 m_del(mp_map_elem_t, map->table, map->alloc); in mp_map_deinit()
96 map->used = map->alloc = 0; in mp_map_deinit()
101 m_del(mp_map_elem_t, map->table, map->alloc); in mp_map_clear()
160 … for (mp_map_elem_t *elem = &map->table[0], *top = &map->table[map->used]; elem < top; elem++) { in mp_map_lookup()
170 elem = &map->table[map->used]; in mp_map_lookup()
182 if (map->used == map->alloc) { in mp_map_lookup()
185 map->table = m_renew(mp_map_elem_t, map->table, map->used, map->alloc); in mp_map_lookup()
186 mp_seq_clear(map->table, map->used, map->alloc, sizeof(*map->table)); in mp_map_lookup()
[all …]
A Dbuiltinhelp.c59 STATIC void mp_help_add_from_map(mp_obj_t list, const mp_map_t *map) { in mp_help_add_from_map() argument
60 for (size_t i = 0; i < map->alloc; i++) { in mp_help_add_from_map()
61 if (mp_map_slot_is_filled(map, i)) { in mp_help_add_from_map()
62 mp_obj_list_append(list, map->table[i].key); in mp_help_add_from_map()
144 mp_map_t *map = NULL; in mp_help_print_obj() local
146 map = &mp_obj_module_get_globals(obj)->map; in mp_help_print_obj()
152 map = &type->locals_dict->map; in mp_help_print_obj()
155 if (map != NULL) { in mp_help_print_obj()
156 for (uint i = 0; i < map->alloc; i++) { in mp_help_print_obj()
157 if (map->table[i].key != MP_OBJ_NULL) { in mp_help_print_obj()
[all …]
A Dobjdict.c38 .map = {
55 mp_map_t *map = &dict->map; in dict_iter_next() local
137 size_t sz = sizeof(*self) + sizeof(*self->map.table) * self->map.alloc; in dict_unary_op()
171 if (o->map.used != rhs->map.used) { in dict_binary_op()
253 other->map.used = self->map.used; in mp_obj_dict_copy()
254 other->map.all_keys_are_qstrs = self->map.all_keys_are_qstrs; in mp_obj_dict_copy()
255 other->map.is_fixed = 0; in mp_obj_dict_copy()
256 other->map.is_ordered = self->map.is_ordered; in mp_obj_dict_copy()
257 memcpy(other->map.table, self->map.table, self->map.alloc * sizeof(mp_map_elem_t)); in mp_obj_dict_copy()
354 self->map.used--; in dict_popitem()
[all …]
/AliOS-Things-master/components/linkkit/external/nghttp2/
A Dnghttp2_map.c33 map->mem = mem; in nghttp2_map_init()
35 map->table = in nghttp2_map_init()
41 map->size = 0; in nghttp2_map_init()
48 nghttp2_mem_free(map->mem, map->table); in nghttp2_map_free()
143 nghttp2_mem_free(map->mem, map->table); in resize()
154 if ((map->size + 1) * 4 > map->tablelen * 3) { in nghttp2_map_insert()
155 rv = resize(map, map->tablelen * 2); in nghttp2_map_insert()
160 rv = insert(map->table, map->tablelen, new_entry); in nghttp2_map_insert()
164 ++map->size; in nghttp2_map_insert()
194 --map->size; in nghttp2_map_remove()
[all …]
A Dnghttp2_map.h65 int nghttp2_map_init(nghttp2_map *map, nghttp2_mem *mem);
72 void nghttp2_map_free(nghttp2_map *map);
80 void nghttp2_map_each_free(nghttp2_map *map,
101 int nghttp2_map_insert(nghttp2_map *map, nghttp2_map_entry *entry);
107 nghttp2_map_entry *nghttp2_map_find(nghttp2_map *map, key_type key);
119 int nghttp2_map_remove(nghttp2_map *map, key_type key);
124 size_t nghttp2_map_size(nghttp2_map *map);
140 int nghttp2_map_each(nghttp2_map *map,
/AliOS-Things-master/components/freetype/src/gzip/
A Dzconf.h259 # pragma map(deflateInit_,"DEIN")
260 # pragma map(deflateInit2_,"DEIN2")
261 # pragma map(deflateEnd,"DEEND")
262 # pragma map(inflateInit_,"ININ")
263 # pragma map(inflateInit2_,"ININ2")
264 # pragma map(inflateEnd,"INEND")
265 # pragma map(inflateSync,"INSY")
267 # pragma map(inflate_blocks,"INBL")
272 # pragma map(inflate_codes,"INCO")
273 # pragma map(inflate_fast,"INFA")
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/targets/hal/rtl8721d/
A Dpinmap_common.c20 void pinmap_pinout(PinName pin, const PinMap *map) in pinmap_pinout() argument
25 while (map->pin != NC) { in pinmap_pinout()
26 if (map->pin == pin) { in pinmap_pinout()
28 pin_function(pin, map->function); in pinmap_pinout()
31 map++; in pinmap_pinout()
55 while (map->pin != NC) { in pinmap_find_peripheral()
56 if (map->pin == pin) { in pinmap_find_peripheral()
57 return map->peripheral; in pinmap_find_peripheral()
59 map++; in pinmap_find_peripheral()
64 uint32_t pinmap_peripheral(PinName pin, const PinMap* map) in pinmap_peripheral() argument
[all …]
/AliOS-Things-master/components/SDL2/src/video/
A DSDL_blit_1.c39 Uint8 *src, *map, *dst; in Blit1to1() local
49 map = info->table; in Blit1to1()
92 Uint16 *map; in Blit1to2() local
133 *(Uint32 *) dst = (map[src[HI]] << 16) | (map[src[LO]]); in Blit1to2()
136 *(Uint32 *) dst = (map[src[HI]] << 16) | (map[src[LO]]); in Blit1to2()
146 *(Uint32 *) dst = (map[src[HI]] << 16) | (map[src[LO]]); in Blit1to2()
162 *(Uint32 *) dst = (map[src[HI]] << 16) | (map[src[LO]]); in Blit1to2()
165 *(Uint32 *) dst = (map[src[HI]] << 16) | (map[src[LO]]); in Blit1to2()
175 *(Uint32 *) dst = (map[src[HI]] << 16) | (map[src[LO]]); in Blit1to2()
209 map = info->table; in Blit1to3()
[all …]
A DSDL_surface.c136 if (!surface->map) { in SDL_CreateRGBSurfaceWithFormat()
422 surface->map->info.r = r; in SDL_SetSurfaceColorMod()
423 surface->map->info.g = g; in SDL_SetSurfaceColorMod()
424 surface->map->info.b = b; in SDL_SetSurfaceColorMod()
467 surface->map->info.a = alpha; in SDL_SetSurfaceAlphaMod()
505 surface->map->info.flags &= in SDL_SetSurfaceBlendMode()
545 switch (surface->map-> in SDL_GetSurfaceBlendMode()
1025 surface->map->info.r = 0xFF; in SDL_ConvertSurface()
1097 convert->map->info.flags = in SDL_ConvertSurface()
1243 surface->map = blitmap; in SDL_CreateSurfaceOnStack()
[all …]
A DSDL_pixels.c933 Uint8 *map; in Map1to1() local
960 return (map); in Map1to1()
968 Uint8 *map; in Map1toN() local
988 return (map); in Map1toN()
1012 map = (SDL_BlitMap *) SDL_calloc(1, sizeof(*map)); in SDL_AllocBlitMap()
1023 return (map); in SDL_AllocBlitMap()
1029 if (!map) { in SDL_InvalidateMap()
1032 if (map->dst) { in SDL_InvalidateMap()
1053 map = src->map; in SDL_MapSurface()
1080 Map1toN(srcfmt, src->map->info.r, src->map->info.g, in SDL_MapSurface()
[all …]
A DSDL_blit.c199 SDL_BlitMap *map = surface->map; in SDL_CalculateBlit() local
200 SDL_Surface *dst = map->dst; in SDL_CalculateBlit()
204 SDL_InvalidateMap(map); in SDL_CalculateBlit()
215 map->blit = SDL_SoftBlit; in SDL_CalculateBlit()
216 map->info.src_fmt = surface->format; in SDL_CalculateBlit()
218 map->info.dst_fmt = dst->format; in SDL_CalculateBlit()
219 map->info.dst_pitch = dst->pitch; in SDL_CalculateBlit()
231 if (map->identity && !(map->info.flags & ~SDL_COPY_RLE_DESIRED)) { in SDL_CalculateBlit()
235 SDL_InvalidateMap(map); in SDL_CalculateBlit()
285 map->data = blit; in SDL_CalculateBlit()
[all …]
A DSDL_blit_0.c35 Uint8 *src, *map, *dst; in BlitBto1() local
45 map = info->table; in BlitBto1()
48 if (map) { in BlitBto1()
91 Uint16 *map, *dst; in BlitBto2() local
101 map = (Uint16 *) info->table; in BlitBto2()
112 *dst = map[bit]; in BlitBto2()
127 Uint8 *src, *map, *dst; in BlitBto3() local
137 map = info->table; in BlitBto3()
166 Uint32 *map, *dst; in BlitBto4() local
177 map = (Uint32 *) info->table; in BlitBto4()
[all …]
/AliOS-Things-master/hardware/board/haaseduk1/drivers/sensor/
A Ddrv_mag_qst_qmc6310.c76 c_map.map[AXIS_X] = AXIS_X; in qmc6310_set_layout()
77 c_map.map[AXIS_Y] = AXIS_Y; in qmc6310_set_layout()
78 c_map.map[AXIS_Z] = AXIS_Z; in qmc6310_set_layout()
83 c_map.map[AXIS_X] = AXIS_Y; in qmc6310_set_layout()
84 c_map.map[AXIS_Y] = AXIS_X; in qmc6310_set_layout()
85 c_map.map[AXIS_Z] = AXIS_Z; in qmc6310_set_layout()
90 c_map.map[AXIS_X] = AXIS_X; in qmc6310_set_layout()
91 c_map.map[AXIS_Y] = AXIS_Y; in qmc6310_set_layout()
92 c_map.map[AXIS_Z] = AXIS_Z; in qmc6310_set_layout()
97 c_map.map[AXIS_X] = AXIS_Y; in qmc6310_set_layout()
[all …]
A Ddrv_acc_gyro_qst_qmi8610.c24 unsigned short map[AXIS_TOTAL]; member
84 imu_map.map[AXIS_X] = AXIS_X; in FisImu_set_layout()
85 imu_map.map[AXIS_Y] = AXIS_Y; in FisImu_set_layout()
86 imu_map.map[AXIS_Z] = AXIS_Z; in FisImu_set_layout()
91 imu_map.map[AXIS_X] = AXIS_Y; in FisImu_set_layout()
92 imu_map.map[AXIS_Y] = AXIS_X; in FisImu_set_layout()
93 imu_map.map[AXIS_Z] = AXIS_Z; in FisImu_set_layout()
98 imu_map.map[AXIS_X] = AXIS_X; in FisImu_set_layout()
99 imu_map.map[AXIS_Y] = AXIS_Y; in FisImu_set_layout()
100 imu_map.map[AXIS_Z] = AXIS_Z; in FisImu_set_layout()
[all …]
/AliOS-Things-master/components/py_engine/engine/tools/
A Dcc159 def hash_insert(map, key, value):
61 pos = hash % len(map)
66 if map[pos] is None:
70 map[pos] = (key, value)
74 if map[pos][0] == key:
79 def hash_find(map, key):
81 pos = hash % len(map)
86 if map[pos] is None:
88 elif map[pos][0] == key:
170 stats = len(map), len(entries) / len(map), total_attempts / len(entries)
[all …]
/AliOS-Things-master/solutions/eduk1_demo/k1_apps/greedySnake/
A DgreedySnake.md74 … int16_t pos_x_max; // 逻辑最大x坐标 pos_x_max = (map.border_right - map.border_left) / map.block_size;
75 … int16_t pos_y_max; // 逻辑最大y坐标 pos_y_max = (map.border_botton - map.border_top) / map.block_size;
90 snake_game.pos_x_max = (map.border_right - map.border_left) / map.block_size;
91 snake_game.pos_y_max = (map.border_botton - map.border_top) / map.block_size;
170 map.border_left + snake.XPos[i] * map.block_size,
171 map.border_top + snake.YPos[i] * map.block_size,
180 map.border_top + snake.YPos[i] * map.block_size,
186 map.border_left + snake.XPos[i] * map.block_size,
187 map.border_top + snake.YPos[i] * map.block_size,
208 map.border_left + food.x * map.block_size,
[all …]
A DgreedySnake.c51 Map map = {2, 128, 62, 12, 4}; variable
184 (map.border_right - map.border_left) / map.block_size; in greedySnake_init()
186 (map.border_botton - map.border_top) / map.block_size; in greedySnake_init()
218 OLED_Icon_Draw(map.border_left + snake.XPos[i] * map.block_size, in draw_snake()
219 map.border_top + snake.YPos[i] * map.block_size, in draw_snake()
222 OLED_Icon_Draw(map.border_left + snake.XPos[i] * map.block_size, in draw_snake()
223 map.border_top + snake.YPos[i] * map.block_size, in draw_snake()
226 OLED_Icon_Draw(map.border_left + snake.XPos[i] * map.block_size, in draw_snake()
227 map.border_top + snake.YPos[i] * map.block_size, in draw_snake()
254 OLED_Icon_Draw(map.border_left + food.x * map.block_size, in draw_food()
[all …]
/AliOS-Things-master/components/py_engine/external/unzip/internal/
A Dzconf.in.h317 # pragma map(deflateInit_,"DEIN")
318 # pragma map(deflateInit2_,"DEIN2")
319 # pragma map(deflateEnd,"DEEND")
320 # pragma map(deflateBound,"DEBND")
321 # pragma map(inflateInit_,"ININ")
322 # pragma map(inflateInit2_,"ININ2")
323 # pragma map(inflateEnd,"INEND")
324 # pragma map(inflateSync,"INSY")
326 # pragma map(compressBound,"CMBND")
327 # pragma map(inflate_table,"INTABL")
[all …]
A Dzconf.h414 #pragma map(deflateInit_,"DEIN")
415 #pragma map(deflateInit2_,"DEIN2")
416 #pragma map(deflateEnd,"DEEND")
417 #pragma map(deflateBound,"DEBND")
418 #pragma map(inflateInit_,"ININ")
419 #pragma map(inflateInit2_,"ININ2")
420 #pragma map(inflateEnd,"INEND")
421 #pragma map(inflateSync,"INSY")
423 #pragma map(compressBound,"CMBND")
424 #pragma map(inflate_table,"INTABL")
[all …]
/AliOS-Things-master/components/freetype/src/psnames/
A Dpsmodule.c321 PS_UniMap* map; in ps_unicodes_init() local
325 map = table->maps; in ps_unicodes_init()
343 map->glyph_index = n; in ps_unicodes_init()
344 map++; in ps_unicodes_init()
361 map++; in ps_unicodes_init()
455 PS_UniMap* map; in ps_unicodes_char_next() local
462 map = table->maps + mid; in ps_unicodes_char_next()
466 result = map->glyph_index; in ps_unicodes_char_next()
473 result = map->glyph_index; in ps_unicodes_char_next()
489 map = table->maps + min; in ps_unicodes_char_next()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/contrib/ras/
A Dtif2ras.c187 Colormap.map[0] = Colormap.map[1] = Colormap.map[2] = NULL;
198 Colormap.map[0] = Colormap.map[1] = Colormap.map[2] = Map;
208 Colormap.map[0] = Colormap.map[1] = Colormap.map[2] = Map;
215 Colormap.map[0] = Colormap.map[1] = Colormap.map[2] = NULL;
232 Colormap.map[0] = red;
233 Colormap.map[1] = green;
234 Colormap.map[2] = blue;
/AliOS-Things-master/components/freetype/src/sfnt/
A Dpngshim.c188 FT_Bitmap *map = &slot->bitmap; in Load_SBit_Png() local
209 ( x_offset + metrics->width > map->width || in Load_SBit_Png()
210 y_offset + metrics->height > map->rows || in Load_SBit_Png()
212 map->pixel_mode != FT_PIXEL_MODE_BGRA ) ) in Load_SBit_Png()
266 map->width = metrics->width; in Load_SBit_Png()
267 map->rows = metrics->height; in Load_SBit_Png()
268 map->pixel_mode = FT_PIXEL_MODE_BGRA; in Load_SBit_Png()
269 map->pitch = map->width * 4; in Load_SBit_Png()
270 map->num_grays = 256; in Load_SBit_Png()
272 size = map->rows * map->pitch; in Load_SBit_Png()
[all …]
/AliOS-Things-master/components/py_engine/tests/basics/
A Dbuiltin_map.py1 print(list(map(lambda x: x & 1, range(-3, 4))))
2 print(list(map(abs, range(-3, 4))))
3 print(list(map(tuple, [[i] for i in range(-3, 4)])))
4 print(list(map(pow, range(4), range(4))))
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/
A Dzconf.h519 #pragma map(deflateInit_,"DEIN")
520 #pragma map(deflateInit2_,"DEIN2")
521 #pragma map(deflateEnd,"DEEND")
522 #pragma map(deflateBound,"DEBND")
523 #pragma map(inflateInit_,"ININ")
524 #pragma map(inflateInit2_,"ININ2")
525 #pragma map(inflateEnd,"INEND")
526 #pragma map(inflateSync,"INSY")
528 #pragma map(compressBound,"CMBND")
529 #pragma map(inflate_table,"INTABL")
[all …]
/AliOS-Things-master/components/SDL2/src/image/VisualC/external/include/
A Dzconf.h519 #pragma map(deflateInit_,"DEIN")
520 #pragma map(deflateInit2_,"DEIN2")
521 #pragma map(deflateEnd,"DEEND")
522 #pragma map(deflateBound,"DEBND")
523 #pragma map(inflateInit_,"ININ")
524 #pragma map(inflateInit2_,"ININ2")
525 #pragma map(inflateEnd,"INEND")
526 #pragma map(inflateSync,"INSY")
528 #pragma map(compressBound,"CMBND")
529 #pragma map(inflate_table,"INTABL")
[all …]

Completed in 37 milliseconds

123456789