/AliOS-Things-master/components/py_engine/tests/basics/ |
A D | builtin_abs_intbig.py | 4 print(abs(123456789012345678901234567890)) 5 print(abs(-123456789012345678901234567890)) 8 print(abs(-0x3fffffff - 1)) 9 print(abs(-0x3fffffffffffffff - 1)) 13 print(abs(i - 1))
|
A D | builtin_abs.py | 3 print(abs(False)) 4 print(abs(True)) 5 print(abs(1)) 6 print(abs(-1))
|
A D | builtin_override.py | 7 builtins.abs = lambda x: x + 1 12 print(abs(1))
|
A D | builtin_map.py | 2 print(list(map(abs, range(-3, 4))))
|
/AliOS-Things-master/components/freetype/src/tools/ |
A D | test_trig.c | 33 if ( abs( f2-f1 ) > THRESHOLD ) in test_cos() 59 if ( abs( f2-f1 ) > THRESHOLD ) in test_sin() 85 if ( abs( f2-f1 ) > THRESHOLD ) in test_tan() 121 if ( abs( i - j ) > 1 ) in test_atan2() 150 if ( abs( v.x-c2 ) > THRESHOLD || in test_unit() 151 abs( v.y-s2 ) > THRESHOLD ) in test_unit() 180 if ( abs( l2-l ) > THRESHOLD ) in test_length() 230 if ( abs( c4 - v.x ) > THRESHOLD || in test_rotate() 231 abs( s4 - v.y ) > THRESHOLD ) in test_rotate()
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/ |
A D | quantization_util.h | 67 std::abs(qmin_double) + std::abs(rmin / scale); in ChooseQuantizationParams() 69 std::abs(qmax_double) + std::abs(rmax / scale); in ChooseQuantizationParams()
|
/AliOS-Things-master/components/py_engine/tests/wipy/ |
A D | rtc.py | 71 print(abs(left - 1000) <= 10) 80 print(abs(left - 500) <= 15) 86 print(abs(left - 44000) <= 90)
|
A D | time.py | 83 print(abs(time.ticks_diff(t1, t2) - 2) <= 1) 88 print(abs(time.ticks_diff(t1, t2) - 50) <= 1)
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/ |
A D | portable_type_to_tflitetype.h | 24 #ifdef abs 25 #undef abs
|
/AliOS-Things-master/components/SDL2/src/core/alios/ |
A D | SDL_evdev.c | 122 fx = (float)events->abs.x / (float)800.0f; in uinput_callback() 123 fy = (float)events->abs.y / (float)480.0f; in uinput_callback() 148 … SDL_SendMouseMotion(mouse->focus, mouse->mouseID, SDL_FALSE, events->abs.x, events->abs.y); in uinput_callback() 156 printf("uintput callback touch point(%d,%d)", events->abs.x, events->abs.y); in uinput_callback()
|
/AliOS-Things-master/components/py_engine/tests/float/ |
A D | complex1.py | 53 print(abs(1j)) 54 print("%.5g" % abs(1j + 2))
|
A D | builtin_float_abs.py | 13 print(val, abs(float(val)))
|
A D | string_format_modulo2_intbig.py | 13 check = abs(float(s) - num)
|
A D | string_format_modulo2.py | 13 check = abs(float(s) - num)
|
A D | float_divmod_relaxed.py | 10 print(div == x // y, mod == x % y, abs(div * y + mod - x) < 1e-6)
|
A D | float_divmod.py | 8 print(div == x // y, mod == x % y, abs(div * y + mod - x) < 1e-15)
|
/AliOS-Things-master/components/sensor/drv/ |
A D | drv_mag_rohm_bm1422a.c | 397 if(diff_x > abs(data_temp)) in drv_mag_rohm_bm1422a_offset_adjustment() 400 diff_x = abs(data_temp); in drv_mag_rohm_bm1422a_offset_adjustment() 422 if(diff_x > abs(data_temp)) in drv_mag_rohm_bm1422a_offset_adjustment() 425 diff_x = abs(data_temp); in drv_mag_rohm_bm1422a_offset_adjustment() 447 if(diff_x > abs(data_temp)) in drv_mag_rohm_bm1422a_offset_adjustment() 450 diff_x = abs(data_temp); in drv_mag_rohm_bm1422a_offset_adjustment()
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/ |
A D | cost.c | 337 const int v = abs(res->coeffs[n]); in GetResidualCost_C() 344 const int v = abs(res->coeffs[n]); in GetResidualCost_C()
|
/AliOS-Things-master/components/py_engine/tests/perf_bench/ |
A D | bm_fft.py | 66 fft_ok = all(abs(f) < 1e-3 for f in fft) 69 fft_inv_ok = all(abs(f) < 1e-3 for f in fft_inv)
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dec/ |
A D | buffer_dec.c | 52 const int y_stride = abs(buf->y_stride); in CheckDecBuffer() 53 const int u_stride = abs(buf->u_stride); in CheckDecBuffer() 54 const int v_stride = abs(buf->v_stride); in CheckDecBuffer() 55 const int a_stride = abs(buf->a_stride); in CheckDecBuffer() 76 const int stride = abs(buf->stride); in CheckDecBuffer()
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/examples/ |
A D | anim_diff.c | 52 return (abs(src_r * src_a - dst_r * dst_a) <= (max_allowed_diff * 255)) && in PixelsAreSimilar() 53 (abs(src_g * src_a - dst_g * dst_a) <= (max_allowed_diff * 255)) && in PixelsAreSimilar() 54 (abs(src_b * src_a - dst_b * dst_a) <= (max_allowed_diff * 255)) && in PixelsAreSimilar() 55 (abs(src_a - dst_a) <= max_allowed_diff); in PixelsAreSimilar()
|
/AliOS-Things-master/components/py_engine/tests/wipy/skipped/ |
A D | rtc_irq.py | 71 print(abs(t1 - t0 - 500) < 20) 82 print(abs(t1 - t0 - (500 * rtc_irq_count)) < 25)
|
/AliOS-Things-master/components/py_engine/engine/tools/mpremote/mpremote/ |
A D | pyboardextended.py | 386 self.wr_s8(-abs(er.errno)) 402 self.wr_s8(-abs(er.errno)) 428 self.wr_s8(-abs(er.errno)) 482 ret = -abs(er.errno) 495 ret = -abs(er.errno)
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/ |
A D | micro_utils.h | 113 *scale = fmaxf(std::abs(min), std::abs(max)) / std::numeric_limits<T>::max(); in SymmetricQuantizeCalculateScales()
|
/AliOS-Things-master/components/uvoice/audio/ |
A D | audio_common.c | 68 ampl_sum += abs(buffer[i]); in pcm_to_decibel()
|