furnace/extern/fftw/libbench2/pow2.c

7 lines
111 B
C
Raw Normal View History

#include "libbench2/bench.h"
int power_of_two(int n)
{
return (((n) > 0) && (((n) & ((n) - 1)) == 0));
}