s_mp_ispow2
int s_mp_ispow2(const mp_int *v); /* is v a power of 2? */
if ((res = s_mp_ispow2(m)) >= 0) {
if((ix = s_mp_ispow2(div)) >= 0) {