Lines Matching defs:bits
55 uint64_t BenchCodeGenerator::GetRandomBits(int bits) {
56 VIXL_ASSERT((bits >= 0) && (bits <= 64));
59 while (bits >= 32) {
62 bits -= 32;
64 if (bits == 0) return result;
66 // We often only want a few bits at a time, so use stored entropy to avoid
69 if (bits > rnd_bits_) {
70 // We want more bits than we have.
72 bits -= rnd_bits_;
78 VIXL_ASSERT(bits <= rnd_bits_);
79 result = (result << bits) | (rnd_ % (UINT32_C(1) << bits));
80 rnd_ >>= bits;
81 rnd_bits_ -= bits;