Skip to content

Commit 30cc04b

Browse files
committed
Get rid of std::numbers
1 parent 8f68f79 commit 30cc04b

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

thirdparty/bungee_library/upstream/src/Grain.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <array>
2020
#include <complex>
2121
#include <memory>
22-
#include <numbers>
2322

2423
namespace Bungee {
2524

thirdparty/bungee_library/upstream/src/Input.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@
66
#include "Instrumentation.h"
77
#include "log2.h"
88

9-
#include <numbers>
10-
119
namespace Bungee {
1210

1311
using namespace Internal;
1412

1513
namespace {
16-
static constexpr float pi = std::numbers::pi_v<float>;
14+
static constexpr float pi = static_cast<float>(3.141592653589793238462643383279502884L);
1715
static constexpr float gain = (3 * pi) / (3 * pi + 8);
1816
} // namespace
1917

thirdparty/bungee_library/upstream/src/Stretcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void Internal::Stretcher::synthesiseGrain(OutputChunk &outputChunk)
102102

103103
auto t = temporary.topRows(grain.validBinCount);
104104

105-
t = grain.rotation.topRows(grain.validBinCount).cast<float>() * (std::complex<float>{0, std::numbers::pi_v<float> / 0x8000});
105+
t = grain.rotation.topRows(grain.validBinCount).cast<float>() * (std::complex<float>{0, static_cast<float>(3.141592653589793238462643383279502884L) / 0x8000});
106106
t = t.exp();
107107

108108
if (grain.reverse())

0 commit comments

Comments
 (0)