view src/fftw-3.3.3/libbench2/pow2.c @ 68:85d5306e114e

Remove subrepo - trying to avoid these now
author Chris Cannam
date Tue, 04 Dec 2018 10:27:12 +0000
parents 37bf6b4a2645
children
line wrap: on
line source
#include "bench.h"

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