| /third_party/python/Lib/test/decimaltestdata/ |
| D | max.decTest | 2 -- max.decTest -- decimal maximum -- 32 maxx001 max -2 -2 -> -2 33 maxx002 max -2 -1 -> -1 34 maxx003 max -2 0 -> 0 35 maxx004 max -2 1 -> 1 36 maxx005 max -2 2 -> 2 37 maxx006 max -1 -2 -> -1 38 maxx007 max -1 -1 -> -1 39 maxx008 max -1 0 -> 0 40 maxx009 max -1 1 -> 1 [all …]
|
| D | ddMax.decTest | 32 ddmax001 max -2 -2 -> -2 33 ddmax002 max -2 -1 -> -1 34 ddmax003 max -2 0 -> 0 35 ddmax004 max -2 1 -> 1 36 ddmax005 max -2 2 -> 2 37 ddmax006 max -1 -2 -> -1 38 ddmax007 max -1 -1 -> -1 39 ddmax008 max -1 0 -> 0 40 ddmax009 max -1 1 -> 1 41 ddmax010 max -1 2 -> 2 [all …]
|
| D | dqMax.decTest | 32 dqmax001 max -2 -2 -> -2 33 dqmax002 max -2 -1 -> -1 34 dqmax003 max -2 0 -> 0 35 dqmax004 max -2 1 -> 1 36 dqmax005 max -2 2 -> 2 37 dqmax006 max -1 -2 -> -1 38 dqmax007 max -1 -1 -> -1 39 dqmax008 max -1 0 -> 0 40 dqmax009 max -1 1 -> 1 41 dqmax010 max -1 2 -> 2 [all …]
|
| /third_party/rust/rust/src/tools/clippy/tests/ui/ |
| D | manual_clamp.rs | 10 use std::cmp::{max as cmp_max, min as cmp_min}; 19 let (input, min, max) = (0, -2, 3); in main() 21 let x0 = if max < input { in main() 22 max in main() 29 let x1 = if input > max { in main() 30 max in main() 39 } else if input > max { in main() 40 max in main() 47 } else if max < input { in main() 48 max in main() [all …]
|
| D | manual_clamp.stderr | 7 LL | | if x9 > max { 8 LL | | x9 = max; 10 | |_____^ help: replace with clamp: `x9 = x9.clamp(min, max);` 12 = note: clamp will panic if max < min 18 LL | / if x11 > max { 19 LL | | x11 = max; 24 | |_____^ help: replace with clamp: `x11 = x11.clamp(min, max);` 26 = note: clamp will panic if max < min 34 LL | | if max < x12 { 35 LL | | x12 = max; [all …]
|
| D | implicit_saturating_add.rs | 23 if u_8 != u8::MAX { in main() 27 if u_8 < u8::MAX { in main() 35 if u_16 != u16::MAX { in main() 39 if u_16 < u16::MAX { in main() 43 if u16::MAX > u_16 { in main() 47 if u_32 != u32::MAX { in main() 51 if u_32 < u32::MAX { in main() 55 if u32::MAX > u_32 { in main() 59 if u_64 != u64::MAX { in main() 63 if u_64 < u64::MAX { in main() [all …]
|
| D | min_max.rs | 4 use std::cmp::max as my_max; 6 use std::cmp::{max, min}; 17 fn max(self, x: u64) -> NotOrd { in max() method 24 min(1, max(3, x)); in main() 25 min(max(3, x), 1); in main() 26 max(min(x, 1), 3); in main() 27 max(3, min(x, 1)); in main() 31 min(3, max(1, x)); // ok, could be 1, 2 or 3 depending on x in main() 33 min(1, max(LARGE, x)); // no error, we don't lookup consts here in main() 36 min(max(y, -1), 3); in main() [all …]
|
| D | min_max.stderr | 1 error: this `min`/`max` combination leads to constant result 4 LL | min(1, max(3, x)); 7 = note: `-D clippy::min-max` implied by `-D warnings` 9 error: this `min`/`max` combination leads to constant result 12 LL | min(max(3, x), 1); 15 error: this `min`/`max` combination leads to constant result 18 LL | max(min(x, 1), 3); 21 error: this `min`/`max` combination leads to constant result 24 LL | max(3, min(x, 1)); 27 error: this `min`/`max` combination leads to constant result [all …]
|
| /third_party/rust/rust/tests/ui/numbers-arithmetic/ |
| D | num-wrapping.rs | 24 pub const MAX: $name = $name::MAX; constant 69 op_test!(add(i8::MAX, 1) == i8::MIN); in test_ops() 70 op_test!(add(i16::MAX, 1) == i16::MIN); in test_ops() 71 op_test!(add(i32::MAX, 1) == i32::MIN); in test_ops() 72 op_test!(add(i64::MAX, 1) == i64::MIN); in test_ops() 73 op_test!(add(isize::MAX, 1) == isize::MIN); in test_ops() 75 op_test!(add(u8::MAX, 1) == 0); in test_ops() 76 op_test!(add(u16::MAX, 1) == 0); in test_ops() 77 op_test!(add(u32::MAX, 1) == 0); in test_ops() 78 op_test!(add(u64::MAX, 1) == 0); in test_ops() [all …]
|
| /third_party/ffmpeg/libavfilter/ |
| D | blend_modes.c | 30 #undef MAX 36 #define MAX 255 macro 41 #define MAX 1.f macro 46 #define MAX ((1 << DEPTH) - 1) macro 62 #define MULTIPLY(x, a, b) ((x) * (((a) * (b)) / MAX)) 63 #define SCREEN(x, a, b) (MAX - (x) * ((MAX - (a)) * (MAX - (b)) / MAX)) 64 #define BURN(a, b) (((a) == 0) ? (a) : FFMAX(0, MAX - ((MAX - (b)) << DEPTH) / (a))) 65 #define DODGE(a, b) (((a) == MAX) ? (a) : FFMIN(MAX, (((b) << DEPTH) / (MAX - (a))))) 116 fn(addition, FFMIN(MAX, A + B)) 122 fn(negation, MAX - FFABS(MAX - A - B)) [all …]
|
| /third_party/ffmpeg/tests/ref/fate/ |
| D | sws-floatimg-cmp | 4 max diff: 0.000501 8 max diff: 0.006399 12 max diff: 0.003313 16 max diff: 0.001912 20 max diff: 0.000802 24 max diff: 0.000524 28 max diff: 0.004229 32 max diff: 0.004229 36 max diff: 0.004229 40 max diff: 0.004229 [all …]
|
| /third_party/vk-gl-cts/android/cts/main/vk-master-2022-03-01/image/ |
| D | atomic-operations.txt | 1 dEQP-VK.image.atomic_operations.max.1d.notransfer.normal_read.normal_img.r32f_end_result 2 dEQP-VK.image.atomic_operations.max.1d.notransfer.normal_read.normal_img.r32f_intermediate_values 3 dEQP-VK.image.atomic_operations.max.1d.transfer.normal_read.normal_img.r32f_end_result 4 dEQP-VK.image.atomic_operations.max.1d.transfer.normal_read.normal_img.r32f_intermediate_values 5 dEQP-VK.image.atomic_operations.max.1d_array.notransfer.normal_read.normal_img.r32f_end_result 6 dEQP-VK.image.atomic_operations.max.1d_array.notransfer.normal_read.normal_img.r32f_intermediate_va… 7 dEQP-VK.image.atomic_operations.max.1d_array.transfer.normal_read.normal_img.r32f_end_result 8 dEQP-VK.image.atomic_operations.max.1d_array.transfer.normal_read.normal_img.r32f_intermediate_valu… 9 dEQP-VK.image.atomic_operations.max.2d.notransfer.normal_read.normal_img.r32f_end_result 10 dEQP-VK.image.atomic_operations.max.2d.notransfer.normal_read.normal_img.r32f_intermediate_values [all …]
|
| /third_party/grpc/src/core/telemetry/ |
| D | stats_data.yaml | 24 max: 65536 48 max: 16777216 # 16 meg max write tracked 52 max: 80 60 max: 16777216 64 max: 16777216 68 max: 80 73 max: 16777216 87 max: 65536 96 max: 1800000 100 max: 16777216 [all …]
|
| /third_party/rust/rust/library/core/tests/num/ |
| D | wrapping.rs | 29 ($fn_name:ident, $type:ty, $min:expr, $max:expr) => { 35 let max: Wrapping<$type> = Wrapping($max); localVariable 37 wrapping_operation!(min, max + one); 38 wrapping_assignment!(min, max += one); 39 wrapping_operation!(max, min - one); 40 wrapping_assignment!(max, min -= one); 41 wrapping_operation!(max, max * one); 42 wrapping_assignment!(max, max *= one); 43 wrapping_operation!(max, max / one); 44 wrapping_assignment!(max, max /= one); [all …]
|
| /third_party/jerryscript/tests/jerry/ |
| D | math-max.js | 15 assert(isNaN (Math['max'] (1.0, NaN))); 16 assert(isNaN (Math['max'] (NaN, 1.0))); 17 assert(isNaN (Math['max'] (Infinity, NaN))); 18 assert(isNaN (Math['max'] (NaN, Infinity))); 19 assert(Math['max'] (1.0, 3.0, 0.0) === 3.0); 20 assert(Math['max'] (1.0, 3.0, Infinity) === Infinity); 21 assert(Math['max'] (1.0, 3.0, -Infinity) === 3.0); 22 assert(Math['max'] (-Infinity, Infinity) === Infinity); 23 assert(Math['max'] (Infinity, -Infinity) === Infinity); 24 assert(Math['max'] (Infinity, Infinity) === Infinity); [all …]
|
| /third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtc/ |
| D | random.inl | 25 std::rand() % std::numeric_limits<uint8>::max()); 35 std::rand() % std::numeric_limits<uint8>::max(), 36 std::rand() % std::numeric_limits<uint8>::max()); 46 std::rand() % std::numeric_limits<uint8>::max(), 47 std::rand() % std::numeric_limits<uint8>::max(), 48 std::rand() % std::numeric_limits<uint8>::max()); 58 std::rand() % std::numeric_limits<uint8>::max(), 59 std::rand() % std::numeric_limits<uint8>::max(), 60 std::rand() % std::numeric_limits<uint8>::max(), 61 std::rand() % std::numeric_limits<uint8>::max()); [all …]
|
| /third_party/mindspore/mindspore-src/source/tests/ut/python/graph_syntax/python_builtin_functions/ |
| D | test_max_min.py | 15 """ test graph fallback buildin python function max and min""" 29 Description: Test max() in graph mode with one input list. 34 x = max([1, 2, 3]) 43 Description: Test max() in graph mode with one input list. 48 x = max([(1, 2), (1, 3), (3, 4)]) 57 Description: Test max() in graph mode with one input tuple. 62 x = max((1, 2, 3)) 71 Description: Test max() in graph mode with one input tuple. 76 x = max((1, 2), (1, 3), (3, 4)) 85 Description: Test max() in graph mode with one input dict. [all …]
|
| /third_party/alsa-lib/src/pcm/ |
| D | interval.c | 131 int snd_interval_refine_max(snd_interval_t *i, unsigned int max, int openmax) in snd_interval_refine_max() argument 136 if (i->max > max) { in snd_interval_refine_max() 137 i->max = max; in snd_interval_refine_max() 140 } else if (i->max == max && !i->openmax && openmax) { in snd_interval_refine_max() 146 i->max--; in snd_interval_refine_max() 171 if (i->max > v->max) { in snd_interval_refine() 172 i->max = v->max; in snd_interval_refine() 175 } else if (i->max == v->max && !i->openmax && v->openmax) { in snd_interval_refine() 189 i->max--; in snd_interval_refine() 192 } else if (!i->openmin && !i->openmax && i->min == i->max) in snd_interval_refine() [all …]
|
| /third_party/mindspore/mindspore-src/source/docs/api/api_python/mint/ |
| D | mindspore.mint.func_clamp.rst | 4 .. py:function:: mindspore.mint.clamp(input, min=None, max=None) 8 限制 :math:`input` 的范围,其最小值为 `min` ,最大值为 `max` 。 13 max & \text{ if } input_i\ge max \\ 14 input_i & \text{ if } min \lt input_i \lt max \\ 19 - `min` 和 `max` 不能同时为None; 20 - 当 `min` 为None,`max` 不为None时,Tensor中大于 `max` 的元素会变为 `max`; 21 - 当 `min` 不为None,`max` 为None时,Tensor中小于 `min` 的元素会变为 `min`; 22 - 当 `min` 大于 `max` 时,Tensor中所有元素的值会被置为 `max`; 23 - `input`,`min` 和 `max` 的数据类型需支持隐式类型转换,且不能为bool类型。 28 - **max** (Union(Tensor, float, int),可选) - 指定最大值。默认值为 ``None`` 。 [all …]
|
| /third_party/mindspore/mindspore-src/source/docs/api/api_python/ops/ |
| D | mindspore.ops.func_clamp.rst | 4 .. py:function:: mindspore.ops.clamp(input, min=None, max=None) 8 限制 :math:`input` 的范围,其最小值为 `min` ,最大值为 `max` 。 13 max & \text{ if } input_i\ge max \\ 14 input_i & \text{ if } min \lt input_i \lt max \\ 19 - `min` 和 `max` 不能同时为None; 20 - 当 `min` 为None,`max` 不为None时,Tensor中大于 `max` 的元素会变为 `max`; 21 - 当 `min` 不为None,`max` 为None时,Tensor中小于 `min` 的元素会变为 `min`; 22 - 当 `min` 大于 `max` 时,Tensor中所有元素的值会被置为 `max`; 23 - `input`,`min` 和 `max` 的数据类型需支持隐式类型转换,且不能为布尔型。 28 - **max** (Union(Tensor, float, int),可选) - 指定最大值。默认值为 ``None`` 。 [all …]
|
| /third_party/skia/resources/sksl/intrinsics/ |
| D | MaxFloat.sksl | 9 return (max(testInputs.x, 0.5) == expectedA.x && 10 max(testInputs.xy, 0.5) == expectedA.xy && 11 max(testInputs.xyz, 0.5) == expectedA.xyz && 12 max(testInputs.xyzw, 0.5) == expectedA.xyzw && 13 max(constVal.x, 0.5) == expectedA.x && 14 max(constVal.xy, 0.5) == expectedA.xy && 15 max(constVal.xyz, 0.5) == expectedA.xyz && 16 max(constVal.xyzw, 0.5) == expectedA.xyzw && 17 max(testInputs.x, colorGreen.x) == expectedB.x && 18 max(testInputs.xy, colorGreen.xy) == expectedB.xy && [all …]
|
| D | MaxInt.sksl | 12 return (max(intValues.x, 50) == expectedA.x && 13 max(intValues.xy, 50) == expectedA.xy && 14 max(intValues.xyz, 50) == expectedA.xyz && 15 max(intValues.xyzw, 50) == expectedA.xyzw && 16 max(constVal.x, 50) == expectedA.x && 17 max(constVal.xy, 50) == expectedA.xy && 18 max(constVal.xyz, 50) == expectedA.xyz && 19 max(constVal.xyzw, 50) == expectedA.xyzw && 20 max(intValues.x, intGreen.x) == expectedB.x && 21 max(intValues.xy, intGreen.xy) == expectedB.xy && [all …]
|
| /third_party/skia/m133/resources/sksl/intrinsics/ |
| D | MaxFloat.sksl | 9 return (max(testInputs.x, 0.5) == expectedA.x && 10 max(testInputs.xy, 0.5) == expectedA.xy && 11 max(testInputs.xyz, 0.5) == expectedA.xyz && 12 max(testInputs.xyzw, 0.5) == expectedA.xyzw && 13 max(constVal.x, 0.5) == expectedA.x && 14 max(constVal.xy, 0.5) == expectedA.xy && 15 max(constVal.xyz, 0.5) == expectedA.xyz && 16 max(constVal.xyzw, 0.5) == expectedA.xyzw && 17 max(testInputs.x, colorGreen.x) == expectedB.x && 18 max(testInputs.xy, colorGreen.xy) == expectedB.xy && [all …]
|
| D | MaxInt.sksl | 12 return (max(intValues.x, 50) == expectedA.x && 13 max(intValues.xy, 50) == expectedA.xy && 14 max(intValues.xyz, 50) == expectedA.xyz && 15 max(intValues.xyzw, 50) == expectedA.xyzw && 16 max(constVal.x, 50) == expectedA.x && 17 max(constVal.xy, 50) == expectedA.xy && 18 max(constVal.xyz, 50) == expectedA.xyz && 19 max(constVal.xyzw, 50) == expectedA.xyzw && 20 max(intValues.x, intGreen.x) == expectedB.x && 21 max(intValues.xy, intGreen.xy) == expectedB.xy && [all …]
|
| D | MaxUint.sksl | 12 return (max(uintValues.x, 80) == expectedA.x && 13 max(uintValues.xy, 80) == expectedA.xy && 14 max(uintValues.xyz, 80) == expectedA.xyz && 15 max(uintValues.xyzw, 80) == expectedA.xyzw && 16 max(constVal.x, 80) == expectedA.x && 17 max(constVal.xy, 80) == expectedA.xy && 18 max(constVal.xyz, 80) == expectedA.xyz && 19 max(constVal.xyzw, 80) == expectedA.xyzw && 20 max(uintValues.x, uintGreen.x) == expectedB.x && 21 max(uintValues.xy, uintGreen.xy) == expectedB.xy && [all …]
|