Home | History | Annotate | Download | only in dist

Lines Matching refs:big

32  * pointer to an mp_int ( = mpz_t*; big representation) or an int32_t (small
33 * represenation) with a discriminator at the least significant bit. In big
40 * Big representation:
107 /* Return whether the argument is stored in big representation.
122 /* Get the number of an in isl_int in big representation. Result is undefined if
142 /* Return 1 if val is stored in big representation and store its value to big.
144 inline int isl_sioimath_decode_big(isl_sioimath val, mp_int *big)
146 *big = isl_sioimath_get_big(val);
157 /* Encode a big representation.
165 * that is currently in small representation or an integer parameter, i.e. a big
174 * mp_digit can be uint32_t or uint16_t. This code must work for little and big
187 mpz_t big;
193 * might be big- or little endian, but IMath always stores the least significant
239 * For the case it is not in big representation yet, pass some scratch space we
240 * can use to store the big representation in.
244 * The name derives from its indented use: getting the big representation of an
250 mp_int big;
254 if (isl_sioimath_decode_big(arg, &big))
255 return big;
258 scratch->big.digits = scratch->digits;
259 scratch->big.alloc = ARRAY_SIZE(scratch->digits);
261 scratch->big.sign = MP_ZPOS;
264 scratch->big.sign = MP_NEG;
268 isl_siomath_uint32_to_digits(num, scratch->digits, &scratch->big.used);
269 return &scratch->big;
279 scratch->big.digits = scratch->digits;
280 scratch->big.alloc = ARRAY_SIZE(scratch->digits);
282 scratch->big.sign = MP_ZPOS;
285 scratch->big.sign = MP_NEG;
289 isl_siomath_ulong_to_digits(num, scratch->digits, &scratch->big.used);
290 return &scratch->big;
300 scratch->big.digits = scratch->digits;
301 scratch->big.alloc = ARRAY_SIZE(scratch->digits);
303 scratch->big.sign = MP_ZPOS;
306 scratch->big.sign = MP_NEG;
310 isl_siomath_uint64_to_digits(num, scratch->digits, &scratch->big.used);
311 return &scratch->big;
319 scratch->big.digits = scratch->digits;
320 scratch->big.alloc = ARRAY_SIZE(scratch->digits);
321 scratch->big.sign = MP_ZPOS;
323 isl_siomath_ulong_to_digits(arg, scratch->digits, &scratch->big.used);
324 return &scratch->big;
327 /* Ensure big representation. Does not preserve the current number.
329 * was big before.
373 /* Convert to big representation while preserving the current number.
512 mp_int big;
519 big = isl_sioimath_get_big(val);
520 for (i = 0; i < big->used; ++i)
522 (double) big->digits[i];
524 if (big->sign == MP_NEG)
1142 big representation must be identical