view Lib/fftw-3.2.1/libbench2/pow2.c @ 10:73852457b624

We now have a the spectral contrast feature
author Geogaddi\David <d.m.ronan@qmul.ac.uk>
date Fri, 14 Aug 2015 18:21:43 +0100
parents 25bf17994ef1
children
line wrap: on
line source
#include "bench.h"

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