mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-10 23:05:05 +00:00
7 lines
111 B
C
7 lines
111 B
C
|
#include "libbench2/bench.h"
|
||
|
|
||
|
int power_of_two(int n)
|
||
|
{
|
||
|
return (((n) > 0) && (((n) & ((n) - 1)) == 0));
|
||
|
}
|