File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed
Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -146,24 +146,6 @@ const char* FFTProcessor::getBackendName()
146146#endif
147147}
148148
149- bool FFTProcessor::isPowerOfTwo (int value) noexcept
150- {
151- return value > 0 && (value & (value - 1 )) == 0 ;
152- }
153-
154- int FFTProcessor::nextPowerOfTwo (int value) noexcept
155- {
156- if (value <= 1 ) return 1 ;
157-
158- --value;
159- value |= value >> 1 ;
160- value |= value >> 2 ;
161- value |= value >> 4 ;
162- value |= value >> 8 ;
163- value |= value >> 16 ;
164- return ++value;
165- }
166-
167149// ==============================================================================
168150// Private implementation
169151void FFTProcessor::initialize ()
Original file line number Diff line number Diff line change @@ -143,12 +143,6 @@ class FFTProcessor
143143 /* * Returns a string describing the active FFT backend */
144144 static const char * getBackendName ();
145145
146- /* * Returns true if the given size is a valid power of 2 */
147- static bool isPowerOfTwo (int value) noexcept ;
148-
149- /* * Returns the next power of 2 >= the given value */
150- static int nextPowerOfTwo (int value) noexcept ;
151-
152146private:
153147 // ==============================================================================
154148 void initialize ();
You can’t perform that action at this time.
0 commit comments