view fft/fftw/fftw-3.3.4/libbench2/pow2.c @ 24:e705de983b67

Put the comments back in!
author Chris Cannam
date Wed, 07 Oct 2015 08:57:11 +0100
parents 26056e866c29
children
line wrap: on
line source
#include "bench.h"

int power_of_two(int n)
{
     return (((n) > 0) && (((n) & ((n) - 1)) == 0));
}