Ian Jauslin
summaryrefslogtreecommitdiff
blob: ab008f680b322fed63a1fa4c7f9e847db7ab9bc3 (plain)
1
2
3
4
5
6
7
8
9
10
#ifndef INTTOOLS_H
#define INTTOOLS_H

// return smallest power of 2 that is larger than x
int smallest_pow2(int x);

// integer power
int ipow(int x, int n);

#endif