Lines Matching defs:shift
189 * @shift: bits to roll
191 static inline uint8_t rol8(uint8_t word, unsigned int shift)
193 return (word << shift) | (word >> (8 - shift));
199 * @shift: bits to roll
201 static inline uint8_t ror8(uint8_t word, unsigned int shift)
203 return (word >> shift) | (word << (8 - shift));
209 * @shift: bits to roll
211 static inline uint16_t rol16(uint16_t word, unsigned int shift)
213 return (word << shift) | (word >> (16 - shift));
219 * @shift: bits to roll
221 static inline uint16_t ror16(uint16_t word, unsigned int shift)
223 return (word >> shift) | (word << (16 - shift));
229 * @shift: bits to roll
231 static inline uint32_t rol32(uint32_t word, unsigned int shift)
233 return (word << shift) | (word >> (32 - shift));
239 * @shift: bits to roll
241 static inline uint32_t ror32(uint32_t word, unsigned int shift)
243 return (word >> shift) | (word << (32 - shift));
249 * @shift: bits to roll
251 static inline uint64_t rol64(uint64_t word, unsigned int shift)
253 return (word << shift) | (word >> (64 - shift));
259 * @shift: bits to roll
261 static inline uint64_t ror64(uint64_t word, unsigned int shift)
263 return (word >> shift) | (word << (64 - shift));
323 /* Note that this implementation relies on right shift of signed
324 * integers being an arithmetic shift.
348 /* Note that this implementation relies on right shift of signed
349 * integers being an arithmetic shift.