mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 11:10:40 +00:00
bitset: make functions inline to please compiler
This commit is contained in:
@@ -57,12 +57,14 @@ inline size_t count_leading_zeros<long>(long value)
|
||||
}
|
||||
|
||||
template<>
|
||||
inline
|
||||
size_t count_trailing_zeros<unsigned long>(unsigned long value)
|
||||
{
|
||||
return __builtin_ctzl(value);
|
||||
}
|
||||
|
||||
template<>
|
||||
inline
|
||||
size_t count_trailing_zeros<long>(long value)
|
||||
{
|
||||
return __builtin_ctzl((unsigned long)value);
|
||||
|
||||
Reference in New Issue
Block a user