view src/fftw-3.3.3/libbench2/pow2.c @ 161:4797bbf470e7

No, that isn't going to end well. Back it out.
author Chris Cannam <cannam@all-day-breakfast.com>
date Sat, 16 Feb 2019 18:32:35 +0000
parents 89f5e221ed7b
children
line wrap: on
line source
#include "bench.h"

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