annotate fft/fftw/fftw-3.3.4/libbench2/pow2.c @ 39:c1ec7564ccac

Upstream COPYING file
author Chris Cannam
date Wed, 11 May 2016 09:43:00 +0100
parents 26056e866c29
children
rev   line source
Chris@19 1 #include "bench.h"
Chris@19 2
Chris@19 3 int power_of_two(int n)
Chris@19 4 {
Chris@19 5 return (((n) > 0) && (((n) & ((n) - 1)) == 0));
Chris@19 6 }