/AliOS-Things-master/components/py_engine/tests/basics/ |
A D | builtin_minmax.py | 3 min 9 print(min(0,1)) 10 print(min(1,0)) 11 print(min(0,-1)) 12 print(min(-1,0)) 19 print(min([1,2,4,0,-1,2])) 24 print(min(lst, key=lambda x:x)) 25 print(min(lst, key=lambda x:-x)) 26 print(min(1, 2, 3, 4, key=lambda x:-x)) 35 min([]) [all …]
|
/AliOS-Things-master/components/py_engine/tests/float/ |
A D | builtin_float_minmax.py | 3 min 9 print(min(0, 1.0)) 10 print(min(1.0, 0)) 11 print(min(0, -1.0)) 12 print(min(-1.0, 0)) 19 print(min(1.5, -1.5)) 20 print(min(-1.5, 1.5)) 25 print(min([1, 2.9, 4, 0, -1, 2])) 28 print(min([1, 2.9, 4, 6.5, -1, 2])) 30 print(min([1, 2.9, 4, -6.5, -1, 2]))
|
/AliOS-Things-master/components/freetype/src/pfr/ |
A D | pfrcmap.c | 70 FT_UInt min = 0; in pfr_cmap_char_index() local 74 while ( min < max ) in pfr_cmap_char_index() 80 mid = min + ( max - min ) / 2; in pfr_cmap_char_index() 87 min = mid + 1; in pfr_cmap_char_index() 105 FT_UInt min = 0; in pfr_cmap_char_next() local 111 while ( min < max ) in pfr_cmap_char_next() 113 mid = min + ( ( max - min ) >> 1 ); in pfr_cmap_char_next() 130 min = mid+1; in pfr_cmap_char_next() 138 if ( min < cmap->num_chars ) in pfr_cmap_char_next() 140 gchar = cmap->chars + min; in pfr_cmap_char_next() [all …]
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/ |
A D | test_util.h | 40 int UniformRandomInt(int min, int max); 43 float UniformRandomFloat(float min, float max); 60 void FillRandom(std::vector<float>* vec, float min, float max); 64 typename std::vector<T>::iterator end_it, T min, T max) { in FillRandom() argument 68 std::uniform_int_distribution<rand_type> dist(min, max); in FillRandom() 76 void FillRandom(std::vector<T>* vec, T min, T max) { in FillRandom() argument 77 return FillRandom(std::begin(*vec), std::end(*vec), min, max); in FillRandom() 83 FillRandom(vec, std::numeric_limits<T>::min(), std::numeric_limits<T>::max()); in FillRandom() 97 FillRandom(base_it, left_it, std::numeric_limits<T>::min(), sides_max); in FillRandomSkyscraper() 99 FillRandom(right_it, base_it + depth, std::numeric_limits<T>::min(), in FillRandomSkyscraper()
|
A D | common.h | 62 using std::min; in ActivationFunctionWithMinMax() 198 const int right_shift = std::min(shift, 0); in MultiplyByQuantizedMultiplier4Rows() 292 double step = (max - min) / (num - 1); in gen_lut() 307 table[num - 1] = std::min<double>( in gen_lut() 321 float step = (max - min) / (num - 1); in gen_lut() 336 table[num - 1] = std::min<float>( in gen_lut() 403 return static_cast<std::int32_t>(std::min( in SaturatingAddNonGemmlowp() 430 std::min(static_cast<int32_t>(32767), in SaturatingSub() 439 return static_cast<std::int32_t>(std::min( in SaturatingSub() 462 const IntegerType min = in SaturatingRoundingMultiplyByPOTParam() local [all …]
|
/AliOS-Things-master/components/amp_adapter/platform/linux/peripheral/ |
A D | aos_hal_rtc.c | 16 time_save.min = 20; in aos_hal_rtc_init() 28 time->min = time_save.min; in aos_hal_rtc_get_time() 39 time_save.min = time->min; in aos_hal_rtc_set_time() 51 time_save.min = 0; in aos_hal_rtc_finalize()
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testautomation_sdltest.c | 95 Sint64 min, max; in sdltest_randomNumber() local 103 min = 0 - (1 << 7); in sdltest_randomNumber() 114 min = 0 - (1 << 15); in sdltest_randomNumber() 125 min = 0 - ((Sint64)1 << 31); in sdltest_randomNumber() 1047 Sint32 min, max; in sdltest_randomIntegerInRange() local 1066 max = min + 1; in sdltest_randomIntegerInRange() 1073 max = min; in sdltest_randomIntegerInRange() 1076 …SDLTest_AssertCheck(min == result, "Validated returned value; expected: %d, got: %d", min, result); in sdltest_randomIntegerInRange() 1079 min = 0; in sdltest_randomIntegerInRange() 1093 min = long_min; in sdltest_randomIntegerInRange() [all …]
|
/AliOS-Things-master/components/freetype/src/psnames/ |
A D | psmodule.c | 406 min = table->maps; in ps_unicodes_char_index() 407 max = min + table->num_maps - 1; in ps_unicodes_char_index() 409 while ( min <= max ) in ps_unicodes_char_index() 414 mid = min + ( ( max - min ) >> 1 ); in ps_unicodes_char_index() 427 if ( min == max ) in ps_unicodes_char_index() 431 min = mid + 1; in ps_unicodes_char_index() 452 FT_UInt min = 0; in ps_unicodes_char_next() local 459 while ( min < max ) in ps_unicodes_char_next() 461 mid = min + ( ( max - min ) >> 1 ); in ps_unicodes_char_next() 476 min = mid + 1; in ps_unicodes_char_next() [all …]
|
A D | pstables.h | 4080 int count, min, max; in ft_get_adobe_glyph_index() local 4091 min = 0; in ft_get_adobe_glyph_index() 4094 while ( min < max ) in ft_get_adobe_glyph_index() 4096 int mid = ( min + max ) >> 1; in ft_get_adobe_glyph_index() 4110 min = mid + 1; in ft_get_adobe_glyph_index()
|
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/ |
A D | inftrees.c | 42 unsigned min, max; /* minimum and maximum code lengths */ local 126 for (min = 1; min < max; min++) 127 if (count[min] != 0) break; 128 if (root < min) root = min; 200 len = min; /* starting code length */ 233 min = fill; /* save offset to next table */ 264 next += min; /* here min is 1 << curr */
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/ |
A D | micro_utils.h | 38 std::max(static_cast<int32_t>(std::numeric_limits<T>::min()), result); in FloatToQuantizedType() 40 std::min(static_cast<int32_t>(std::numeric_limits<T>::max()), result); in FloatToQuantizedType() 48 std::max(static_cast<int32_t>(std::numeric_limits<T>::min() + 1), result); in FloatToSymmetricQuantizedType() 50 std::min(static_cast<int32_t>(std::numeric_limits<T>::max()), result); in FloatToSymmetricQuantizedType() 107 float min = 0; in SymmetricQuantizeCalculateScales() local 110 min = fminf(min, values[i]); in SymmetricQuantizeCalculateScales() 113 *scale = fmaxf(std::abs(min), std::abs(max)) / std::numeric_limits<T>::max(); in SymmetricQuantizeCalculateScales() 119 quantized_value = fmaxf(std::numeric_limits<T>::min() + 1, quantized_value); in SymmetricQuantizeCalculateScales()
|
A D | micro_utils.cc | 58 float min = 0; in SignedSymmetricPerChannelQuantize() local 63 min = fminf(min, values[idx]); in SignedSymmetricPerChannelQuantize() 67 fmaxf(fabs(min), fabs(max)) / std::numeric_limits<int8_t>::max(); in SignedSymmetricPerChannelQuantize() 75 fmaxf(std::numeric_limits<int8_t>::min() + 1, quantized_value)); in SignedSymmetricPerChannelQuantize()
|
A D | test_helpers.h | 225 inline float ScaleFromMinMax(const float min, const float max) { in ScaleFromMinMax() argument 226 return (max - min) / in ScaleFromMinMax() 228 std::numeric_limits<T>::min()); in ScaleFromMinMax() 233 inline int ZeroPointFromMinMax(const float min, const float max) { in ZeroPointFromMinMax() argument 234 return static_cast<int>(std::numeric_limits<T>::min()) + in ZeroPointFromMinMax() 235 static_cast<int>(-min / ScaleFromMinMax<T>(min, max) + 0.5f); in ZeroPointFromMinMax()
|
/AliOS-Things-master/components/py_engine/external/unzip/src/ |
A D | inftrees.c | 42 unsigned min, max; /* minimum and maximum code lengths */ local 126 for (min = 1; min < max; min++) 127 if (count[min] != 0) break; 128 if (root < min) root = min; 202 len = min; /* starting code length */ 235 min = fill; /* save offset to next table */ 266 next += min; /* here min is 1 << curr */
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/reference/integer_ops/ |
A D | pooling.h | 52 std::min(params.filter_width, input_width - in_x_origin); in AveragePool() 55 std::min(params.filter_height, input_height - in_y_origin); in AveragePool() 73 acc = std::min(acc, params.quantized_activation_max); in AveragePool() 88 std::numeric_limits<int8_t>::min()); in MaxPool() 113 std::min(params.filter_width, input_width - in_x_origin); in MaxPool() 116 std::min(params.filter_height, input_height - in_y_origin); in MaxPool() 130 max = std::min<int8_t>(max, params.quantized_activation_max); in MaxPool() 168 std::min(params.filter_width, input_width - in_x_origin); in AveragePool() 189 acc = std::min(acc, params.quantized_activation_max); in AveragePool() 204 std::numeric_limits<int16_t>::min()); in MaxPool() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/hal/hal_test/rtc/ |
A D | rtc_test.c | 18 static rtc_time_t rtc_time = {.sec = 45, .min = 30, .hr = 15, .weekday = 5, .date = 1, .month = 3, … 36 rtc_time.hr, rtc_time.min, rtc_time.sec); in hal_rtc_test() 62 rtc_time_r.hr, rtc_time_r.min, rtc_time_r.sec); in hal_rtc_test() 65 ||(rtc_time_r.min != rtc_time.min) in hal_rtc_test()
|
/AliOS-Things-master/hardware/chip/rtl872xd/hal/hal_test/i2c/ |
A D | i2c_test.c | 24 static rtc_time_t rtc_time = {.sec = 0x45, .min = 0x8, .hr = 0x1, .weekday = 0x5, .date = 0x1, .mon… 48 rtc_time.hr, rtc_time.min, rtc_time.sec); in hal_i2c_test() 65 rtc_time_r.hr, rtc_time_r.min, rtc_time_r.sec); in hal_i2c_test() 79 rtc_time_r.hr, rtc_time_r.min, rtc_time_r.sec); in hal_i2c_test() 82 ||(rtc_time_r.min != rtc_time.min) in hal_i2c_test()
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/reference/ |
A D | non_max_suppression.h | 38 const float box_i_y_min = std::min<float>(box_i.y1, box_i.y2); in ComputeIntersectionOverUnion() 40 const float box_i_x_min = std::min<float>(box_i.x1, box_i.x2); in ComputeIntersectionOverUnion() 42 const float box_j_y_min = std::min<float>(box_j.y1, box_j.y2); in ComputeIntersectionOverUnion() 44 const float box_j_x_min = std::min<float>(box_j.x1, box_j.x2); in ComputeIntersectionOverUnion() 52 const float intersection_ymax = std::min<float>(box_i_y_max, box_j_y_max); in ComputeIntersectionOverUnion() 53 const float intersection_xmax = std::min<float>(box_i_x_max, box_j_x_max); in ComputeIntersectionOverUnion() 114 int num_outputs = std::min(static_cast<int>(candidate_priority_queue.size()), in NonMaxSuppression()
|
A D | hard_swish.h | 27 result = std::min<int32_t>(result, std::numeric_limits<int16_t>::max()); in SaturatingLeftShift() 28 result = std::max<int32_t>(result, std::numeric_limits<int16_t>::min()); in SaturatingLeftShift() 36 bool overflow = a == b && a == std::numeric_limits<std::int16_t>::min(); in SaturatingDoublingHighMul() 53 in * std::min(static_cast<T>(6), std::max(static_cast<T>(0), in + 3)) / in HardSwish() 156 std::min<int16_t>(output_value, std::numeric_limits<T>::max()); in HardSwish() 158 std::max<int16_t>(output_value, std::numeric_limits<T>::min()); in HardSwish()
|
A D | pooling.h | 52 std::min(params.filter_width, input_width - in_x_origin); in AveragePool() 55 std::min(params.filter_height, input_height - in_y_origin); in AveragePool() 108 std::min(params.filter_width, input_width - in_x_origin); in AveragePool() 111 std::min(params.filter_height, input_height - in_y_origin); in AveragePool() 127 acc = std::min(acc, params.quantized_activation_max); in AveragePool() 161 std::min(params.filter_width, input_width - in_x_origin); in L2Pool() 164 std::min(params.filter_height, input_height - in_y_origin); in L2Pool() 215 std::min(params.filter_width, input_width - in_x_origin); in MaxPool() 218 std::min(params.filter_height, input_height - in_y_origin); in MaxPool() 269 std::min(params.filter_width, input_width - in_x_origin); in MaxPool() [all …]
|
A D | softmax.h | 93 InputT max_in_row = std::numeric_limits<InputT>::min(); in Softmax() 134 static_cast<int32_t>(std::numeric_limits<OutputT>::min()); in Softmax() 137 std::min(shifted_output, in Softmax() 139 static_cast<int32_t>(std::numeric_limits<OutputT>::min()))); in Softmax() 141 output_data[i * depth + c] = std::numeric_limits<OutputT>::min(); in Softmax() 159 std::min(std::max(sym_scaled_diff, static_cast<int32_t>(-32768)), in SoftMaxCalculateExp() 178 int16_t max_in_row = std::numeric_limits<int16_t>::min(); in SoftmaxInt16() 207 std::min(std::max(sym_shifted_sum, static_cast<int32_t>(-32768)), in SoftmaxInt16() 223 std::min(std::max(result, static_cast<int32_t>(0)), in SoftmaxInt16()
|
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/infback9/ |
A D | inftree9.c | 42 unsigned min, max; /* minimum and maximum code lengths */ local 120 for (min = 1; min <= MAXBITS; min++) 121 if (count[min] != 0) break; 122 if (root < min) root = min; 196 len = min; /* starting code length */
|
/AliOS-Things-master/components/freetype/src/pcf/ |
A D | pcfdrivr.c | 107 FT_UInt min, max, mid; in pcf_cmap_char_index() local 111 min = 0; in pcf_cmap_char_index() 114 while ( min < max ) in pcf_cmap_char_index() 119 mid = ( min + max ) >> 1; in pcf_cmap_char_index() 131 min = mid + 1; in pcf_cmap_char_index() 144 FT_UInt min, max, mid; in pcf_cmap_char_next() local 149 min = 0; in pcf_cmap_char_next() 152 while ( min < max ) in pcf_cmap_char_next() 157 mid = ( min + max ) >> 1; in pcf_cmap_char_next() 169 min = mid + 1; in pcf_cmap_char_next() [all …]
|
/AliOS-Things-master/components/littlevgl/src/lv_objx/ |
A D | lv_gauge.c | 146 int16_t min = lv_gauge_get_min_value(gauge); in lv_gauge_set_needle_count() local 149 ext->values[n] = min; in lv_gauge_set_needle_count() 172 int16_t min = lv_gauge_get_min_value(gauge); in lv_gauge_set_value() local 177 else if(value < min) in lv_gauge_set_value() 178 value = min; in lv_gauge_set_value() 216 int16_t min = lv_gauge_get_min_value(gauge); in lv_gauge_get_value() local 218 if(needle >= ext->needle_count) return min; in lv_gauge_get_value() 355 int16_t min = lv_gauge_get_min_value(gauge); in lv_gauge_draw_scale() local 370 scale_act += min; in lv_gauge_draw_scale() 404 int16_t min = lv_gauge_get_min_value(gauge); in lv_gauge_draw_needle() local [all …]
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/ruy/ |
A D | block_map.cc | 192 std::min(floor_log2_quotient(rows, cols), in GetRectangularness() 204 std::min(floor_log2_quotient(cols, rows), in GetRectangularness() 259 const int block_rows = std::min(1 << block_size_log2, rows); in GetCacheLocalityScore() 260 const int block_cols = std::min(1 << block_size_log2, cols); in GetCacheLocalityScore() 291 const int block_rows = std::min(1 << block_size_log2, rows); in GetKernelAmortizationScore() 292 const int block_cols = std::min(1 << block_size_log2, cols); in GetKernelAmortizationScore() 362 const int size = std::min(rows, cols); in MakeBlockMap() 395 std::min(size_log2, kernel_size_log2 + kMaxKernelsPerBlockLog2); in MakeBlockMap() 396 int best_score = std::numeric_limits<int>::min(); in MakeBlockMap() 469 std::min(tentative_thread_count, NumBlocks(*block_map)); in MakeBlockMap() [all …]
|