Lines Matching refs:word
85 tlsf_decl int tlsf_ffs(unsigned int word) in tlsf_ffs() argument
87 const unsigned int reverse = word & (~word + 1); in tlsf_ffs()
94 tlsf_decl int tlsf_ffs(unsigned int word) in tlsf_ffs() argument
96 return __builtin_ffs(word) - 1; in tlsf_ffs()
101 tlsf_decl int tlsf_fls(unsigned int word) in tlsf_fls() argument
103 const int bit = word ? 32 - __builtin_clz(word) : 0; in tlsf_fls()
115 tlsf_decl int tlsf_fls(unsigned int word) in tlsf_fls() argument
118 return _BitScanReverse(&index, word) ? index : -1; in tlsf_fls()
121 tlsf_decl int tlsf_ffs(unsigned int word) in tlsf_ffs() argument
124 return _BitScanForward(&index, word) ? index : -1; in tlsf_ffs()
132 tlsf_decl int tlsf_fls(unsigned int word) in tlsf_fls() argument
134 const int bit = 32 - _CountLeadingZeros(word); in tlsf_fls()
138 tlsf_decl int tlsf_ffs(unsigned int word) in tlsf_ffs() argument
140 const unsigned int reverse = word & (~word + 1); in tlsf_ffs()
148 tlsf_decl int tlsf_ffs(unsigned int word) in tlsf_ffs() argument
150 const unsigned int reverse = word & (~word + 1); in tlsf_ffs()
155 tlsf_decl int tlsf_fls(unsigned int word) in tlsf_fls() argument
157 const int bit = word ? 32 - __clz(word) : 0; in tlsf_fls()
166 tlsf_decl int tlsf_ffs(unsigned int word) in tlsf_ffs() argument
168 const unsigned int reverse = word & (~word + 1); in tlsf_ffs()
173 tlsf_decl int tlsf_fls(unsigned int word) in tlsf_fls() argument
175 const int bit = word ? 32 - __CLZ32(word) : 0; in tlsf_fls()
183 tlsf_decl int tlsf_ffs(unsigned int word) in tlsf_ffs() argument
185 const unsigned int reverse = word & (~word + 1); in tlsf_ffs()
189 tlsf_decl int tlsf_fls(unsigned int word) in tlsf_fls() argument
191 return TLSF_FLS32(word) - 1; in tlsf_fls()