/third_party/alsa-lib/src/pcm/ |
H A 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() 439 boundary_nearer(int min, int mindir, int best, int bestdir, int max, int maxdir) boundary_nearer() argument [all...] |
H A D | interval_inline.h | 28 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 in snd_interval_set_minmax() [all...] |
/third_party/node/deps/openssl/openssl/crypto/bio/ |
H A D | bio_print.c | 99 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() 380 fmtstr(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, const char *value, int flags, int min, int max) fmtstr() argument 432 fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int64_t value, int base, int min, int max, int flags) fmtint() argument 562 fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags, int style) fmtfp() argument [all...] |
/third_party/openssl/crypto/bio/ |
H A D | bio_print.c | 99 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() 380 fmtstr(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, const char *value, int flags, int min, int max) fmtstr() argument 432 fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int64_t value, int base, int min, int max, int flags) fmtint() argument 562 fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags, int style) fmtfp() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | audiodsp.c | 37 float *min, float *max, int len) in vector_clipf_c_opposite_sign() 41 uint32_t maxi = *(uint32_t *) max; in vector_clipf_c_opposite_sign() 59 float min, float max) in vector_clipf_c() 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() 36 vector_clipf_c_opposite_sign(float *dst, const float *src, float *min, float *max, int len) vector_clipf_c_opposite_sign() argument 58 vector_clipf_c(float *dst, const float *src, int len, float min, float max) vector_clipf_c() argument 90 vector_clip_int32_c(int32_t *dst, const int32_t *src, int32_t min, int32_t max, unsigned int len) vector_clip_int32_c() argument [all...] |
/third_party/alsa-utils/amixer/ |
H A D | volume_mapping.c | 87 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. in get_normalized_volume() 126 long min, max, value; set_normalized_volume() local [all...] |
/third_party/alsa-utils/alsamixer/ |
H A D | volume_mapping.c | 87 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. in get_normalized_volume() 126 long min, max, value; set_normalized_volume() local [all...] |
/third_party/mesa3d/src/imagination/rogue/ |
H A D | rogue_validate.c | 45 .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_ALIGN, }, 88 [3] = { .mask = ROH(ROGUE_OPERAND_TYPE_REG_COEFF), .min = -1, .max = -1, .align = ROGUE_COEFF_ALIGN, }, 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 [2] = { .mask = ROH(ROGUE_OPERAND_TYPE_REG_CONST) | ROH(ROGUE_OPERAND_TYPE_REG_TEMP), .min = -1, .max [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_normalize.c | 116 NormalizeHistory min[3], max[3]; // Min and max for each channel in {R,G,B}. member 121 void (*find_min_max)(struct NormalizeContext *s, AVFrame *in, NormalizeLocal min[3], NormalizeLocal max[3]); 140 static void find_min_max(NormalizeContext *s, AVFrame *in, NormalizeLocal min[3], NormalizeLocal max[3]) in find_min_max() argument 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 static void find_min_max_planar(NormalizeContext *s, AVFrame *in, NormalizeLocal min[3], NormalizeLocal max[3]) in find_min_max_planar() argument 175 min[0].in = max[0].in = in->data[2][0]; in find_min_max_planar() 176 min[1].in = max[ in find_min_max_planar() 214 find_min_max_16(NormalizeContext *s, AVFrame *in, NormalizeLocal min[3], NormalizeLocal max[3]) find_min_max_16() argument 247 find_min_max_planar_16(NormalizeContext *s, AVFrame *in, NormalizeLocal min[3], NormalizeLocal max[3]) find_min_max_planar_16() argument 294 NormalizeLocal min[3], max[3]; // Min and max for each channel in {R,G,B}. normalize() local [all...] |
H A D | vf_colorbalance.c | 53 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 in preservel() 167 const float max = s->max; color_balance8_p() local 221 const float max = s->max; color_balance16_p() local 272 const float max = s->max; color_balance8() local 325 const float max = s->max; color_balance16() local 367 const int max = (1 << depth) - 1; config_output() local [all...] |
H A D | preserve_color.h | 37 static inline float normalize(float r, float g, float b, float max) in normalize() argument 39 r /= max; in normalize() 40 g /= max; in normalize() 41 b /= max; in normalize() 45 static inline float power(float r, float g, float b, float max) in power() argument 47 r /= max; in power() 48 g /= max; in power() 49 b /= max; in power() 56 float max, in preserve_color() 77 *icolor = normalize(ir, ig, ib, max); in preserve_color() 53 preserve_color(int preserve_color, float ir, float ig, float ib, float r, float g, float b, float max, float *icolor, float *ocolor) preserve_color() argument [all...] |
H A D | vf_deblock.c | 51 int max; member 59 int ath, int bth, int gth, int dth, int max); 61 int ath, int bth, int gth, int dth, int max); 88 int ath, int bth, int gth, int dth, int max) \ 115 dst[x - 2 * dst_linesize] = av_clip(a, 0, max); \ 116 dst[x - 1 * dst_linesize] = av_clip(b, 0, max); \ 117 dst[x + 0 * dst_linesize] = av_clip(c, 0, max); \ 118 dst[x + 1 * dst_linesize] = av_clip(d, 0, max); \ 127 int ath, int bth, int gth, int dth, int max) \ 154 dst[-2] = av_clip(a, 0, max); \ [all...] |
/third_party/ltp/lib/ |
H A D | random_range.c | 44 int max; member 54 * min:max[:mult] 56 * any of the values may be blank (ie. min::mult, :max, etc.) and default 62 * which is malloc'd by the routine. The min, max, and mult entries of each 72 * defmax default value to plug in for max, if it is missing 75 * can call to parse the min, max, and mult strings. This 134 rp->max = defmax; in parse_ranges() 165 * Process the 'max' field - if one was not present (n1 format) in parse_ranges() 166 * set max equal to min. If the field was present, but in parse_ranges() 172 rp->max in parse_ranges() 278 random_range(int min, int max, int mult, char **errp) random_range() argument 365 random_rangel(long min, long max, long mult, char **errp) random_rangel() argument 451 random_rangell(long long min, long long max, long long mult, char **errp) random_rangell() argument 547 divider(long long min, long long max, long long cnt, long long rand) divider() argument [all...] |
/third_party/node/deps/v8/src/base/utils/ |
H A D | random-number-generator.cc | 96 int RandomNumberGenerator::NextInt(int max) { in NextInt() argument 97 DCHECK_LT(0, max); in NextInt() 99 // Fast path if max is a power of 2. 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() 135 result.reserve(max in ComplementSample() 132 ComplementSample( const std::unordered_set<uint64_t>& set, uint64_t max) ComplementSample() argument 144 NextSample(uint64_t max, size_t n) NextSample() argument 177 NextSampleSlow( uint64_t max, size_t n, const std::unordered_set<uint64_t>& excluded) NextSampleSlow() argument [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
H A D | ComputeValidationTests.cpp | 60 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 in TEST_F() 84 const uint32_t max = GetSupportedLimits().limits.maxComputeWorkgroupsPerDimension; TEST_F() local [all...] |
/third_party/ltp/testcases/kernel/controllers/pids/ |
H A D | pids.sh | 6 # ./pids.sh caseno max 17 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 [all...] |
/third_party/node/deps/npm/node_modules/columnify/ |
H A D | utils.js | 17 * Pad `str` up to total length `max` with `chr`. 18 * If `str` is longer than `max`, padRight will return `str` unaltered. 21 * @param Number max total length of output string 26 function padRight(str, max, chr) { 29 var length = max - wcwidth(str) 35 * Pad `str` up to total length `max` with `chr`. 36 * If `str` is longer than `max`, padCenter will return `str` unaltered. 39 * @param Number max total length of output string 44 function padCenter(str, max, chr) { 47 var length = max [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
H A D | VertexFormatTests.cpp | 294 vs << "max(f32(" << std::to_string(expectedData[i * componentCount + j]) in MakeTestPipeline() 295 << ") / " << std::to_string(std::numeric_limits<T>::max()) in MakeTestPipeline() 339 vs << " success = success && max(testValFloatToUint, " 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() [all...] |
H A D | ComputeDispatchTests.cpp | 260 // Test indirect dispatches at max limit. 270 uint32_t max = GetSupportedLimits().limits.maxComputeWorkgroupsPerDimension; in TEST_P() local 273 // Note: Testing (max, max, max) is very slow. in TEST_P() 274 IndirectTest({max, 3, 4}, 0); in TEST_P() 275 IndirectTest({2, max, 4}, 0); in TEST_P() 276 IndirectTest({2, 3, max}, 0); in TEST_P() 279 // Test indirect dispatches exceeding the max limit are noop-ed. 286 uint32_t max in TEST_P() local 311 uint32_t max = GetSupportedLimits().limits.maxComputeWorkgroupsPerDimension; TEST_P() local [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Common/ |
H A D | Math.hpp | 31 #undef max macro 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() 209 // 'Safe' clamping operation which always returns a value between min and max (inclusiv 210 clamp_s(float x, float min, float max) clamp_s() argument 256 static const unsigned int max = 0xFFFFFFFF >> (32 - n); unorm() local 277 static const unsigned int max = 0xFFFFFFFF >> (32 - n + 1); snorm() local 308 static const unsigned int max = 0xFFFFFFFF >> (32 - n); ucast() local 329 static const unsigned int max = 0xFFFFFFFF >> (32 - n + 1); scast() local [all...] |
/third_party/skia/third_party/externals/swiftshader/src/System/ |
H A D | Math.hpp | 31 #undef max macro 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() 177 // 'Safe' clamping operation which always returns a value between min and max (inclusiv 178 clamp_s(float x, float min, float max) clamp_s() argument 224 static const unsigned int max = 0xFFFFFFFF >> (32 - n); unorm() local 245 static const unsigned int max = 0xFFFFFFFF >> (32 - n + 1); snorm() local 276 static const unsigned int max = 0xFFFFFFFF >> (32 - n); ucast() local 297 static const unsigned int max = 0xFFFFFFFF >> (32 - n + 1); scast() local [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/random/ |
H A D | log_uniform_int_distribution_test.cc | 60 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(), para in TYPED_TEST() [all...] |
/third_party/skia/tests/ |
H A D | SafeMathTest.cpp | 12 size_t max = std::numeric_limits<size_t>::max(); in DEF_TEST() local 15 size_t halfMax = max >> 1; in DEF_TEST() 20 REPORTER_ASSERT(r, safe.add(halfMax, halfMaxPlus1) == max); in DEF_TEST() 22 REPORTER_ASSERT(r, safe.add(max, 1) == 0); in DEF_TEST() 28 (void) safe.add(max, max); in DEF_TEST() 35 size_t sqrtMax = max >> halfBits; in DEF_TEST() 48 (void) safe.mul(max, max); in DEF_TEST() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
H A D | numbers_test_common.h | 71 {"0xffffffff", true, 16, (std::numeric_limits<uint32_t>::max)()}, in strtouint32_test_cases() 75 {" \t\n 0xffffffff", true, 16, (std::numeric_limits<uint32_t>::max)()}, in strtouint32_test_cases() 84 {"4294967295", true, 0, (std::numeric_limits<uint32_t>::max)()}, in strtouint32_test_cases() 103 {"4294967296", false, 0, (std::numeric_limits<uint32_t>::max)()}, in strtouint32_test_cases() 104 {"0x100000000", false, 0, (std::numeric_limits<uint32_t>::max)()}, in strtouint32_test_cases() 126 (std::numeric_limits<uint64_t>::max)()}, in strtouint64_test_cases() 137 (std::numeric_limits<uint64_t>::max)()}, in strtouint64_test_cases() 164 (std::numeric_limits<uint64_t>::max)()}, in strtouint64_test_cases() 166 (std::numeric_limits<uint64_t>::max)()}, // 0X versus 0x. in strtouint64_test_cases() 167 {"0x10000000000000000", false, 0, (std::numeric_limits<uint64_t>::max)()}, in strtouint64_test_cases() [all...] |
/third_party/node/deps/v8/tools/heap-stats/ |
H A D | model.js | 19 // Maps instance_types to their max memory consumption over all gcs. 40 this.peakMemory = Math.max(this.peakMemory, liveData.overall); 44 this.instanceTypePeakMemory[name] = Math.max(prev, data[name].overall); 58 let max = 0; 61 max = Math.max(max, entry.overall); 64 data_set.singleInstancePeakMemory = max; 93 let max = 0; 96 max [all...] |