Searched refs:max (Results 1 - 25 of 1128) sorted by relevance

1234567891011>>

/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp1y/
H A Dconstexpr-assert1.C6 inline constexpr int exampleFunction(int min, int max) argument
8 assert(min <= max);
9 return min + max;
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/tree-ssa/
H A Dloop-40.c6 int max = *it; local
8 if (*it > max)
9 max = *it;
10 return max;
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/
H A Dpr56890-1.c7 unsigned int buggy(unsigned int min, unsigned int max) argument
9 if (max < 16384) {
11 num16 = min + (long) ((double) (max - min + 1.0) * (num16 / (65535 + 1.0)));
H A Dpr56890-2.c7 unsigned int buggy(unsigned int min, unsigned int max) argument
10 if (max < 16384) {
12 num16 = min + (long) ((double) (max - min + 1.0) * (num16 / (65535 + 1.0)));
16 (number) = min + (long) ((double) (max - min + 1.0) * (number / (4294967295U + 1.0)));
H A Dpr28162.c6 float t0, max; local
12 if ( t0 >= max )
13 max = t0;
H A Dpr51408.c12 int max = (b > 0) ? b : 0; local
13 return max - a;
/haiku-buildtools/gcc/gcc/testsuite/c-c++-common/asan/
H A Daggressive-opts.c12 int max = 0; local
14 if (max < ext)
15 max = ext;
17 for (i = 0; i <= max; i++)
/haiku-buildtools/gcc/libstdc++-v3/testsuite/18_support/numeric_limits/
H A D29989.cc21 #define max(a,b) quirk macro
/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/compile/
H A Dpr17906.c4 usc_recressive_func(int cnt, int max, struct usc_bigstack_t bstack) argument
6 usc_recressive_func(cnt+1, max, bstack);
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/vect/
H A Dno-scevccp-noreassoc-slp-reduc-7.c17 unsigned int max = 50; local
20 max = max < ub[2*i] ? ub[2*i] : max;
21 max = max < ub[2*i + 1] ? ub[2*i + 1] : max;
25 if (max != MAX)
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/tree-prof/
H A Dupdate-loopch.c2 int max = 33333; variable
8 for (i = 0; i < max; i++)
/haiku-buildtools/gcc/libstdc++-v3/testsuite/25_algorithms/max/
H A Dconstexpr.cc24 static_assert(std::max(1, 2) == 2, "");
25 static_assert(std::max(2, 1, std::greater<int>()) == 1, "");
26 static_assert(std::max({1, 2}) == 2, "");
27 static_assert(std::max({2, 1}, std::greater<int>())==1, "");
H A D2.cc34 VERIFY( 3 == std::max(A<int>::a, 2) );
35 VERIFY( 4 == std::max(A<int>::a, 4) );
37 VERIFY( 3u == std::max(A<unsigned int>::a, 2u) );
38 VERIFY( 4u == std::max(A<unsigned int>::a, 4u) );
40 VERIFY( 3l == std::max(A<long>::a, 2l) );
41 VERIFY( 4l == std::max(A<long>::a, 4l) );
43 VERIFY( 3ul == std::max(A<unsigned long>::a, 2ul) );
44 VERIFY( 4ul == std::max(A<unsigned long>::a, 4ul) );
47 VERIFY( 3ll == std::max(A<long long>::a, 2ll) );
48 VERIFY( 4ll == std::max(
[all...]
/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/execute/
H A D990404-1.c10 int i, mi, max; local
11 max = 0;
13 if (x[i] > max) {
14 max = x[i];
18 if (max == 0)
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/simulate-thread/
H A Datomic-other-int128.c12 __int128_t max = ~0; variable
33 if (value != zero && value != max)
51 /* All values written to 'value' alternate between 'zero' and 'max'. Any other
62 ret = __atomic_exchange_n (&value, max, __ATOMIC_SEQ_CST);
63 if (ret != zero || value != max)
70 ret = __atomic_fetch_add (&value, max, __ATOMIC_SEQ_CST);
71 if (value != max || ret != zero)
74 ret = __atomic_fetch_sub (&value, max, __ATOMIC_SEQ_CST);
75 if (value != zero || ret != max)
78 ret = __atomic_fetch_or (&value, max, __ATOMIC_SEQ_CS
[all...]
H A Datomic-other-longlong.c14 unsigned long long max = ~0; variable
36 if (value != zero && value != max)
54 /* All values written to 'value' alternate between 'zero' and 'max'. Any other
64 ret = __atomic_exchange_n (&value, max, __ATOMIC_SEQ_CST);
65 if (ret != zero || value != max)
72 ret = __atomic_fetch_add (&value, max, __ATOMIC_SEQ_CST);
73 if (value != max || ret != zero)
76 ret = __atomic_fetch_sub (&value, max, __ATOMIC_SEQ_CST);
77 if (value != zero || ret != max)
80 ret = __atomic_fetch_or (&value, max, __ATOMIC_SEQ_CS
[all...]
H A Datomic-other-short.c12 unsigned short max = ~0; variable
34 if (value != zero && value != max)
53 'max'. Any other value detected by simulate_thread_step_verify()
63 ret = __atomic_exchange_n (&value, max, __ATOMIC_SEQ_CST);
64 if (ret != zero || value != max)
71 ret = __atomic_fetch_add (&value, max, __ATOMIC_SEQ_CST);
72 if (value != max || ret != zero)
75 ret = __atomic_fetch_sub (&value, max, __ATOMIC_SEQ_CST);
76 if (value != zero || ret != max)
79 ret = __atomic_fetch_or (&value, max, __ATOMIC_SEQ_CS
[all...]
H A Datomic-other-int.c12 unsigned int max = ~0; variable
34 if (value != zero && value != max)
53 'max'. Any other value detected by simulate_thread_step_verify()
64 ret = __atomic_exchange_n (&value, max, __ATOMIC_SEQ_CST);
65 if (ret != zero || value != max)
72 ret = __atomic_fetch_add (&value, max, __ATOMIC_SEQ_CST);
73 if (value != max || ret != zero)
76 ret = __atomic_fetch_sub (&value, max, __ATOMIC_SEQ_CST);
77 if (value != zero || ret != max)
80 ret = __atomic_fetch_or (&value, max, __ATOMIC_SEQ_CS
[all...]
/haiku-buildtools/legacy/gcc/libio/dbz/
H A Drandom.c9 * Algorithm from ANSI C standard. Limitation: max-min <= 32767.
12 range(min, max)
14 int max;
20 return(temp%(max - min + 1) + min);
/haiku-buildtools/gcc/gcc/testsuite/gcc.target/i386/
H A Dminmax-1.c5 #define max(a,b) (((a) > (b))? (a) : (b)) macro
9 return (max(a,1));
H A Dminmax-2.c5 #define max(a,b) (((a) > (b))? (a) : (b)) macro
9 return (max(a,1));
/haiku-buildtools/gcc/libstdc++-v3/scripts/
H A Dgen_bind_includers.pl4 $max = shift @ARGV;
11 for ($num_args = 2; $num_args <= $max; ++$num_args) {
H A Dgen_includers2.pl4 $max = shift @ARGV;
11 for ($num_args = 2; $num_args <= $max; ++$num_args) {
/haiku-buildtools/isl/test_inputs/codegen/cloog/
H A Dstride3.c1 for (int c0 = max(m, 1); c0 <= n; c0 += 1)
/haiku-buildtools/isl/test_inputs/codegen/omega/
H A Dwak4-0.c1 for (int c0 = max(max(max(max(a1, a2), a3), a4), a5); c0 <= min(min(min(min(b5, b4), b3), b2), b1); c0 += 1) {

Completed in 426 milliseconds

1234567891011>>