Skip to content

Commit

Permalink
Fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
msoos committed Oct 14, 2023
1 parent f8e6d9e commit b5b0e77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/cms_windows_includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,6 @@ THE SOFTWARE.
#define __PRETTY_FUNCTION__ __FUNCSIG__
#endif

// https://gist.github.com/pps83/3210a2f980fd02bb2ba2e5a1fc4a2ef0
static inline int __builtin_ctzll(unsigned long long x) {
unsigned long ret;
_BitScanForward64(&ret, x);
return (int)ret;
}

#include <nmmintrin.h>
#define __builtin_popcountll _mm_popcnt_u64
#define NO_DLL_EXPORT 1
Expand Down
3 changes: 3 additions & 0 deletions src/packedrow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ THE SOFTWARE.
using namespace CMSat;

#ifdef _MSC_VER
#include <intrin.h>
#pragma intrinsic(_BitScanForward)
#pragma intrinsic(_BitScanForward64)
inline int scan_fwd_64b(int64_t value)
{
unsigned long at;
Expand Down

0 comments on commit b5b0e77

Please sign in to comment.