sprintf(g_intbuf, "%X", r);
sprintf(g_intbuf, ZS_DIGIT_FMT, r);
int test_div_d(void){  mp_int    a, q;  mp_digit  r;  int       err = 0;  mp_init(&a); mp_init(&q);  mp_read_radix(&a, mp3, 16);  IFOK( mp_div_d(&a, md6, &q, &r) );  mp_toradix(&q, g_intbuf, 16);  if(strcmp(g_intbuf, q_mp3d6) != 0) {    reason("error: computed q = %s, expected %s\n", g_intbuf, q_mp3d6);    ++err;  }  sprintf(g_intbuf, "%X", r);  if(strcmp(g_intbuf, r_mp3d6) != 0) {    reason("error: computed r = %s, expected %s\n", g_intbuf, r_mp3d6);    ++err;  }  mp_read_radix(&a, mp9, 16);  IFOK( mp_div_d(&a, 16, &q, &r) );  mp_toradix(&q, g_intbuf, 16);  if(strcmp(g_intbuf, q_mp9c16) != 0) {    reason("error: computed q = %s, expected %s\n", g_intbuf, q_mp9c16);    ++err;  }  sprintf(g_intbuf, "%X", r);  if(strcmp(g_intbuf, r_mp9c16) != 0) {    reason("error: computed r = %s, expected %s\n", g_intbuf, r_mp9c16);    ++err;  }  mp_clear(&a); mp_clear(&q);  return err;}