Searched refs:rotl32 (Results 1 - 1 of 1) sorted by relevance

/haiku/src/add-ons/kernel/bus_managers/random/
H A Dyarrow_rng.cpp25 #define rotl32(x, n) ((((uint32)(x)) << ((int) ((n) & 31))) | (((uint32)(x)) >> ((int) ((32 - ((n) & 31)))))) macro
28 ((rotl32((uint32)(x), 8) & 0x00ff00ff) | (rotr32((uint32)(x), 8) & 0xff00ff00))
81 _x.D[0] = rotl32(((bswap32(_x.D[0]) | 1) * x->D[1]), 5);
82 _x.D[1] = rotl32((bswap32(_x.D[1]) | 1) * x->D[0], 5);
83 _y.D[0] = (bswap32(rotl32(_y.D[0] ^ _x.D[0], _x.D[1])) + anyA) * oddC;
84 _y.D[1] = (bswap32(rotl32(_y.D[1] ^ _x.D[1], _x.D[0])) + anyB) * oddD;
105 _x.D[0] = rotl32((bswap32(_x.D[0]) | 1) * x->D[1], 5);
106 _x.D[1] = rotl32((bswap32(_x.D[1]) | 1) * x->D[0], 5);

Completed in 25 milliseconds