forked from cellular-infrastructure/osmo-pcu
Use explicit type for pcu_lsb()
It's only used for byte-long input so we can specify input and output types explicitly. Change-Id: Id0bef691e17e4331c7c4b491661e36173d85388a
This commit is contained in:
parent
5b22fb7953
commit
735e435e8e
|
@ -44,8 +44,7 @@ inline unsigned int pcu_bitcount(T x)
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
inline uint8_t pcu_lsb(uint8_t x)
|
||||||
inline T pcu_lsb(T x)
|
|
||||||
{
|
{
|
||||||
return x & -x;
|
return x & -x;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue