Skip to content

Commit

Permalink
Added missing include
Browse files Browse the repository at this point in the history
__lzcnt was missing in Microsoft Visual Studio 2017
  • Loading branch information
Lichtso committed Jul 9, 2017
1 parent 2f15692 commit d1b8948
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/Utf8.h
Expand Up @@ -19,6 +19,7 @@
#include <string>

#ifdef _MSC_VER
#include <intrin.h>
#define countLeadingOneBits(x) __lzcnt(~(x))
#else
#define countLeadingOneBits(x) __builtin_clz(~(x))
Expand Down

0 comments on commit d1b8948

Please sign in to comment.