Home
last modified time | relevance | path

Searched refs:arc4_random_upper_bound (Results 1 – 1 of 1) sorted by relevance

/frameworks/libs/binary_translation/base/
Dmmap_posix.cc65 uintptr_t arc4_random_upper_bound = kMaxAddress - kMinAddress; in TryMmap32Bit() local
71 if (__builtin_usubl_overflow(arc4_random_upper_bound, args.size, &arc4_random_upper_bound)) { in TryMmap32Bit()
74 CHECK_LE(arc4_random_upper_bound, kMaxAddress - kMinAddress); in TryMmap32Bit()
76 if (hint == 0 || hint > (arc4_random_upper_bound + kMinAddress)) { in TryMmap32Bit()
77 hint = arc4random_uniform(static_cast<uint32_t>(arc4_random_upper_bound)) + kMinAddress; in TryMmap32Bit()
101 hint = arc4random_uniform(static_cast<uint32_t>(arc4_random_upper_bound)) + kMinAddress; in TryMmap32Bit()