source: tests/src/test-mathutils.c @ abd326c

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since abd326c was 7359775, checked in by Paul Brossier <piem@piem.org>, 12 years ago

tests/src/test-mathutils.c: define AUBIO_UNSTABLE here

  • Property mode set to 100644
File size: 493 bytes
RevLine 
[d314636]1#include <stdio.h>
2#include <assert.h>
[7359775]3#define AUBIO_UNSTABLE 1
[d314636]4#include <aubio.h>
5
6int main(){
[7359775]7  uint_t a, b;
[d314636]8
9  a = 31; b = aubio_next_power_of_two(a);
10  fprintf(stdout, "next_power_of_two of %d is %d\n", a, b);
11  assert(b == 32);
12
13  a = 32; b = aubio_next_power_of_two(a);
14  fprintf(stdout, "next_power_of_two of %d is %d\n", a, b);
15  assert(b == 32);
16
17  a = 33; b = aubio_next_power_of_two(a);
18  fprintf(stdout, "next_power_of_two of %d is %d\n", a, b);
19  assert(b == 64);
20
21  return 0;
22}
23
Note: See TracBrowser for help on using the repository browser.