bridge/class-master/depend/pari/src/language/es.c
/* print e to S (more efficient than sprintf) */
print e to S (more efficient than sprintf)
print e to S ( more efficient than sprintf )
static void
str_ulong(pari_str *S, ulong e)
{
  if (e == 0) str_putc(S, '0');
  else
  {
    char buf[21], *p = buf + numberof(buf);
    *--p = 0;
    if (e > 9) {
      do
        *--p = "0123456789"[e % 10];
      while ((e /= 10) > 9);
    }
    *--p = "0123456789"[e];
    str_puts(S, p);
  }
}
static void str_ulong ( pari_str * S , ulong e ) { if ( e == 0 ) str_putc ( S , ' ' ) ; else { char buf [ 21 ] , * p = buf + numberof ( buf ) ; * -- p = 0 ; if ( e > 9 ) { do * -- p = " " [ e % 10 ] ; while ( ( e /= 10 ) > 9 ) ; } * -- p = " " [ e ] ; str_puts ( S , p ) ; } }
print e to S (more efficient than sprintf)
print e to S ( more efficient than sprintf )