mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
fix leading zero call
This commit is contained in:
parent
69e43b362e
commit
23926a7a14
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ bool g_pendingPrompt = false;
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAX_BIN_BREAK_LENGTH (3072+384+1)
|
#define MAX_BIN_BREAK_LENGTH (3072 + 384 + 1)
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -1229,7 +1229,7 @@ inline uint64_t bitcount64(uint64_t a) {
|
||||||
|
|
||||||
inline uint32_t leadingzeros32(uint32_t a) {
|
inline uint32_t leadingzeros32(uint32_t a) {
|
||||||
#if defined __GNUC__
|
#if defined __GNUC__
|
||||||
return __builtin_clzl(a);
|
return __builtin_clz(a);
|
||||||
#else
|
#else
|
||||||
PrintAndLogEx(FAILED, "Was not compiled with fct bitcount64");
|
PrintAndLogEx(FAILED, "Was not compiled with fct bitcount64");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue