Home
last modified time | relevance | path

Searched refs:UINT_MAX (Results 1 – 25 of 528) sorted by relevance

12345678910>>...22

/external/clang/test/Analysis/
Dadditive-folding.cpp5 #define UINT_MAX (~0U) macro
6 #define INT_MAX (UINT_MAX & (UINT_MAX >> 1))
44 if (a == UINT_MAX) { in eq_ne()
46 clang_analyzer_eval(a-1 == UINT_MAX-1); // expected-warning{{TRUE}} in eq_ne()
49 clang_analyzer_eval(a-1 != UINT_MAX-1); // expected-warning{{TRUE}} in eq_ne()
75 if (a >= UINT_MAX) in baselineGE()
76 clang_analyzer_eval(a == UINT_MAX); // expected-warning{{TRUE}} in baselineGE()
78 clang_analyzer_eval(a != UINT_MAX); // expected-warning{{TRUE}} in baselineGE()
82 if (a < UINT_MAX) in baselineLT()
83 clang_analyzer_eval(a != UINT_MAX); // expected-warning{{TRUE}} in baselineLT()
[all …]
Dadditive-folding-range-constraints.c5 #define UINT_MAX (~0U) macro
6 #define INT_MAX (UINT_MAX & (UINT_MAX >> 1))
15 clang_analyzer_eval(a < UINT_MAX-1); // expected-warning{{TRUE}} in smallAdjustmentGT()
17 clang_analyzer_eval(a == UINT_MAX-1 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentGT()
22 clang_analyzer_eval(a < UINT_MAX-1 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentGE()
24 clang_analyzer_eval(a == UINT_MAX-1); // expected-warning{{TRUE}} in smallAdjustmentGE()
29 clang_analyzer_eval(a == 0 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentLT()
34 clang_analyzer_eval(a == 0 || a == 1 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentLE()
42 if (a-2 > UINT_MAX-1) in largeAdjustmentGT()
49 if (a-2 >= UINT_MAX-1) in largeAdjustmentGE()
[all …]
Dindex-type.c5 #define UINT_MAX (~0u) macro
9 #define X86_ARRAY_SIZE (UINT_MAX/2 + 4)
13 char *ptr = arr + UINT_MAX/2; in testIndexTooBig()
24 char *ptr = arr + UINT_MAX/2; in testIndexOverflow64()
/external/llvm-project/clang/test/Analysis/
Dadditive-folding.cpp5 #define UINT_MAX (~0U) macro
6 #define INT_MAX (UINT_MAX & (UINT_MAX >> 1))
44 if (a == UINT_MAX) { in eq_ne()
46 clang_analyzer_eval(a-1 == UINT_MAX-1); // expected-warning{{TRUE}} in eq_ne()
49 clang_analyzer_eval(a-1 != UINT_MAX-1); // expected-warning{{TRUE}} in eq_ne()
75 if (a >= UINT_MAX) in baselineGE()
76 clang_analyzer_eval(a == UINT_MAX); // expected-warning{{TRUE}} in baselineGE()
78 clang_analyzer_eval(a != UINT_MAX); // expected-warning{{TRUE}} in baselineGE()
82 if (a < UINT_MAX) in baselineLT()
83 clang_analyzer_eval(a != UINT_MAX); // expected-warning{{TRUE}} in baselineLT()
[all …]
Dadditive-folding-range-constraints.c5 #define UINT_MAX (~0U) macro
6 #define INT_MAX (UINT_MAX & (UINT_MAX >> 1))
15 clang_analyzer_eval(a < UINT_MAX-1); // expected-warning{{TRUE}} in smallAdjustmentGT()
17 clang_analyzer_eval(a == UINT_MAX-1 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentGT()
22 clang_analyzer_eval(a < UINT_MAX-1 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentGE()
24 clang_analyzer_eval(a == UINT_MAX-1); // expected-warning{{TRUE}} in smallAdjustmentGE()
29 clang_analyzer_eval(a == 0 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentLT()
34 clang_analyzer_eval(a == 0 || a == 1 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentLE()
42 if (a-2 > UINT_MAX-1) in largeAdjustmentGT()
49 if (a-2 >= UINT_MAX-1) in largeAdjustmentGE()
[all …]
Dconstraint_manager_negate_difference.c8 #define UINT_MAX (~UINT_MIN) macro
9 #define UINT_MID (UINT_MAX / 2 + 1)
10 #define INT_MAX (UINT_MAX & (UINT_MAX >> 1))
11 #define INT_MIN (UINT_MAX & ~(UINT_MAX >> 1))
140 if (m - n == UINT_MAX) { in negate_unsigned_max()
148 clang_analyzer_eval(n - m == UINT_MAX); // expected-warning{{TRUE}} in negate_unsigned_one()
149 clang_analyzer_eval(n - m < UINT_MAX); // expected-warning{{FALSE}} in negate_unsigned_one()
Dindex-type.c5 #define UINT_MAX (~0u) macro
9 #define X86_ARRAY_SIZE (UINT_MAX/2 + 4)
13 char *ptr = arr + UINT_MAX/2; in testIndexTooBig()
24 char *ptr = arr + UINT_MAX/2; in testIndexOverflow64()
Dconstant-folding.c3 #define UINT_MAX (~0U) macro
4 #define INT_MAX (int)(UINT_MAX & (UINT_MAX >> 1))
5 #define INT_MIN (int)(UINT_MAX & ~(UINT_MAX >> 1))
/external/linux-kselftest/tools/testing/selftests/bpf/verifier/
Djmp32.c208 BPF_JMP32_IMM(BPF_JGE, BPF_REG_7, UINT_MAX - 1, 1),
218 .data64 = { UINT_MAX, }
221 .data64 = { UINT_MAX - 1, }
233 BPF_LD_IMM64(BPF_REG_8, UINT_MAX | 1ULL << 32),
245 .data64 = { UINT_MAX, }
251 .data64 = { (UINT_MAX - 1) | 2ULL << 32, }
276 BPF_JMP32_IMM(BPF_JGT, BPF_REG_7, UINT_MAX - 1, 1),
286 .data64 = { UINT_MAX, }
289 .data64 = { UINT_MAX - 1, }
301 BPF_LD_IMM64(BPF_REG_8, (UINT_MAX - 1) | 1ULL << 32),
[all …]
/external/python/cpython2/Lib/test/
Dtest_ucn.py16 from _testcapi import INT_MAX, PY_SSIZE_T_MAX, UINT_MAX
18 INT_MAX = PY_SSIZE_T_MAX = UINT_MAX = 2**64 - 1
148 @unittest.skipUnless(UINT_MAX < sys.maxint, "needs UINT_MAX < sys.maxint")
149 @test_support.bigmemtest(minsize=UINT_MAX + 1,
157 x = b'\\N{SPACE' + b'x' * int(UINT_MAX + 1) + b'}'
158 self.assertEqual(len(x), len(b'\\N{SPACE}') + (UINT_MAX + 1))
/external/llvm-project/llvm/lib/Target/SystemZ/
DSystemZHazardRecognizer.cpp86 LastFPdOpCycleIdx = UINT_MAX; in Reset()
158 if (CriticalResourceIdx != UINT_MAX && in nextGroup()
161 CriticalResourceIdx = UINT_MAX; in nextGroup()
242 if (CriticalResourceIdx != UINT_MAX) in dumpProcResourceCounters()
253 if (LastFPdOpCycleIdx != UINT_MAX) in dumpState()
261 CriticalResourceIdx = UINT_MAX; in clearProcResCounters()
307 (CriticalResourceIdx == UINT_MAX || in EmitInstruction()
374 if (LastFPdOpCycleIdx == UINT_MAX) in isFPdOpPreferred_distance()
399 else if (CriticalResourceIdx != UINT_MAX) { in resourcesCost()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZHazardRecognizer.cpp86 LastFPdOpCycleIdx = UINT_MAX; in Reset()
158 if (CriticalResourceIdx != UINT_MAX && in nextGroup()
161 CriticalResourceIdx = UINT_MAX; in nextGroup()
242 if (CriticalResourceIdx != UINT_MAX) in dumpProcResourceCounters()
253 if (LastFPdOpCycleIdx != UINT_MAX) in dumpState()
261 CriticalResourceIdx = UINT_MAX; in clearProcResCounters()
307 (CriticalResourceIdx == UINT_MAX || in EmitInstruction()
374 if (LastFPdOpCycleIdx == UINT_MAX) in isFPdOpPreferred_distance()
399 else if (CriticalResourceIdx != UINT_MAX) { in resourcesCost()
/external/e2fsprogs/intl/
Dgmo.h51 #ifndef UINT_MAX
52 # define UINT_MAX UINT_MAX_32_BITS macro
55 #if UINT_MAX == UINT_MAX_32_BITS
/external/arm-trusted-firmware/plat/rockchip/common/
Dparams_setup.c25 static struct bl_aux_gpio_info rst_gpio = { .index = UINT_MAX } ;
26 static struct bl_aux_gpio_info poweroff_gpio = { .index = UINT_MAX };
179 if (rst_gpio.index == UINT_MAX) in plat_get_rockchip_gpio_reset()
187 if (poweroff_gpio.index == UINT_MAX) in plat_get_rockchip_gpio_poweroff()
/external/vboot_reference/firmware/lib/
Dvboot_audio.c19 #ifndef UINT_MAX
20 #define UINT_MAX 4294967295U /* 0xffffffff */ macro
112 if ((sizeof(VbDevMusicNote) > UINT_MAX / hdr->count) || in VbGetDevMusicNotes()
114 UINT_MAX - hdr->count * sizeof(VbDevMusicNote))) { in VbGetDevMusicNotes()
167 if (hdr->count > (UINT_MAX / sizeof(VbDevMusicNote) - 1)) { in VbGetDevMusicNotes()
/external/python/cpython3/Lib/test/
Dtest_ucn.py17 from _testcapi import INT_MAX, PY_SSIZE_T_MAX, UINT_MAX
19 INT_MAX = PY_SSIZE_T_MAX = UINT_MAX = 2**64 - 1
228 @support.bigmemtest(size=UINT_MAX + 1, memuse=2 + 1, dry_run=False)
231 x = b'\\N{SPACE' + b'x' * (UINT_MAX + 1) + b'}'
232 self.assertEqual(len(x), len(b'\\N{SPACE}') + (UINT_MAX + 1))
/external/jsoncpp/test/data/
Dlegacy_test_real_08.expected2 // same as UINT_MAX in base 10 and digit less than UINT_MAX's last digit in
Dlegacy_test_real_08.json2 // same as UINT_MAX in base 10 and digit less than UINT_MAX's last digit in
/external/swiftshader/src/OpenGL/compiler/
DAnalyzeCallDepth.cpp73 return UINT_MAX; in analyzeCallDepth()
84 if(calleeDepth != UINT_MAX) ++calleeDepth; in analyzeCallDepth()
232 if(depth != UINT_MAX) ++depth; in analyzeCallDepth()
237 if(globalDepth != UINT_MAX) ++globalDepth; in analyzeCallDepth()
/external/python/cpython2/Modules/
Dzlibmodule.c136 if ((size_t)*remains > UINT_MAX) { in arrange_input_buffer()
137 zst->avail_in = UINT_MAX; in arrange_input_buffer()
175 if ((size_t)(length - occupied) > UINT_MAX) { in arrange_output_buffer_with_maximum()
176 zst->avail_out = UINT_MAX; in arrange_output_buffer_with_maximum()
1012 while ((size_t)len > UINT_MAX) { in PyZlib_adler32()
1013 adler32val = adler32(adler32val, buf, UINT_MAX); in PyZlib_adler32()
1014 buf += (size_t) UINT_MAX; in PyZlib_adler32()
1015 len -= (size_t) UINT_MAX; in PyZlib_adler32()
1044 while ((size_t)len > UINT_MAX) { in PyZlib_crc32()
1045 crc32val = crc32(crc32val, buf, UINT_MAX); in PyZlib_crc32()
[all …]
/external/clang/test/Headers/
Dlimits.cpp15 _Static_assert(INT_MAX == UINT_MAX/2, "");
25 _Static_assert(UINT_MAX == (unsigned int)~0ULL, "");
/external/ltp/testcases/kernel/syscalls/alarm/
Dalarm02.c25 {"UINT_MAX/2", UINT_MAX/2},
26 {"UINT_MAX/4", UINT_MAX/4},
/external/llvm-project/clang/test/Headers/
Dlimits.cpp15 _Static_assert(INT_MAX == UINT_MAX/2, "");
25 _Static_assert(UINT_MAX == (unsigned int)~0ULL, "");
/external/libcxx/test/std/depr/depr.c.headers/
Dlimits_h.pass.cpp62 #ifndef UINT_MAX
63 #error UINT_MAX not defined
/external/llvm-project/libcxx/test/std/language.support/support.limits/c.limits/
Dclimits.pass.cpp63 #ifndef UINT_MAX
64 #error UINT_MAX not defined

12345678910>>...22