Home
last modified time | relevance | path

Searched refs:new_pos (Results 1 – 4 of 4) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dobjstringio.c87 mp_uint_t new_pos = o->pos + size; in stringio_write() local
88 if (new_pos < size) { in stringio_write()
94 if (new_pos > o->vstr->alloc) { in stringio_write()
105 o->pos = new_pos; in stringio_write()
106 if (new_pos > o->vstr->len) { in stringio_write()
107 o->vstr->len = new_pos; in stringio_write()
127 mp_uint_t new_pos = ref + s->offset; in stringio_ioctl() local
131 if (new_pos > ref) { in stringio_ioctl()
134 new_pos = 0; in stringio_ioctl()
136 } else if (new_pos < ref) { in stringio_ioctl()
[all …]
/AliOS-Things-master/components/ota/2ndboot/updater/
A Dnbpatch.c96 long new_pos = 0; in ota_nbpatch() local
188 while (new_pos < new_size) { in ota_nbpatch()
201 if (new_pos + ctrl[0] > new_size){ in ota_nbpatch()
206 read_len = xz_read(&diffhandler, &db, diff_dec, patch, new_buf + new_pos, ctrl[0]); in ota_nbpatch()
233 new_buf[new_pos + i] += old_buf[i - base_pos]; in ota_nbpatch()
236 crc16_update(&crc_ctx, new_buf + new_pos, ctrl[0]); in ota_nbpatch()
238 new_pos += ctrl[0]; in ota_nbpatch()
241 if (new_pos + ctrl[1] > new_size) { in ota_nbpatch()
246 read_len = xz_read(&extrahandler, &eb, extra_dec, patch, new_buf + new_pos, ctrl[1]); in ota_nbpatch()
251 crc16_update(&crc_ctx, new_buf + new_pos, ctrl[1]); in ota_nbpatch()
[all …]
/AliOS-Things-master/components/fatfs/src/
A Dfatfs_vfs.c239 int64_t cur_pos, new_pos, size; in fatfs_vfs_lseek() local
245 new_pos = 0; in fatfs_vfs_lseek()
249 new_pos = off; in fatfs_vfs_lseek()
252 new_pos = cur_pos + off; in fatfs_vfs_lseek()
255 new_pos = size + off; in fatfs_vfs_lseek()
260 if ((ret = f_lseek(f, new_pos)) != FR_OK) { in fatfs_vfs_lseek()
265 return new_pos; in fatfs_vfs_lseek()
/AliOS-Things-master/components/py_engine/tests/perf_bench/
A Dbm_hexiom.py418 new_pos = pos.clone()
419 play_move(new_pos, move)
421 while constraint_pass(new_pos, move[0]):
423 cur_status = solved(new_pos, output)
427 ret = solve_step(new_pos, strategy, order, output)

Completed in 6 milliseconds