Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 25 of 137) sorted by relevance

123456

/AliOS-Things-master/components/py_engine/tests/extmod/
A Dutimeq1.py106 diff = ticks_diff(l[i + 1][0], l[i][0]) variable
107 assert diff > 0
116 diff = ticks_diff(l[1][0], l[0][0])
117 dprint(diff, diff > 0)
118 return diff
122 diff = edge_case(MODULO_HALF - 1, 0) variable
123 assert diff == MODULO_HALF - 1
136 diff = edge_case(MODULO_HALF, 0) variable
137 assert diff == -MODULO_HALF
142 diff = edge_case(MODULO_HALF + 1, 0) variable
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/
A Drandom_utils.h41 int diff; in VP8RandomBits2() local
43 diff = rg->tab_[rg->index1_] - rg->tab_[rg->index2_]; in VP8RandomBits2()
44 if (diff < 0) diff += (1u << 31); in VP8RandomBits2()
45 rg->tab_[rg->index1_] = diff; in VP8RandomBits2()
49 diff = (int)((uint32_t)diff << 1) >> (32 - num_bits); in VP8RandomBits2()
50 diff = (diff * amp) >> VP8_RANDOM_DITHER_FIX; // restrict range in VP8RandomBits2()
51 diff += 1 << (num_bits - 1); // shift back to 0.5-center in VP8RandomBits2()
52 return diff; in VP8RandomBits2()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/cmsis/CMSIS/NN/Source/SoftmaxFunctions/
A Darm_softmax_u8.c67 int32_t diff = 0; in arm_softmax_u8() local
72 diff = input[col] - max; in arm_softmax_u8()
73 if (diff >= diff_min) in arm_softmax_u8()
75 sum += DIV_POW2(EXP_ON_NEG(MUL_SAT(diff * mask, mult)), ACCUM_BITS); in arm_softmax_u8()
85 diff = input[col] - max; in arm_softmax_u8()
86 if (diff >= diff_min) in arm_softmax_u8()
89 … DIV_POW2(MUL_SAT(shifted_scale, EXP_ON_NEG(MUL_SAT(diff * mask, mult))), bits_over_unit); in arm_softmax_u8()
A Darm_softmax_s8.c143 const int32_t diff = input[tail_idx + i] - max; in arm_softmax_s8() local
144 if (diff >= diff_min) in arm_softmax_s8()
146 sum += DIV_POW2(EXP_ON_NEG(MUL_SAT(diff * mask, mult)), ACCUM_BITS); in arm_softmax_s8()
191 int32_t diff = input[tail_idx + i] - max; in arm_softmax_s8() local
192 if (diff >= diff_min) in arm_softmax_s8()
223 int32_t diff = 0; in arm_softmax_s8()
228 diff = input[col] - max; in arm_softmax_s8()
229 if (diff >= diff_min) in arm_softmax_s8()
231 sum += DIV_POW2(EXP_ON_NEG(MUL_SAT(diff * mask, mult)), ACCUM_BITS); in arm_softmax_s8()
241 diff = input[col] - max; in arm_softmax_s8()
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/SoftmaxFunctions/
A Darm_softmax_u8.c67 int32_t diff = 0; in arm_softmax_u8() local
72 diff = input[col] - max; in arm_softmax_u8()
73 if (diff >= diff_min) in arm_softmax_u8()
75 sum += DIV_POW2(EXP_ON_NEG(MUL_SAT(diff * mask, mult)), ACCUM_BITS); in arm_softmax_u8()
85 diff = input[col] - max; in arm_softmax_u8()
86 if (diff >= diff_min) in arm_softmax_u8()
89 … DIV_POW2(MUL_SAT(shifted_scale, EXP_ON_NEG(MUL_SAT(diff * mask, mult))), bits_over_unit); in arm_softmax_u8()
A Darm_softmax_s8.c143 const int32_t diff = input[tail_idx + i] - max; in arm_softmax_s8() local
144 if (diff >= diff_min) in arm_softmax_s8()
146 sum += DIV_POW2(EXP_ON_NEG(MUL_SAT(diff * mask, mult)), ACCUM_BITS); in arm_softmax_s8()
191 int32_t diff = input[tail_idx + i] - max; in arm_softmax_s8() local
192 if (diff >= diff_min) in arm_softmax_s8()
223 int32_t diff = 0; in arm_softmax_s8()
228 diff = input[col] - max; in arm_softmax_s8()
229 if (diff >= diff_min) in arm_softmax_s8()
231 sum += DIV_POW2(EXP_ON_NEG(MUL_SAT(diff * mask, mult)), ACCUM_BITS); in arm_softmax_s8()
241 diff = input[col] - max; in arm_softmax_s8()
[all …]
/AliOS-Things-master/components/lwip/lwip2.0.0/core/
A Dtimeouts.c208 u32_t now, diff; in sys_timeout_debug() local
218 diff = 0; in sys_timeout_debug()
221 diff = now - timeouts_last_time; in sys_timeout_debug()
227 timeout->time = msecs + diff; in sys_timeout_debug()
317 u32_t diff; in sys_check_timeouts() local
325 diff = now - timeouts_last_time; in sys_check_timeouts()
334 diff -= tmptimeout->time; in sys_check_timeouts()
383 u32_t diff; in sys_timeouts_sleeptime() local
387 diff = sys_now() - timeouts_last_time; in sys_timeouts_sleeptime()
388 if (diff > next_timeout->time) { in sys_timeouts_sleeptime()
[all …]
/AliOS-Things-master/kernel/rhino/
A Dk_stats.c188 hr_timer_t diff; in intrpt_disable_measure_stop() local
193 diff = HR_COUNT_GET() - g_intrpt_disable_time_start; in intrpt_disable_measure_stop()
195 if (g_intrpt_disable_max_time < diff) { in intrpt_disable_measure_stop()
196 g_intrpt_disable_max_time = diff; in intrpt_disable_measure_stop()
199 if (g_cur_intrpt_disable_max_time < diff) { in intrpt_disable_measure_stop()
200 g_cur_intrpt_disable_max_time = diff; in intrpt_disable_measure_stop()
209 hr_timer_t diff; in krhino_overhead_measure() local
216 diff = m2 - m1; in krhino_overhead_measure()
219 g_sys_measure_waste = diff; in krhino_overhead_measure()
/AliOS-Things-master/components/freetype/src/cff/
A Dcf2blues.c286 CF2_Fixed flatFamilyEdge, diff; in cf2_blues_init() local
304 diff = cf2_fixedAbs( flatEdge - flatFamilyEdge ); in cf2_blues_init()
306 if ( diff < minDiff && diff < csUnitsPerPixel ) in cf2_blues_init()
309 minDiff = diff; in cf2_blues_init()
311 if ( diff == 0 ) in cf2_blues_init()
322 diff = cf2_fixedAbs( flatEdge - flatFamilyEdge ); in cf2_blues_init()
324 if ( diff < minDiff && diff < csUnitsPerPixel ) in cf2_blues_init()
345 diff = cf2_fixedAbs( flatEdge - flatFamilyEdge ); in cf2_blues_init()
347 if ( diff < minDiff && diff < csUnitsPerPixel ) in cf2_blues_init()
350 minDiff = diff; in cf2_blues_init()
[all …]
/AliOS-Things-master/components/cplusplus/example/cpp_standard/
A Dtimed_mutex.cpp20 chrono::duration<double, ratio<1, 1000>> diff = end - start; in task0_entry() local
23 << diff.count() << " ms" << endl; in task0_entry()
33 chrono::duration<float, ratio<1, 1000>> diff = end - start; in task1_entry() local
35 << diff.count() << " ms" << endl; in task1_entry()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/reference/
A Dl2normalization.h68 int32_t diff = input_data[depth * i + c] - input_zero_point; in L2Normalization() local
69 square_l2_norm += diff * diff; in L2Normalization()
76 int32_t diff = input_data[depth * i + c] - input_zero_point; in L2Normalization() local
78 128 * diff, inv_l2norm_multiplier, inv_l2norm_shift); in L2Normalization()
A Dround.h28 auto diff = value - floor_val; in RoundToNearest() local
29 if ((diff < 0.5f) || in RoundToNearest()
30 ((diff == 0.5f) && (static_cast<int>(floor_val) % 2 == 0))) { in RoundToNearest()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/extras/
A Dget_disto.c66 const uint32_t diff = (ptr[x] * factor + (1 << 15)) >> 16; in RescalePlane() local
67 ptr[x] = diff; in RescalePlane()
82 const int diff = abs(ptr1[x] - ptr2[x]); in DiffScaleChannel() local
83 if (diff > max) max = diff; in DiffScaleChannel()
84 ptr1[x] = diff; in DiffScaleChannel()
182 int diff = (int)(255 * (1. - ssim)); in SSIMScaleChannel() local
183 if (diff < 0) { in SSIMScaleChannel()
184 diff = 0; in SSIMScaleChannel()
185 } else if (diff > max) { in SSIMScaleChannel()
186 max = diff; in SSIMScaleChannel()
[all …]
/AliOS-Things-master/components/py_engine/engine/py/
A Dmalloc.c151 size_t diff = new_num_bytes - old_num_bytes; in m_realloc() local
152 MP_STATE_MEM(total_bytes_allocated) += diff; in m_realloc()
153 MP_STATE_MEM(current_bytes_allocated) += diff; in m_realloc()
179 size_t diff = new_num_bytes - old_num_bytes; in m_realloc_maybe() local
180 MP_STATE_MEM(total_bytes_allocated) += diff; in m_realloc_maybe()
181 MP_STATE_MEM(current_bytes_allocated) += diff; in m_realloc_maybe()
/AliOS-Things-master/components/littlevgl/src/lv_misc/
A Dlv_anim.c312 int32_t diff = (a->end - a->start); in lv_anim_path_bounce() local
324 diff = diff / 6; in lv_anim_path_bounce()
329 diff = diff / 6; in lv_anim_path_bounce()
335 diff = diff / 16; in lv_anim_path_bounce()
340 diff = diff / 16; in lv_anim_path_bounce()
348 new_value = (int32_t)step * diff; in lv_anim_path_bounce()
/AliOS-Things-master/components/mbedtls/library/
A Dnist_kw.c66 volatile unsigned char diff = 0; in mbedtls_nist_kw_safer_memcmp() local
74 diff |= x ^ y; in mbedtls_nist_kw_safer_memcmp()
77 return( diff ); in mbedtls_nist_kw_safer_memcmp()
395 unsigned char diff, bad_padding = 0; in mbedtls_nist_kw_unwrap() local
424 diff = mbedtls_nist_kw_safer_memcmp( NIST_KW_ICV1, A, KW_SEMIBLOCK_LENGTH ); in mbedtls_nist_kw_unwrap()
426 if( diff != 0 ) in mbedtls_nist_kw_unwrap()
475 if( diff != 0 ) in mbedtls_nist_kw_unwrap()
495 for( diff = 0, i = 0; i < KW_SEMIBLOCK_LENGTH; i++ ) in mbedtls_nist_kw_unwrap()
498 diff |= output[*out_len - KW_SEMIBLOCK_LENGTH + i]; in mbedtls_nist_kw_unwrap()
503 if( diff != 0 ) in mbedtls_nist_kw_unwrap()
[all …]
/AliOS-Things-master/components/SDL2/src/gfx/Other Builds/
A DQNX.diff1 diff -r -u ./autogen.sh ./autogen.sh
14 diff -r -u ./configure.in ./configure.in
39 diff -r -u ./Test/autogen.sh ./Test/autogen.sh
52 diff -r -u ./Test/configure.in ./Test/configure.in
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/
A Dstrupr.c25 const u8 diff = 'a' - 'A'; in _strupr() local
31 *pStr -= diff; in _strupr()
/AliOS-Things-master/components/linkkit/dev_model/deprecated/
A Dimpl_ntp.c47 uint32_t diff = 0; in linkkit_ntp_time_reply() local
103 diff = (rx - tx) >> 1; in linkkit_ntp_time_reply()
104 if (diff >= 1000000) { in linkkit_ntp_time_reply()
111 tx += diff; in linkkit_ntp_time_reply()
/AliOS-Things-master/components/mbedtls/programs/hash/
A Dgeneric_sum.c104 char diff; in generic_check() local
157 diff = 0; in generic_check()
159 diff |= line[i] ^ buf[i]; in generic_check()
161 if( diff != 0 ) in generic_check()
/AliOS-Things-master/components/py_engine/engine/lib/littlefs/
A Dlfs2.c44 diff = lfs2_min(diff, pcache->size - (off-pcache->off)); in lfs2_bd_read()
54 diff = lfs2_min(diff, pcache->off-off); in lfs2_bd_read()
61 diff = lfs2_min(diff, rcache->size - (off-rcache->off)); in lfs2_bd_read()
71 diff = lfs2_min(diff, rcache->off-off); in lfs2_bd_read()
77 diff = lfs2_aligndown(diff, lfs2->cfg->read_size); in lfs2_bd_read()
84 off += diff; in lfs2_bd_read()
635 memset((uint8_t*)gbuffer + diff, 0, gsize - diff); in lfs2_dir_getslice()
667 diff = lfs2_min(diff, pcache->size - (off-pcache->off)); in lfs2_dir_getread()
677 diff = lfs2_min(diff, pcache->off-off); in lfs2_dir_getread()
684 diff = lfs2_min(diff, rcache->size - (off-rcache->off)); in lfs2_dir_getread()
[all …]
A Dlfs1.c28 data += diff; in lfs1_cache_read()
29 off += diff; in lfs1_cache_read()
30 size -= diff; in lfs1_cache_read()
41 data += diff; in lfs1_cache_read()
42 off += diff; in lfs1_cache_read()
43 size -= diff; in lfs1_cache_read()
55 data += diff; in lfs1_cache_read()
56 off += diff; in lfs1_cache_read()
57 size -= diff; in lfs1_cache_read()
167 off += diff; in lfs1_cache_prog()
[all …]
/AliOS-Things-master/components/littlefs/src/littlefs-v220/
A Dlfs.c57 diff = lfs_min(diff, pcache->size - (off-pcache->off)); in lfs_bd_read()
67 diff = lfs_min(diff, pcache->off-off); in lfs_bd_read()
74 diff = lfs_min(diff, rcache->size - (off-rcache->off)); in lfs_bd_read()
84 diff = lfs_min(diff, rcache->off-off); in lfs_bd_read()
90 diff = lfs_aligndown(diff, lfs->cfg->read_size); in lfs_bd_read()
97 off += diff; in lfs_bd_read()
586 memset((uint8_t*)gbuffer + diff, 0, gsize - diff); in lfs_dir_getslice()
618 diff = lfs_min(diff, pcache->size - (off-pcache->off)); in lfs_dir_getread()
628 diff = lfs_min(diff, pcache->off-off); in lfs_dir_getread()
635 diff = lfs_min(diff, rcache->size - (off-rcache->off)); in lfs_dir_getread()
[all …]
/AliOS-Things-master/components/ble_host/bt_host/port/core/
A Dtimer.c47 diff = 0; in mtimer_start()
50 diff = now - timeouts_last_time; in mtimer_start()
60 timer_new->time = msecs + diff; in mtimer_start()
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/core/src/
A DInstanceProfileCredentialsProvider.cc46 auto diff = in checkExpiry() local
49 return (diff > 0 - 60); in checkExpiry()

Completed in 53 milliseconds

123456