Nstrophy/src/int_tools.h

11 lines
167 B
C
Raw Normal View History

#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