mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-06 03:07:26 +00:00
54e93db207
not reliable yet
6 lines
111 B
C
6 lines
111 B
C
#include "libbench2/bench.h"
|
|
|
|
int power_of_two(int n)
|
|
{
|
|
return (((n) > 0) && (((n) & ((n) - 1)) == 0));
|
|
}
|