1 #ifndef _PROTO_POWERITOI_H_ 2 #define _PROTO_POWERITOI_H_ 10 template <
unsigned int P>
14 inline int ipow<0>(
int M){
return 1;}
18 inline int ipow(
int a_base,
unsigned int a_exp)
23 if (a_exp & 1){result *= a_base;}
31 #endif //end include guard Definition: Proto_Box.H:11
int ipow(int M)
Template Based Integer Exponentiation.
Definition: Proto_PowerItoI.H:11