Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 706) sorted by relevance

12345678910>>...29

/AliOS-Things-master/components/amp/libjs/
A Dinit.js1t){var n,e=t.Promise,o=e&&"resolve"in e&&"reject"in e&&"all"in e&&"race"in e&&(new e(function(t){n… argument
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/libtiff/
A Dtif_swab.c41 t = cp[1]; cp[1] = cp[0]; cp[0] = t; in TIFFSwabShort()
52 t = cp[3]; cp[3] = cp[0]; cp[0] = t; in TIFFSwabLong()
53 t = cp[2]; cp[2] = cp[1]; cp[1] = t; in TIFFSwabLong()
64 t = cp[7]; cp[7] = cp[0]; cp[0] = t; in TIFFSwabLong8()
65 t = cp[6]; cp[6] = cp[1]; cp[1] = t; in TIFFSwabLong8()
66 t = cp[5]; cp[5] = cp[2]; cp[2] = t; in TIFFSwabLong8()
67 t = cp[4]; cp[4] = cp[3]; cp[3] = t; in TIFFSwabLong8()
81 t = cp[1]; cp[1] = cp[0]; cp[0] = t; in TIFFSwabArrayOfShort()
97 t = cp[2]; cp[2] = cp[0]; cp[0] = t; in TIFFSwabArrayOfTriples()
146 t = cp[3]; cp[3] = cp[0]; cp[0] = t; in TIFFSwabFloat()
[all …]
/AliOS-Things-master/components/py_engine/tests/basics/
A Dnamedtuple1.py14 print(t)
15 print(t[0], t[1])
16 print(t.foo, t.bar)
20 print(t + t)
28 print(t == (t[0], t[1]), (t[0], t[1]) == t)
34 t[0] = 200
43 t = T(1)
76 t = T3(1, 2) variable
77 print(t.foo, t.bar)
81 t = T4(1, 2) variable
[all …]
A Dfrozenset_binop.py13 print(sorted(s), '|', sorted(t), '=', sorted(s | t))
14 print(sorted(s), '^', sorted(t), '=', sorted(s ^ t))
15 print(sorted(s), '&', sorted(t), '=', sorted(s & t))
18 u |= t
21 u ^= t
30 print(sorted(s), '==', sorted(t), '=', s == t)
31 print(sorted(s), '!=', sorted(t), '=', s != t)
32 print(sorted(s), '>', sorted(t), '=', s > t)
33 print(sorted(s), '>=', sorted(t), '=', s >= t)
34 print(sorted(s), '<', sorted(t), '=', s < t)
[all …]
A Dset_binop.py6 print(sorted(s), '|', sorted(t), '=', sorted(s | t))
7 print(sorted(s), '^', sorted(t), '=', sorted(s ^ t))
8 print(sorted(s), '&', sorted(t), '=', sorted(s & t))
9 print(sorted(s), '-', sorted(t), '=', sorted(s - t))
11 u |= t
23 print(sorted(s), '==', sorted(t), '=', s == t)
24 print(sorted(s), '!=', sorted(t), '=', s != t)
25 print(sorted(s), '>', sorted(t), '=', s > t)
26 print(sorted(s), '>=', sorted(t), '=', s >= t)
27 print(sorted(s), '<', sorted(t), '=', s < t)
[all …]
A Dsubclass_native_cmp.py6 t = mytuple((1, 2, 3)) variable
7 print(t)
8 print(t == (1, 2, 3))
9 print((1, 2, 3) == t)
11 print(t < (1, 2, 3), t < (1, 2, 4))
12 print((1, 2, 3) <= t, (1, 2, 4) < t)
/AliOS-Things-master/components/py_engine/tests/extmod/
A Duasyncio_task_done.py15 if t >= 0:
26 print(t.done())
28 print(t.done())
29 await t
30 print(t.done())
35 print(t.done())
37 print(t.done())
38 await t
39 print(t.done())
48 await t
[all …]
A Dmachine_timer.py12 t = machine.Timer(freq=1) variable
13 t.deinit()
16 t.deinit()
19 t = machine.Timer(freq=1) variable
21 t.deinit()
25 t = machine.Timer(freq=1) variable
28 t.deinit()
31 t = machine.Timer(period=1, mode=machine.Timer.ONE_SHOT, callback=lambda t: print("one-shot")) variable
33 t.deinit()
36 t = machine.Timer(period=4, mode=machine.Timer.PERIODIC, callback=lambda t: print("periodic")) variable
[all …]
A Duasyncio_cancel_task.py36 t = asyncio.create_task(task(2, True))
37 print(t.cancel())
40 t = asyncio.create_task(task(2, True))
42 print(t.cancel())
47 t = asyncio.create_task(task(2, True))
50 print(t.cancel())
57 await t
64 print(t.cancel())
68 t = asyncio.create_task(task2(True))
71 t.cancel()
[all …]
A Duasyncio_wait_task.py25 async def task(t): argument
26 print("task", t)
29 async def delay_print(t, s): argument
30 await asyncio.sleep(t)
43 t = asyncio.create_task(task(1))
44 await t
47 t = asyncio.create_task(task(2))
49 await t
52 await t
70 t = asyncio.create_task(task_raise())
[all …]
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/utils/systimer/
A Dmodule_systimer.c53 if (!t->repeat) { in timer_action()
55 clear_timer(t); in timer_action()
63 timer_wrap_t *t = (timer_wrap_t *)aos_malloc(sizeof(*t)); in setup_timer() local
67 t->timer_id = amp_task_timer_action(ms, timer_action, t, repeat); in setup_timer()
68 if (t->timer_id) { in setup_timer()
75 return t; in setup_timer()
100 if (!t) { in clear_timer()
111 t->magic = 0; in clear_timer()
112 aos_free(t); in clear_timer()
134 clear_timer(t); in native_clearTimeout()
[all …]
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/systimer/
A Dmodule_systimer.c29 timer_wrap_t *t; member
50 if (t->repeat) { in timer_action()
60 if (!t->repeat) { in timer_action()
73 timer_wrap_t *t = (timer_wrap_t *)amp_malloc(sizeof(*t)); in setup_timer() local
84 timer_link->t = t; in setup_timer()
89 return t; in setup_timer()
122 if (!t) { in clear_timer()
133 t->magic = 0; in clear_timer()
134 amp_free(t); in clear_timer()
161 clear_timer(t); in native_clearTimeout()
[all …]
/AliOS-Things-master/components/littlevgl/src/lv_misc/
A Dlv_anim.c319 } else if(t >= 408 && t < 614) { in lv_anim_path_bounce()
322 t = t * 5; /*to [0..1024] range*/ in lv_anim_path_bounce()
323 t = 1024 - t; in lv_anim_path_bounce()
325 } else if(t >= 614 && t < 819) { in lv_anim_path_bounce()
328 t = t * 5; /*to [0..1024] range*/ in lv_anim_path_bounce()
330 } else if(t >= 819 && t < 921) { in lv_anim_path_bounce()
333 t = t * 10; /*to [0..1024] range*/ in lv_anim_path_bounce()
334 t = 1024 - t; in lv_anim_path_bounce()
336 } else if(t >= 921 && t <= 1024) { in lv_anim_path_bounce()
339 t = t * 10; /*to [0..1024] range*/ in lv_anim_path_bounce()
[all …]
/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/source/
A Daes_encrypt.c77 unsigned int t; in tc_aes128_set_encrypt_key() local
91 t = s->words[i-1]; in tc_aes128_set_encrypt_key()
93 t = subword(rotword(t)) ^ rconst[i/Nk]; in tc_aes128_set_encrypt_key()
134 uint8_t t[Nb*Nk]; in mix_columns() local
140 (void) _copy(s, sizeof(t), t, sizeof(t)); in mix_columns()
149 uint8_t t[Nb * Nk]; in shift_rows() local
151 t[0] = s[0]; t[1] = s[5]; t[2] = s[10]; t[3] = s[15]; in shift_rows()
152 t[4] = s[4]; t[5] = s[9]; t[6] = s[14]; t[7] = s[3]; in shift_rows()
153 t[8] = s[8]; t[9] = s[13]; t[10] = s[2]; t[11] = s[7]; in shift_rows()
154 t[12] = s[12]; t[13] = s[1]; t[14] = s[6]; t[15] = s[11]; in shift_rows()
[all …]
A Daes_decrypt.c83 uint8_t t[Nb*Nk]; in inv_mix_columns() local
85 mult_row_column(t, s); in inv_mix_columns()
86 mult_row_column(&t[Nb], s+Nb); in inv_mix_columns()
87 mult_row_column(&t[2*Nb], s+(2*Nb)); in inv_mix_columns()
89 (void)_copy(s, sizeof(t), t, sizeof(t)); in inv_mix_columns()
120 uint8_t t[Nb*Nk]; in inv_shift_rows() local
122 t[0] = s[0]; t[1] = s[13]; t[2] = s[10]; t[3] = s[7]; in inv_shift_rows()
123 t[4] = s[4]; t[5] = s[1]; t[6] = s[14]; t[7] = s[11]; in inv_shift_rows()
124 t[8] = s[8]; t[9] = s[5]; t[10] = s[2]; t[11] = s[15]; in inv_shift_rows()
125 t[12] = s[12]; t[13] = s[9]; t[14] = s[6]; t[15] = s[3]; in inv_shift_rows()
[all …]
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/crypto/
A Daes_encrypt.c77 unsigned int t; in tc_aes128_set_encrypt_key() local
91 t = s->words[i-1]; in tc_aes128_set_encrypt_key()
93 t = subword(rotword(t)) ^ rconst[i/Nk]; in tc_aes128_set_encrypt_key()
134 uint8_t t[Nb*Nk]; in mix_columns() local
140 (void) _copy(s, sizeof(t), t, sizeof(t)); in mix_columns()
149 uint8_t t[Nb * Nk]; in shift_rows() local
151 t[0] = s[0]; t[1] = s[5]; t[2] = s[10]; t[3] = s[15]; in shift_rows()
152 t[4] = s[4]; t[5] = s[9]; t[6] = s[14]; t[7] = s[3]; in shift_rows()
153 t[8] = s[8]; t[9] = s[13]; t[10] = s[2]; t[11] = s[7]; in shift_rows()
154 t[12] = s[12]; t[13] = s[1]; t[14] = s[6]; t[15] = s[11]; in shift_rows()
[all …]
A Daes_decrypt.c83 uint8_t t[Nb*Nk]; in inv_mix_columns() local
85 mult_row_column(t, s); in inv_mix_columns()
86 mult_row_column(&t[Nb], s+Nb); in inv_mix_columns()
87 mult_row_column(&t[2*Nb], s+(2*Nb)); in inv_mix_columns()
89 (void)_copy(s, sizeof(t), t, sizeof(t)); in inv_mix_columns()
120 uint8_t t[Nb*Nk]; in inv_shift_rows() local
122 t[0] = s[0]; t[1] = s[13]; t[2] = s[10]; t[3] = s[7]; in inv_shift_rows()
123 t[4] = s[4]; t[5] = s[1]; t[6] = s[14]; t[7] = s[11]; in inv_shift_rows()
124 t[8] = s[8]; t[9] = s[5]; t[10] = s[2]; t[11] = s[15]; in inv_shift_rows()
125 t[12] = s[12]; t[13] = s[9]; t[14] = s[6]; t[15] = s[3]; in inv_shift_rows()
[all …]
/AliOS-Things-master/components/ble_host/bt_host/port/core/
A Dtimer.c34 struct mtimer *timer_new, *t; in mtimer_start() local
75 for (t = g_timer_list; t != NULL; t = t->next) { in mtimer_start()
78 if (t->next == NULL || t->next->time > timer_new->time) { in mtimer_start()
79 if (t->next != NULL) { in mtimer_start()
84 t->next = timer_new; in mtimer_start()
95 struct mtimer *prev_t, *t; in mtimer_stop() local
101 for (t = g_timer_list, prev_t = NULL; t != NULL; prev_t = t, t = t->next) { in mtimer_stop()
102 if (t == timer) { in mtimer_stop()
112 if (t->next != NULL) { in mtimer_stop()
113 t->next->time += t->time; in mtimer_stop()
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/
A Dtest_util.h225 t.shape, t.traversal_order, t.format, t.block_size, t.block_map); in AddConstSparseInput()
297 t.shape, t.traversal_order, t.format, t.block_size, t.block_map);
636 bool is_quantized = (t.min != 0 || t.max != 0 || t.scale != 0);
641 if (t.min != 0 || t.max != 0) {
643 std::tie(t.scale, t.zero_point) =
644 QuantizationParams<uint8_t>(t.min, t.max);
646 std::tie(t.scale, t.zero_point) =
647 QuantizationParams<int8_t>(t.min, t.max);
649 std::tie(t.scale, t.zero_point) =
650 QuantizationParams<int32_t>(t.min, t.max);
[all …]
/AliOS-Things-master/components/freetype/src/gzip/
A Dinfblock.c204 if (t > n) t = n; in inflate_blocks()
205 if (t > m) t = m; in inflate_blocks()
207 p += t; n -= t; in inflate_blocks()
208 q += t; m -= t; in inflate_blocks()
220 if ((t & 0x1f) > 29 || ((t >> 5) & 0x1f) > 29) in inflate_blocks()
228 t = 258 + (t & 0x1f) + ((t >> 5) & 0x1f); in inflate_blocks()
252 r = t; in inflate_blocks()
270 NEEDBITS(t) in inflate_blocks()
289 if (i + j > 258 + (t & 0x1f) + ((t >> 5) & 0x1f) || in inflate_blocks()
315 t = inflate_trees_dynamic(257 + (t & 0x1f), 1 + ((t >> 5) & 0x1f), in inflate_blocks()
[all …]
/AliOS-Things-master/components/py_engine/engine/lib/libm_dbl/
A Dsinh.c11 double t, h, absx; in sinh() local
23 t = expm1(absx); in sinh()
29 return h*(2*t - t*t/(t+1)); in sinh()
32 return h*(t + t/(t+1)); in sinh()
37 t = 2*h*__expo2(absx); in sinh()
38 return t; in sinh()
A Dcosh.c11 double t; in cosh() local
25 t = expm1(x); in cosh()
26 return 1 + t*t/(2*(1+t)); in cosh()
31 t = exp(x); in cosh()
33 return 0.5*(t + 1/t); in cosh()
38 t = __expo2(x); in cosh()
39 return t; in cosh()
/AliOS-Things-master/components/py_engine/engine/extmod/uasyncio/
A Dcore.py61 def sleep(t): argument
144 t = Task(coro, globals())
145 _task_queue.push_head(t)
146 return t
160 if t:
171 cur_task = t
174 exc = t.data
182 t.data = None
188 if t is main_task:
192 if t.state:
[all …]
/AliOS-Things-master/components/lwip/lwip2.0.0/core/
A Dtimeouts.c244 for (t = next_timeout; t != NULL; t = t->next) { in sys_timeout_debug()
245 timeout->time -= t->time; in sys_timeout_debug()
246 if (t->next == NULL || t->next->time > timeout->time) { in sys_timeout_debug()
247 if (t->next != NULL) { in sys_timeout_debug()
257 t->next = timeout; in sys_timeout_debug()
275 struct sys_timeo *prev_t, *t; in sys_untimeout() local
281 for (t = next_timeout, prev_t = NULL; t != NULL; prev_t = t, t = t->next) { in sys_untimeout()
282 if ((t->h == handler) && (t->arg == arg)) { in sys_untimeout()
286 next_timeout = t->next; in sys_untimeout()
291 if (t->next != NULL) { in sys_untimeout()
[all …]
/AliOS-Things-master/components/py_engine/engine/lib/libm/
A Dmath.c261 w = (t*t)*(0.5f - t*(0.333333333333f - t*0.25f)); in powf()
368 v = (p_l-(t-p_h))*lg2 + t*lg2_l; in powf()
371 t = z*z; in powf()
372 t1 = z - t*(P1+t*(P2+t*(P3+t*(P4+t*P5)))); in powf()
537 t = k; in expm1f()
555 e = hxs*((r1-t)/(6.0f - x*t)); in expm1f()
688 float t; in coshf() local
702 return 1 + t*t/(2*(1+t)); in coshf()
708 return 0.5f*(t + 1/t); in coshf()
742 return h*(2*t - t*t/(t+1)); in sinhf()
[all …]

Completed in 47 milliseconds

12345678910>>...29