Lines Matching refs:counter
135 PhiloxRandom(ResultType counter, Key key) : counter_(counter), key_(key) {} in PhiloxRandom() argument
159 ResultType counter = counter_; in operator() local
164 counter = ComputeSingleRound(counter, key); in operator()
166 counter = ComputeSingleRound(counter, key); in operator()
168 counter = ComputeSingleRound(counter, key); in operator()
170 counter = ComputeSingleRound(counter, key); in operator()
172 counter = ComputeSingleRound(counter, key); in operator()
174 counter = ComputeSingleRound(counter, key); in operator()
176 counter = ComputeSingleRound(counter, key); in operator()
178 counter = ComputeSingleRound(counter, key); in operator()
180 counter = ComputeSingleRound(counter, key); in operator()
182 counter = ComputeSingleRound(counter, key); in operator()
186 return counter; in operator()
222 PHILOX_DEVICE_INLINE static ResultType ComputeSingleRound(const ResultType& counter, in ComputeSingleRound() argument
226 MultiplyHighLow(kPhiloxM4x32A, counter[0], &lo0, &hi0); in ComputeSingleRound()
230 MultiplyHighLow(kPhiloxM4x32B, counter[2], &lo1, &hi1); in ComputeSingleRound()
233 result[0] = hi1 ^ counter[1] ^ key[0]; in ComputeSingleRound()
235 result[2] = hi0 ^ counter[3] ^ key[1]; in ComputeSingleRound()