view src/fftw-3.3.5/libbench2/pow2.c @ 57:e56993504470

Fixes and updates for 32-bit Windows build
author Chris Cannam
date Mon, 09 Jan 2017 11:53:06 +0000
parents 2cd0e3b3e1fd
children
line wrap: on
line source
#include "bench.h"

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