Fix variable name for conditional code
This commit is contained in:
1 parent
3f8e93ad7a
commit
a8648e0cc1
1 file changed
+2
-2
@@ -1861,7 +1861,7 @@ static inline unsigned int m_core_clz64(uint64_t limb)
|
|||||||
static inline unsigned int m_core_clz32(uint32_t limb)
|
static inline unsigned int m_core_clz32(uint32_t limb)
|
||||||
{
|
{
|
||||||
unsigned long bit = 0;
|
unsigned long bit = 0;
|
||||||
if (_BitScanReverse( &bit_zero, limb ) != 0) {
|
if (_BitScanReverse( &bit, limb ) != 0) {
|
||||||
return 31 - bit;
|
return 31 - bit;
|
||||||
} else {
|
} else {
|
||||||
return 32;
|
return 32;
|
||||||
@@ -1870,7 +1870,7 @@ static inline unsigned int m_core_clz32(uint32_t limb)
|
|||||||
static inline unsigned int m_core_clz64(uint64_t limb)
|
static inline unsigned int m_core_clz64(uint64_t limb)
|
||||||
{
|
{
|
||||||
unsigned long bit = 0;
|
unsigned long bit = 0;
|
||||||
if (_BitScanReverse64( &bit_zero, limb ) != 0) {
|
if (_BitScanReverse64( &bit, limb ) != 0) {
|
||||||
return 63 - bit;
|
return 63 - bit;
|
||||||
} else {
|
} else {
|
||||||
return 64;
|
return 64;
|
||||||
|
|||||||
Reference in new issue
Block a user