view Lib/fftw-3.2.1/libbench2/pow2.c @ 6:5690cbc028bf

ignore
author Geogaddi\David <d.m.ronan@qmul.ac.uk>
date Wed, 22 Jul 2015 14:59:50 +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));
}