-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
372 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
2017-03-04 Kim Walisch <[email protected]> | ||
|
||
Version 3.6 released. | ||
|
||
This version features a new AVX2 popcount algorithm which | ||
computes the hard special leaves up to 15% faster on x86 CPUs | ||
with AVX2 support (2013 or later). | ||
|
||
* BitSieve-popcnt.cpp: New AVX2 popcount algorithm. | ||
* popcnt.hpp: Fix clang performance bug. | ||
* primecount.cpp: Fix clang time measuring. | ||
* CMakeLists.txt: Add AVX2 check. | ||
|
||
2016-12-16 Kim Walisch <[email protected]> | ||
|
||
Version 3.5 released. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,6 @@ | |
|
||
version: 1.0.{build} | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
platform: | ||
- x86 | ||
- x64 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/// | ||
/// @file PhiTiny.hpp | ||
/// | ||
/// Copyright (C) 2016 Kim Walisch, <[email protected]> | ||
/// Copyright (C) 2017 Kim Walisch, <[email protected]> | ||
/// | ||
/// This file is distributed under the BSD License. See the COPYING | ||
/// file in the top level directory. | ||
|
@@ -56,6 +56,8 @@ class PhiTiny { | |
static const int totients[7]; | ||
}; | ||
|
||
extern const PhiTiny phiTiny; | ||
|
||
inline bool is_phi_tiny(int64_t a) | ||
{ | ||
return PhiTiny::is_tiny(a); | ||
|
@@ -66,7 +68,6 @@ inline bool is_phi_tiny(int64_t a) | |
template <typename X, typename A> | ||
typename prt::make_signed<X>::type phi_tiny(X x, A a) | ||
{ | ||
extern const PhiTiny phiTiny; | ||
return phiTiny.phi(x, a); | ||
} | ||
|
||
|
@@ -75,7 +76,6 @@ typename prt::make_signed<X>::type phi_tiny(X x, A a) | |
template <typename X, typename A> | ||
X phi_tiny(X x, A a) | ||
{ | ||
extern const PhiTiny phiTiny; | ||
return phiTiny.phi(x, a); | ||
} | ||
|
||
|
Oops, something went wrong.