Skip to content

Commit

Permalink
Use const
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Jul 11, 2024
1 parent 20a77db commit 4d2ee2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/cpu_supports_arm_sve.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace {

/// Initialized at startup
bool cpu_supports_sve = __builtin_cpu_supports("sve");
const bool cpu_supports_sve = __builtin_cpu_supports("sve");

} // namespace

Expand Down
2 changes: 1 addition & 1 deletion include/cpu_supports_avx512_bmi2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ bool has_cpuid_avx512_bmi2();
namespace {

/// Initialized at startup
bool cpu_supports_avx512_bmi2 = primecount::has_cpuid_avx512_bmi2();
const bool cpu_supports_avx512_bmi2 = primecount::has_cpuid_avx512_bmi2();

} // namespace

Expand Down
2 changes: 1 addition & 1 deletion include/cpu_supports_popcnt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ bool has_cpuid_popcnt();
namespace {

/// Initialized at startup
bool cpu_supports_popcnt = primecount::has_cpuid_popcnt();
const bool cpu_supports_popcnt = primecount::has_cpuid_popcnt();

} // namespace

Expand Down

0 comments on commit 4d2ee2c

Please sign in to comment.