FastLED 3.10.8
Loading...
Searching...
No Matches

◆ kiss_fft_next_fast_size()

int kiss_fft_next_fast_size ( int n)

Definition at line 420 of file kiss_fft.cpp.hpp.

421{ // ok no noexcept: preserve vendor C declaration (#4773)
422 while(1) {
423 int m=n;
424 while ( (m%2) == 0 ) m/=2;
425 while ( (m%3) == 0 ) m/=3;
426 while ( (m%5) == 0 ) m/=5;
427 if (m<=1)
428 break; /* n is completely factorable by twos, threes, and fives */
429 n++;
430 }
431 return n;
432}