Lines Matching defs:rot
56 static inline uint8_t pcg_rotr_8(uint8_t value, unsigned int rot)
63 __asm__ ("rorb %%cl, %0" : "=r" (value) : "0" (value), "c" (rot));
66 return (value >> rot) | (value << ((- rot) & 7));
70 static inline uint16_t pcg_rotr_16(uint16_t value, unsigned int rot)
73 __asm__ ("rorw %%cl, %0" : "=r" (value) : "0" (value), "c" (rot));
76 return (value >> rot) | (value << ((- rot) & 15));
80 static inline uint32_t pcg_rotr_32(uint32_t value, unsigned int rot)
83 __asm__ ("rorl %%cl, %0" : "=r" (value) : "0" (value), "c" (rot));
86 return (value >> rot) | (value << ((- rot) & 31));
90 static inline uint64_t pcg_rotr_64(uint64_t value, unsigned int rot)
95 __asm__ ("rorq %%cl, %0" : "=r" (value) : "0" (value), "c" (rot));
98 return (value >> rot) | (value << ((- rot) & 63));
103 static inline pcg128_t pcg_rotr_128(pcg128_t value, unsigned int rot)
105 return (value >> rot) | (value << ((- rot) & 127));