Skip to content

Commit

Permalink
Merge branch 'master' into transfactor2
Browse files Browse the repository at this point in the history
  • Loading branch information
azreika committed Nov 16, 2020
2 parents 9ab1c29 + 2477e3d commit 013d016
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .travis/osx/install_withgcc.sh
Expand Up @@ -11,10 +11,10 @@ set -x
rm /usr/local/include/c++ || true

brew unlink gcc
brew install gcc@9
brew install gcc@10
# Using 'g++' will call the xcode link to clang
export CC=gcc-9
export CXX=g++-9
export CC=gcc-10
export CXX=g++-10

$CXX --version
$CC --version
Expand Down
1 change: 1 addition & 0 deletions src/include/souffle/datastructure/Brie.h
Expand Up @@ -29,6 +29,7 @@
#include "souffle/RamTypes.h"
#include "souffle/utility/CacheUtil.h"
#include "souffle/utility/ContainerUtil.h"
#include "souffle/utility/MiscUtil.h"
#include "souffle/utility/StreamUtil.h"
#include "souffle/utility/span.h"
#include <algorithm>
Expand Down
4 changes: 2 additions & 2 deletions src/include/souffle/datastructure/PiggyList.h
Expand Up @@ -13,7 +13,7 @@
* Some versions of MSVC do not provide a builtin for counting leading zeroes
* like gcc, so we have to implement it ourselves.
*/
#if _MSC_VER < 1924
#if defined(_MSC_VER)
unsigned long __inline __builtin_clzll(unsigned long long value) {
unsigned long msb = 0;

Expand All @@ -22,7 +22,7 @@ unsigned long __inline __builtin_clzll(unsigned long long value) {
else
return 64;
}
#endif // _MSC_VER < 1924
#endif // _MSC_VER
#endif // _WIN32

using std::size_t;
Expand Down
6 changes: 3 additions & 3 deletions src/include/souffle/utility/MiscUtil.h
Expand Up @@ -48,7 +48,7 @@
*/
#define __builtin_popcountll __popcnt64

#if _MSC_VER < 1924
#if defined(_MSC_VER)
constexpr unsigned long __builtin_ctz(unsigned long value) {
unsigned long trailing_zeroes = 0;
while ((value = value >> 1) ^ 1) {
Expand All @@ -66,8 +66,8 @@ inline unsigned long __builtin_ctzll(unsigned long long value) {
return 64;
}
}
#endif // _MSC_VER < 1924
#endif
#endif // _MSC_VER
#endif // _WIN32

// -------------------------------------------------------------------------------
// Timing Utils
Expand Down

0 comments on commit 013d016

Please sign in to comment.