FastLED 3.9.15
Loading...
Searching...
No Matches

◆ kiss_fft_next_fast_size()

int kiss_fft_next_fast_size ( int n)

Definition at line 411 of file kiss_fft.cpp.

412{
413 while(1) {
414 int m=n;
415 while ( (m%2) == 0 ) m/=2;
416 while ( (m%3) == 0 ) m/=3;
417 while ( (m%5) == 0 ) m/=5;
418 if (m<=1)
419 break; /* n is completely factorable by twos, threes, and fives */
420 n++;
421 }
422 return n;
423}