Lines Matching refs:word
105 static inline __u64 rol64(__u64 word, unsigned int shift) in rol64() argument
107 return (word << (shift & 63)) | (word >> ((-shift) & 63)); in rol64()
115 static inline __u64 ror64(__u64 word, unsigned int shift) in ror64() argument
117 return (word >> (shift & 63)) | (word << ((-shift) & 63)); in ror64()
125 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() argument
127 return (word << (shift & 31)) | (word >> ((-shift) & 31)); in rol32()
135 static inline __u32 ror32(__u32 word, unsigned int shift) in ror32() argument
137 return (word >> (shift & 31)) | (word << ((-shift) & 31)); in ror32()
145 static inline __u16 rol16(__u16 word, unsigned int shift) in rol16() argument
147 return (word << (shift & 15)) | (word >> ((-shift) & 15)); in rol16()
155 static inline __u16 ror16(__u16 word, unsigned int shift) in ror16() argument
157 return (word >> (shift & 15)) | (word << ((-shift) & 15)); in ror16()
165 static inline __u8 rol8(__u8 word, unsigned int shift) in rol8() argument
167 return (word << (shift & 7)) | (word >> ((-shift) & 7)); in rol8()
175 static inline __u8 ror8(__u8 word, unsigned int shift) in ror8() argument
177 return (word >> (shift & 7)) | (word << ((-shift) & 7)); in ror8()
240 static inline unsigned int __ffs64(u64 word) in __ffs64() argument
243 if (((u32)word) == 0UL) in __ffs64()
244 return __ffs((u32)(word >> 32)) + 32; in __ffs64()
248 return __ffs((unsigned long)word); in __ffs64()
256 static inline unsigned int fns(unsigned long word, unsigned int n) in fns() argument
258 while (word && n--) in fns()
259 word &= word - 1; in fns()
261 return word ? __ffs(word) : BITS_PER_LONG; in fns()