/frameworks/support/compat/src/main/java/androidx/core/math/ |
MathUtils.java | 34 * @param max maximum resulting value. 38 public static float clamp(float value, float min, float max) { 41 } else if (value > max) { 42 return max; 55 * @param max maximum resulting value. 59 public static double clamp(double value, double min, double max) { 62 } else if (value > max) { 63 return max; 76 * @param max maximum resulting value. 80 public static int clamp(int value, int min, int max) { [all...] |
/external/fio/ |
io_u_queue.c | 11 q->max = nr; 22 ring->max = nr + 1; 23 if (ring->max & (ring->max - 1)) { 24 ring->max--; 25 ring->max |= ring->max >> 1; 26 ring->max |= ring->max >> 2; 27 ring->max |= ring->max >> 4 [all...] |
/external/strace/ |
negated_errno.h | 39 kernel_ulong_t max = -(kernel_long_t) MAX_ERRNO_VALUE; local 44 max = (uint32_t) max; 48 return val >= max;
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
ZipFieldInvariantMaxValue.java | 27 private long max; field in class:ZipFieldInvariantMaxValue 32 * @param max the maximum value allowed for the field 34 ZipFieldInvariantMaxValue(int max) { 35 this.max = max; 40 return value <= max; 45 return "Maximum value " + max;
|
/external/libcxx/test/std/algorithms/alg.sorting/alg.min.max/ |
max_init_list.pass.cpp | 16 // max(initializer_list<T> t); 25 int i = std::max({2, 3, 1}); 27 i = std::max({2, 1, 3}); 29 i = std::max({3, 1, 2}); 31 i = std::max({3, 2, 1}); 33 i = std::max({1, 2, 3}); 35 i = std::max({1, 3, 2}); 39 static_assert(std::max({1, 3, 2}) == 3, ""); 40 static_assert(std::max({2, 1, 3}) == 3, ""); 41 static_assert(std::max({3, 2, 1}) == 3, "") [all...] |
max_init_list_comp.pass.cpp | 16 // max(initializer_list<T> t, Compare comp); 26 int i = std::max({2, 3, 1}, std::greater<int>()); 28 i = std::max({2, 1, 3}, std::greater<int>()); 30 i = std::max({3, 1, 2}, std::greater<int>()); 32 i = std::max({3, 2, 1}, std::greater<int>()); 34 i = std::max({1, 2, 3}, std::greater<int>()); 36 i = std::max({1, 3, 2}, std::greater<int>()); 40 static_assert(std::max({1, 3, 2}, std::greater<int>()) == 1, ""); 41 static_assert(std::max({2, 1, 3}, std::greater<int>()) == 1, ""); 42 static_assert(std::max({3, 2, 1}, std::greater<int>()) == 1, "") [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/algorithms/alg.sorting/alg.min.max/ |
max_init_list.pass.cpp | 16 // max(initializer_list<T> t); 25 int i = std::max({2, 3, 1}); 27 i = std::max({2, 1, 3}); 29 i = std::max({3, 1, 2}); 31 i = std::max({3, 2, 1}); 33 i = std::max({1, 2, 3}); 35 i = std::max({1, 3, 2}); 39 static_assert(std::max({1, 3, 2}) == 3, ""); 40 static_assert(std::max({2, 1, 3}) == 3, ""); 41 static_assert(std::max({3, 2, 1}) == 3, "") [all...] |
max_init_list_comp.pass.cpp | 16 // max(initializer_list<T> t, Compare comp); 26 int i = std::max({2, 3, 1}, std::greater<int>()); 28 i = std::max({2, 1, 3}, std::greater<int>()); 30 i = std::max({3, 1, 2}, std::greater<int>()); 32 i = std::max({3, 2, 1}, std::greater<int>()); 34 i = std::max({1, 2, 3}, std::greater<int>()); 36 i = std::max({1, 3, 2}, std::greater<int>()); 40 static_assert(std::max({1, 3, 2}, std::greater<int>()) == 1, ""); 41 static_assert(std::max({2, 1, 3}, std::greater<int>()) == 1, ""); 42 static_assert(std::max({3, 2, 1}, std::greater<int>()) == 1, "") [all...] |
/external/libcxx/test/std/utilities/time/time.traits/time.traits.duration_values/ |
max.pass.cpp | 12 // duration_values::max 23 assert(std::chrono::duration_values<int>::max() == 24 std::numeric_limits<int>::max()); 25 assert(std::chrono::duration_values<double>::max() == 26 std::numeric_limits<double>::max()); 27 assert(std::chrono::duration_values<Rep>::max() == 28 std::numeric_limits<Rep>::max()); 30 static_assert(std::chrono::duration_values<int>::max() == 31 std::numeric_limits<int>::max(), ""); 32 static_assert(std::chrono::duration_values<double>::max() = [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/time/time.traits/time.traits.duration_values/ |
max.pass.cpp | 12 // duration_values::max 23 assert(std::chrono::duration_values<int>::max() == 24 std::numeric_limits<int>::max()); 25 assert(std::chrono::duration_values<double>::max() == 26 std::numeric_limits<double>::max()); 27 assert(std::chrono::duration_values<Rep>::max() == 28 std::numeric_limits<Rep>::max()); 30 static_assert(std::chrono::duration_values<int>::max() == 31 std::numeric_limits<int>::max(), ""); 32 static_assert(std::chrono::duration_values<double>::max() = [all...] |
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/ |
max.pass.cpp | 15 // result_type max() const; 25 assert(d.max() == std::numeric_limits<int>::max());
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/ |
max.pass.cpp | 15 // result_type max() const; 25 assert(d.max() == std::numeric_limits<int>::max());
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/ |
max.pass.cpp | 15 // result_type max() const; 25 assert(d.max() == std::numeric_limits<int>::max());
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/ |
max.pass.cpp | 15 // result_type max() const; 25 assert(d.max() == std::numeric_limits<int>::max());
|
/external/dhcpcd-6.8.2/compat/ |
closefrom.c | 35 long max; local 39 max = sysconf(_SC_OPEN_MAX); 41 max = getdtablesize(); 44 for (i = fd; i < max; i++) {
|
/toolchain/binutils/binutils-2.27/ld/testsuite/ld-nios2/ |
u16_symbol.s | 3 .global max 5 .set max, 0xffff
|
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/rx/ |
max.d | 9 0: fd 74 40 80 max #-128, r0 10 4: fd 74 4f 80 max #-128, r15 11 8: fd 74 40 7f max #127, r0 12 c: fd 74 4f 7f max #127, r15 13 10: fd 78 40 00 80 max #0xffff8000, r0 14 15: fd 78 4f 00 80 max #0xffff8000, r15 15 1a: fd 7c 40 00 80 00 max #0x8000, r0 16 20: fd 7c 4f 00 80 00 max #0x8000, r15 17 26: fd 7c 40 00 00 80 max #0xff800000, r0 18 2c: fd 7c 4f 00 00 80 max #0xff800000, r1 [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
find_min_max.cpp | 142 int min, max; local 147 max = min = *input_ptr; 154 if (*input_ptr > max) 156 max = *input_ptr; 169 *max_ptr = max;
|
/art/test/911-get-stack-trace/src/art/ |
Recurse.java | 20 public static int foo(int x, int start, int max, ControlData data) { 21 bar(x, start, max, data); 25 private static long bar(int x, int start, int max, ControlData data) { 26 baz(x, start, max, data); 30 private static Object baz(int x, int start, int max, ControlData data) { 32 printOrWait(start, max, data); 34 foo(x - 1, start, max, data); 39 private static void printOrWait(int start, int max, ControlData data) { 41 PrintThread.print(Thread.currentThread(), start, max); local
|
/libcore/ojluni/src/main/java/java/util/ |
IntSummaryStatistics.java | 30 * A state object for collecting statistics such as count, min, max, sum, and 68 private int max = Integer.MIN_VALUE; field in class:IntSummaryStatistics 72 * {@code Integer.MAX_VALUE} min, {@code Integer.MIN_VALUE} max and zero 87 max = Math.max(max, value); 100 max = Math.max(max, other.max); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/ |
primes.py | 5 def primes(min, max):
6 if max >= 2 >= min:
10 while i <= max:
22 min, max = 2, 0x7fffffff
26 max = int(sys.argv[2])
27 primes(min, max)
|
/external/python/cpython2/Demo/scripts/ |
primes.py | 5 def primes(min, max): 6 if max >= 2 >= min: 10 while i <= max: 22 min, max = 2, 0x7fffffff 26 max = int(sys.argv[2]) 27 primes(min, max)
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowProgressBar.java | 13 private int max = 100; field in class:ShadowProgressBar 20 final int max = attributeSet.getAttributeIntValue("android", "max", this.max); local 22 if (max >= 0) 23 setMax(max); 27 public void setMax(int max) { 28 this.max = max; 29 if (progress > max) { [all...] |
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
InclusiveIntRange.java | 28 private final int max; field in class:InclusiveIntRange 30 private InclusiveIntRange(int min, int max) { 32 this.max = max; 40 return max; 43 public static InclusiveIntRange fromTo(int min, int max) { 44 return new InclusiveIntRange(min, max); 60 int rangeMax = range.max; 71 if (rangeMax >= max) { 76 if (testValue <= max) { [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/exception/ |
NumberIsTooLargeException.java | 36 private final Number max; field in class:NumberIsTooLargeException 46 * @param max maximum. 50 Number max, 52 this(null, wrong, max, boundIsAllowed); 59 * @param max maximum. 64 Number max, 70 wrong, max); 72 this.max = max; 87 return max; [all...] |