60 uint8_t uint8_tRnd(uint8_t min, uint8_t max)
63 seed = (21 * seed + 21);
64 return min + uint8_tMod(seed, --max);
75 int ipow(
int base,
int exp)
120 uint8_t Q = (uint8_t)((Q8n8)exponent>>8);
121 uint8_t n = (uint8_t) exponent;
136 root, remainder, place;
142 while (place > remainder)
146 if (remainder >= root + place)
148 remainder = remainder - root - place;
149 root = root + (place << 1);
163 root, remainder, place;
169 while (place > remainder)
173 if (remainder >= root + place)
175 remainder = remainder - root - place;
176 root = root + (place << 1);