Lines Matching refs:shift
104 static inline __u64 rol64(__u64 word, unsigned int shift) in rol64() argument
106 return (word << (shift & 63)) | (word >> ((-shift) & 63)); in rol64()
114 static inline __u64 ror64(__u64 word, unsigned int shift) in ror64() argument
116 return (word >> (shift & 63)) | (word << ((-shift) & 63)); in ror64()
124 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() argument
126 return (word << (shift & 31)) | (word >> ((-shift) & 31)); in rol32()
134 static inline __u32 ror32(__u32 word, unsigned int shift) in ror32() argument
136 return (word >> (shift & 31)) | (word << ((-shift) & 31)); in ror32()
144 static inline __u16 rol16(__u16 word, unsigned int shift) in rol16() argument
146 return (word << (shift & 15)) | (word >> ((-shift) & 15)); in rol16()
154 static inline __u16 ror16(__u16 word, unsigned int shift) in ror16() argument
156 return (word >> (shift & 15)) | (word << ((-shift) & 15)); in ror16()
164 static inline __u8 rol8(__u8 word, unsigned int shift) in rol8() argument
166 return (word << (shift & 7)) | (word >> ((-shift) & 7)); in rol8()
174 static inline __u8 ror8(__u8 word, unsigned int shift) in ror8() argument
176 return (word >> (shift & 7)) | (word << ((-shift) & 7)); in ror8()
188 __u8 shift = 31 - index; in sign_extend32() local
189 return (__s32)(value << shift) >> shift; in sign_extend32()
199 __u8 shift = 63 - index; in sign_extend64() local
200 return (__s64)(value << shift) >> shift; in sign_extend64()