HomeSort by: relevance | last modified time | path
    Searched refs:nlimbs (Results 1 - 6 of 6) sorted by relevancy

  /src/external/lgpl3/gmp/dist/mpf/
urandomb.c 40 mp_size_t nlimbs; local
45 nlimbs = BITS_TO_LIMBS (nbits);
48 if (nlimbs > prec + 1 || nlimbs == 0)
50 nlimbs = prec + 1;
51 nbits = nlimbs * GMP_NUMB_BITS;
58 mpn_lshift (rp, rp, nlimbs, GMP_NUMB_BITS - nbits % GMP_NUMB_BITS);
61 while (nlimbs != 0 && rp[nlimbs - 1] == 0)
63 nlimbs--
    [all...]
  /src/external/lgpl3/gmp/dist/mpz/
array_init.c 38 mp_size_t nlimbs; local
40 nlimbs = nbits / GMP_NUMB_BITS + 1;
41 p = __GMP_ALLOCATE_FUNC_LIMBS (arr_size * nlimbs);
45 ALLOC (&arr[i]) = nlimbs + 1; /* Yes, lie a little... */
47 PTR (&arr[i]) = p + i * nlimbs;
  /src/external/lgpl3/mpfr/dist/src/
urandomb.c 54 mp_size_t nlimbs; local
61 nlimbs = MPFR_LIMB_SIZE (rop);
63 cnt = nlimbs * GMP_NUMB_BITS - nbits;
70 mpn_lshift (rp, rp, nlimbs, cnt);
75 while (nlimbs != 0 && rp[nlimbs - 1] == 0)
78 nlimbs --;
82 if (MPFR_LIKELY (nlimbs != 0)) /* otherwise value is zero */
84 count_leading_zeros (cnt, rp[nlimbs - 1]);
100 mpn_lshift (rp + k, rp, nlimbs, cnt)
    [all...]
urandom.c 58 mp_size_t nlimbs; local
112 nlimbs = MPFR_LIMB_SIZE (rop);
113 n = nlimbs * GMP_NUMB_BITS - nbits;
115 mpn_lshift (rp, rp, nlimbs, n);
116 rp[nlimbs - 1] |= MPFR_LIMB_HIGHBIT;
  /src/external/lgpl3/gmp/dist/rand/
randmt.c 199 mp_size_t nlimbs; local
206 nlimbs = nbits / GMP_NUMB_BITS;
234 for (i = 0; i < nlimbs; i++)
242 dest[nlimbs] = (mp_limb_t) (y & ~(ULONG_MAX << rbits));
248 for (i = 0; i < nlimbs; i++)
260 dest[nlimbs] = (mp_limb_t) (y & ~(ULONG_MAX << rbits));
265 dest[nlimbs] = (mp_limb_t) y;
269 dest[nlimbs] |=
292 nlimbs2 = nlimbs + (rbits != 0);
297 if (i < nlimbs)
    [all...]
  /src/external/lgpl3/gmp/dist/
gmp-impl.h 1943 #define MPN_NORMALIZE(DST, NLIMBS) \
1945 while ((NLIMBS) > 0) \
1947 if ((DST)[(NLIMBS) - 1] != 0) \
1949 (NLIMBS)--; \
1954 #define MPN_NORMALIZE_NOT_ZERO(DST, NLIMBS) \
1958 ASSERT ((NLIMBS) >= 1); \
1959 if ((DST)[(NLIMBS) - 1] != 0) \
1961 (NLIMBS)--; \
1984 /* Initialize X of type mpz_t with space for NLIMBS limbs. X should be a
1988 #define MPZ_TMP_INIT(X, NLIMBS) \
    [all...]

Completed in 23 milliseconds