#include #include "utils.h" #include "real.h" #include "defs.h" namespace _sbsms_ { real *COSTABLE_ = NULL; real *COSTABLE = NULL; real COSFACTOR; int *factor(int n) { int *f = (int*)calloc(ilog2(n)+1,sizeof(int)); factor(n,f,0); return f; } void factor(int n, int *f, int m) { for(int k=2;k<=n;k++) { if(n%k==0) { f[m++] = k; n /= k; break; } } if(n>1) factor(n,f,m); } void _evenodd2c(audio *eo, audio *even, audio *odd, int N) { for(int k=0;k