Branch: Tag:

2014-10-31

2014-10-31 17:20:13 by Martin Nilsson <nilsson@opera.com>

mpz_set_si works in GMP 4.0 and forward.

65:    if (!s) return 0;    if (TYPEOF(*s) == T_INT) {   #if SIZEOF_LONG >= SIZEOF_INT64 -  PIKE_MPZ_SET_SI(dest, s->u.integer); +  mpz_set_si(dest, s->u.integer);   #else    INT_TYPE i = s->u.integer;    int neg = i < 0;
186: Inside #if defined(INT64)
   mpz = OBTOMPZ (sp[-1].u.object);      #if SIZEOF_LONG >= SIZEOF_INT64 -  PIKE_MPZ_SET_SI (mpz, i); +  mpz_set_si (mpz, i);   #else    {    int neg = i < 0;
469:    {    case T_INT:   #ifndef BIG_PIKE_INT -  PIKE_MPZ_SET_SI(tmp, (signed long int) s->u.integer); +  mpz_set_si(tmp, (signed long int) s->u.integer);   #else    {    INT_TYPE i = s->u.integer;