kopia lustrzana https://github.com/mobilinkd/m17-cxx-demod
redefine __builtin_popcount for MSVC
rodzic
009d73bcd6
commit
1c72820d29
|
@ -5,6 +5,11 @@
|
|||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# include <intrin.h>
|
||||
# define __builtin_popcount __popcnt
|
||||
#endif
|
||||
|
||||
namespace mobilinkd
|
||||
{
|
||||
|
||||
|
|
|
@ -8,6 +8,11 @@
|
|||
#include <algorithm>
|
||||
#include <utility>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# include <intrin.h>
|
||||
# define __builtin_popcount __popcnt
|
||||
#endif
|
||||
|
||||
namespace mobilinkd {
|
||||
|
||||
// Parts are adapted from:
|
||||
|
|
|
@ -4,6 +4,11 @@
|
|||
|
||||
#include <cstdint>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# include <intrin.h>
|
||||
# define __builtin_popcount __popcnt
|
||||
#endif
|
||||
|
||||
namespace mobilinkd
|
||||
{
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue