I have this little snippet here:
static int32_t s_pow(int32_t base, int32_t exponent) { int32_t result = 1; while (exponent != 0) { if ((exponent