ref: 621f1ff6aed41ad258484d939eff9d97a0e25c5e
dir: /tests/src/test-mathutils.c/
#include <stdio.h>
#include <assert.h>
#define AUBIO_UNSTABLE 1
#include <aubio.h>
int main(){
uint_t a, b;
a = 31; b = aubio_next_power_of_two(a);
fprintf(stdout, "next_power_of_two of %d is %d\n", a, b);
assert(b == 32);
a = 32; b = aubio_next_power_of_two(a);
fprintf(stdout, "next_power_of_two of %d is %d\n", a, b);
assert(b == 32);
a = 33; b = aubio_next_power_of_two(a);
fprintf(stdout, "next_power_of_two of %d is %d\n", a, b);
assert(b == 64);
return 0;
}