annotate src/fftw-3.3.5/libbench2/pow2.c @ 42:2cd0e3b3e1fd

Current fftw source
author Chris Cannam
date Tue, 18 Oct 2016 13:40:26 +0100
parents
children
rev   line source
Chris@42 1 #include "bench.h"
Chris@42 2
Chris@42 3 int power_of_two(int n)
Chris@42 4 {
Chris@42 5 return (((n) > 0) && (((n) & ((n) - 1)) == 0));
Chris@42 6 }