Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 5837) sorted by relevance

12345678910>>...234

/third_party/python/Lib/test/decimaltestdata/
Dmax.decTest2 -- 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 …]
DdqMax.decTest32 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 …]
DddMax.decTest32 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 …]
/third_party/ffmpeg/tests/ref/fate/
Dsws-floatimg-cmp4 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/alsa-lib/src/pcm/
Dinterval.c131 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 …]
Dinterval_inline.h28 i->max = UINT_MAX; in snd_interval_any()
41 return (i->min > i->max || in snd_interval_checkempty()
42 (i->min == i->max && (i->openmin || i->openmax))); in snd_interval_checkempty()
53 return (i->min == i->max || in snd_interval_single()
54 (i->min + 1 == i->max && (i->openmin || i->openmax))); in snd_interval_single()
61 return i->max; in snd_interval_value()
68 i->min = i->max = val; in snd_interval_set_value()
82 return i->max; in snd_interval_max()
85 INTERVAL_INLINE void snd_interval_set_minmax(snd_interval_t *i, unsigned int min, unsigned int max) in snd_interval_set_minmax() argument
89 i->max = max; in snd_interval_set_minmax()
[all …]
/third_party/node/deps/openssl/openssl/crypto/bio/
Dbio_print.c99 int max; in _dopr() local
107 max = -1; in _dopr()
170 if (max < 0) in _dopr()
171 max = 0; in _dopr()
172 max = 10 * max + char_to_int(ch); in _dopr()
175 max = va_arg(args, int); in _dopr()
235 max, flags)) in _dopr()
264 min, max, flags)) in _dopr()
273 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
285 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
[all …]
/third_party/openssl/crypto/bio/
Dbio_print.c99 int max; in _dopr() local
107 max = -1; in _dopr()
170 if (max < 0) in _dopr()
171 max = 0; in _dopr()
172 max = 10 * max + char_to_int(ch); in _dopr()
175 max = va_arg(args, int); in _dopr()
235 max, flags)) in _dopr()
264 min, max, flags)) in _dopr()
273 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
285 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max, in _dopr()
[all …]
/third_party/ltp/testcases/kernel/controllers/pids/
Dpids.sh17 max=$2
89 start_pids_tasks2 $max
108 tmp=$((max - 1))
109 tst_res TINFO "limit the number of pid to $max"
110 ROD echo $max \> $testpath/pids.max
131 lim=$((max + 2))
133 ROD echo $lim \> $testpath/pids.max
135 start_pids_tasks2 $max
154 ROD echo 0 \> $testpath/pids.max
156 start_pids_tasks2 $max
[all …]
/third_party/ffmpeg/libavcodec/
Daudiodsp.c37 float *min, float *max, int len) in vector_clipf_c_opposite_sign() argument
41 uint32_t maxi = *(uint32_t *) max; in vector_clipf_c_opposite_sign()
59 float min, float max) in vector_clipf_c() argument
63 if (min < 0 && max > 0) { in vector_clipf_c()
64 vector_clipf_c_opposite_sign(dst, src, &min, &max, len); in vector_clipf_c()
67 dst[i] = av_clipf(src[i], min, max); in vector_clipf_c()
68 dst[i + 1] = av_clipf(src[i + 1], min, max); in vector_clipf_c()
69 dst[i + 2] = av_clipf(src[i + 2], min, max); in vector_clipf_c()
70 dst[i + 3] = av_clipf(src[i + 3], min, max); in vector_clipf_c()
71 dst[i + 4] = av_clipf(src[i + 4], min, max); in vector_clipf_c()
[all …]
/third_party/mesa3d/src/imagination/rogue/
Drogue_validate.c45 .max = MAX, \
80 [0] = { .mask = ROH(ROGUE_OPERAND_TYPE_DRC), .min = -1, .max = -1, .align = -1, },
85 [0] = { .mask = ROH(ROGUE_OPERAND_TYPE_REG_TEMP), .min = -1, .max = -1, .align = -1, },
86 [1] = { .mask = ROH(ROGUE_OPERAND_TYPE_DRC), .min = -1, .max = -1, .align = -1, },
87 …[2] = { .mask = ROH(ROGUE_OPERAND_TYPE_REG_COEFF), .min = -1, .max = -1, .align = ROGUE_COEFF_ALIG…
88 …[3] = { .mask = ROH(ROGUE_OPERAND_TYPE_REG_COEFF), .min = -1, .max = -1, .align = ROGUE_COEFF_ALIG…
89 [4] = { .mask = ROH(ROGUE_OPERAND_TYPE_IMMEDIATE), .min = 1, .max = 16, .align = -1, },
94 [0] = { .mask = ROH(ROGUE_OPERAND_TYPE_REG_TEMP), .min = -1, .max = -1, .align = -1, },
95 [1] = { .mask = ROH(ROGUE_OPERAND_TYPE_REG_TEMP), .min = -1, .max = -1, .align = -1, },
96 …UE_OPERAND_TYPE_REG_CONST) | ROH(ROGUE_OPERAND_TYPE_REG_TEMP), .min = -1, .max = -1, .align = -1, …
[all …]
/third_party/skia/resources/sksl/intrinsics/
DMaxFloat.sksl9 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 …]
DMaxInt.sksl12 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/ltp/lib/
Drandom_range.c44 int max; member
134 rp->max = defmax; in parse_ranges()
172 rp->max = rp->min; in parse_ranges()
174 if ((*parse_func) (n2str, &rp->max) < 0) { in parse_ranges()
245 return ((struct range *)rbuf)[r].max; in range_max()
278 long random_range(int min, int max, int mult, char **errp) in random_range() argument
301 orig_max = max; in random_range()
308 if (max < min) { in random_range()
309 tmp = max; in random_range()
310 max = min; in random_range()
[all …]
/third_party/ffmpeg/libavfilter/
Dvf_normalize.c116 NormalizeHistory min[3], max[3]; // Min and max for each channel in {R,G,B}. member
121 …nd_min_max)(struct NormalizeContext *s, AVFrame *in, NormalizeLocal min[3], NormalizeLocal max[3]);
140 …c void find_min_max(NormalizeContext *s, AVFrame *in, NormalizeLocal min[3], NormalizeLocal max[3]) in find_min_max()
143 min[c].in = max[c].in = in->data[0][s->co[c]]; in find_min_max()
149 max[c].in = FFMAX(max[c].in, inp[s->co[c]]); in find_min_max()
173 …find_min_max_planar(NormalizeContext *s, AVFrame *in, NormalizeLocal min[3], NormalizeLocal max[3]) in find_min_max_planar()
175 min[0].in = max[0].in = in->data[2][0]; in find_min_max_planar()
176 min[1].in = max[1].in = in->data[0][0]; in find_min_max_planar()
177 min[2].in = max[2].in = in->data[1][0]; in find_min_max_planar()
184 max[0].in = FFMAX(max[0].in, inrp[x]); in find_min_max_planar()
[all …]
Dvf_colorbalance.c53 int max; member
120 float max = FFMAX3(*r, *g, *b); in preservel() local
128 } else if (max == *r) { in preservel()
129 h = 60.f * (0.f + (*g - *b) / (max - min)); in preservel()
130 } else if (max == *g) { in preservel()
131 h = 60.f * (2.f + (*b - *r) / (max - min)); in preservel()
132 } else if (max == *b) { in preservel()
133 h = 60.f * (4.f + (*r - *g) / (max - min)); in preservel()
140 if (max == 1.f || min == 0.f) { in preservel()
143 s = (max - min) / (1.f - (FFABS(2.f * l - 1.f))); in preservel()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/System/
DMath.hpp31 #undef max
34 inline T constexpr max(T a, T b) in max() function
46 inline constexpr T max(T a, T b, T c) in max() function
48 return max(max(a, b), c); in max()
58 inline constexpr T max(T a, T b, T c, T d) in max() function
60 return max(max(a, b), max(c, d)); in max()
178 inline float clamp_s(float x, float min, float max) in clamp_s() argument
182 if(float_as_twos_complement(x) > float_as_twos_complement(max)) x = max; in clamp_s()
224 static const unsigned int max = 0xFFFFFFFF >> (32 - n); in unorm() local
225 static const float maxf = static_cast<float>(max); in unorm()
[all …]
/third_party/node/deps/v8/src/base/utils/
Drandom-number-generator.cc96 int RandomNumberGenerator::NextInt(int max) { in NextInt() argument
97 DCHECK_LT(0, max); in NextInt()
100 if (bits::IsPowerOfTwo(max)) { in NextInt()
101 return static_cast<int>((max * static_cast<int64_t>(Next(31))) >> 31); in NextInt()
106 int val = rnd % max; in NextInt()
107 if (std::numeric_limits<int>::max() - (rnd - val) >= (max - 1)) { in NextInt()
133 const std::unordered_set<uint64_t>& set, uint64_t max) { in ComplementSample() argument
135 result.reserve(max - set.size()); in ComplementSample()
136 for (uint64_t i = 0; i < max; i++) { in ComplementSample()
144 std::vector<uint64_t> RandomNumberGenerator::NextSample(uint64_t max, in NextSample() argument
[all …]
/third_party/alsa-utils/alsamixer/
Dvolume_mapping.c87 long min, max, value; in get_normalized_volume() local
91 err = get_dB_range[ctl_dir](elem, &min, &max); in get_normalized_volume()
92 if (err < 0 || min >= max) { in get_normalized_volume()
93 err = get_raw_range[ctl_dir](elem, &min, &max); in get_normalized_volume()
94 if (err < 0 || min == max) in get_normalized_volume()
101 return (value - min) / (double)(max - min); in get_normalized_volume()
108 if (use_linear_dB_scale(min, max)) in get_normalized_volume()
109 return (value - min) / (double)(max - min); in get_normalized_volume()
111 normalized = pow(10, (value - max) / 6000.0); in get_normalized_volume()
113 min_norm = pow(10, (min - max) / 6000.0); in get_normalized_volume()
[all …]
/third_party/alsa-utils/amixer/
Dvolume_mapping.c87 long min, max, value; in get_normalized_volume() local
91 err = get_dB_range[ctl_dir](elem, &min, &max); in get_normalized_volume()
92 if (err < 0 || min >= max) { in get_normalized_volume()
93 err = get_raw_range[ctl_dir](elem, &min, &max); in get_normalized_volume()
94 if (err < 0 || min == max) in get_normalized_volume()
101 return (value - min) / (double)(max - min); in get_normalized_volume()
108 if (use_linear_dB_scale(min, max)) in get_normalized_volume()
109 return (value - min) / (double)(max - min); in get_normalized_volume()
111 normalized = pow(10, (value - max) / 6000.0); in get_normalized_volume()
113 min_norm = pow(10, (min - max) / 6000.0); in get_normalized_volume()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Common/
DMath.hpp31 #undef max
34 inline T max(T a, T b) in max() function
46 inline T max(T a, T b, T c) in max() function
48 return max(max(a, b), c); in max()
58 inline T max(T a, T b, T c, T d) in max() function
60 return max(max(a, b), max(c, d)); in max()
210 inline float clamp_s(float x, float min, float max) in clamp_s() argument
214 if(float_as_twos_complement(x) > float_as_twos_complement(max)) x = max; in clamp_s()
256 static const unsigned int max = 0xFFFFFFFF >> (32 - n); in unorm() local
257 static const float maxf = static_cast<float>(max); in unorm()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DVertexFormatTests.cpp295 << ") / " << std::to_string(std::numeric_limits<T>::max()) in MakeTestPipeline()
405 std::numeric_limits<uint8_t>::max(), in TEST_P()
420 std::numeric_limits<uint8_t>::max(), 0, std::numeric_limits<uint8_t>::min(), 2, 200, 201, in TEST_P()
428 std::numeric_limits<uint8_t>::max(), in TEST_P()
447 std::numeric_limits<int8_t>::max(), in TEST_P()
462 std::numeric_limits<int8_t>::max(), 0, std::numeric_limits<int8_t>::min(), -2, 120, -121, in TEST_P()
470 std::numeric_limits<int8_t>::max(), in TEST_P()
489 std::numeric_limits<uint8_t>::max(), in TEST_P()
493 std::numeric_limits<uint8_t>::max() / 2u, in TEST_P()
503 std::vector<uint8_t> expectedData = {std::numeric_limits<uint8_t>::max(), in TEST_P()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DComputeValidationTests.cpp60 const uint32_t max = GetSupportedLimits().limits.maxComputeWorkgroupsPerDimension; in TEST_F() local
61 TestDispatch(max, max, max); in TEST_F()
66 const uint32_t max = GetSupportedLimits().limits.maxComputeWorkgroupsPerDimension; in TEST_F() local
67 ASSERT_DEVICE_ERROR(TestDispatch(max + 1, 1, 1)); in TEST_F()
72 const uint32_t max = GetSupportedLimits().limits.maxComputeWorkgroupsPerDimension; in TEST_F() local
73 ASSERT_DEVICE_ERROR(TestDispatch(1, max + 1, 1)); in TEST_F()
78 const uint32_t max = GetSupportedLimits().limits.maxComputeWorkgroupsPerDimension; in TEST_F() local
79 ASSERT_DEVICE_ERROR(TestDispatch(1, 1, max + 1)); in TEST_F()
84 const uint32_t max = GetSupportedLimits().limits.maxComputeWorkgroupsPerDimension; in TEST_F() local
85 ASSERT_DEVICE_ERROR(TestDispatch(max + 1, max + 1, max + 1)); in TEST_F()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
Dlog_uniform_int_distribution_test.cc60 param_type(1, Limits::max() / 2), // in TYPED_TEST()
61 param_type(0, Limits::max() - 1), // in TYPED_TEST()
62 param_type(0, Limits::max(), 2), // in TYPED_TEST()
63 param_type(0, Limits::max(), 10), // in TYPED_TEST()
65 param_type(Limits::lowest(), Limits::max()), // in TYPED_TEST()
66 param_type(Limits::min(), Limits::max()), // in TYPED_TEST()
70 const auto max = param.max(); in TYPED_TEST() local
72 absl::log_uniform_int_distribution<TypeParam> before(min, max, base); in TYPED_TEST()
74 EXPECT_EQ(before.max(), param.max()); in TYPED_TEST()
88 EXPECT_NE(before.max(), after.max()); in TYPED_TEST()
[all …]
/third_party/glslang/Test/
Dhlsl.intrinsics.promote.frag23 float r00 = max(b, f);
24 uint r01 = max(b, u);
25 int r02 = max(b, i);
26 float r03 = max(i, f);
27 float r04 = max(u, f);
29 float2 r10 = max(b2, f2);
30 uint2 r11 = max(b2, u2);
31 int2 r12 = max(b2, i2);
32 float2 r13 = max(i2, f2);
33 float2 r14 = max(u2, f2);
[all …]

12345678910>>...234