Home | History | Annotate | Download | only in utils

Lines Matching refs:static_cast

51   SetSeed((static_cast<int64_t>(first_half) << 32) + second_half);
86 return static_cast<int>((max * static_cast<int64_t>(Next(31))) >> 31);
100 return ((static_cast<int64_t>(Next(26)) << 27) + Next(27)) /
101 static_cast<double>(static_cast<int64_t>(1) << 53);
107 static_cast<uint8_t*>(buffer)[n] = static_cast<uint8_t>(Next(8));
117 uint64_t product = static_cast<uint64_t>(seed_) * kMultiplier;
119 // should be OK. Use a static_cast to explicitly state that we know what we're
121 int64_t seed = static_cast<int64_t>((product + kAddend) & kMask);
123 return static_cast<int>(seed >> (48 - bits));