Lines Matching defs:dp
128 mp_digit *dp;
134 #define mp_iseven(a) (((a)->used > 0 && (((a)->dp[0] & 1) == 0)) ? MP_YES : MP_NO)
135 #define mp_isodd(a) (((a)->used > 0 && (((a)->dp[0] & 1) == 1)) ? MP_YES : MP_NO)
256 tmpa = a->dp;
259 tmpb = b->dp;
262 tmpc = c->dp;
283 *tmpc = x->dp[i] + u;
330 tmpa = a->dp;
331 tmpb = b->dp;
332 tmpc = c->dp;
380 a->dp = OPT_CAST(mp_digit) XMALLOC (sizeof (mp_digit) * MP_PREC);
381 if (a->dp == NULL) {
387 a->dp[i] = 0;
406 if (a->dp != NULL) {
409 a->dp[i] = 0;
413 XFREE(a->dp);
416 a->dp = NULL;
721 if (a->dp[0] > b) {
723 } else if (a->dp[0] < b) {
942 tmpa = a->dp + (a->used - 1);
945 tmpb = b->dp + (a->used - 1);
983 a->dp[0] |= *b++;
986 a->dp[0] = (*b & MP_MASK);
987 a->dp[1] |= ((*b++ >> 7U) & 1);
1009 b[x++] = (unsigned char) (t.dp[0] & 255);
1011 b[x++] = (unsigned char) (t.dp[0] | ((t.dp[1] & 0x01) << 7));
1076 tmpc = c->dp + (c->used - 1);
1121 tmp = a->dp;
1152 tmpa = a->dp;
1155 tmpb = b->dp;
1197 bottom = a->dp;
1200 top = a->dp + b;
1252 while (a->used > 0 && a->dp[a->used - 1] == 0) {
1274 /* reallocate the array a->dp
1278 * to overwrite the dp member of a.
1280 tmp = OPT_CAST(mp_digit) XREALLOC (a->dp, sizeof (mp_digit) * size);
1286 /* reallocation succeeded so set a->dp */
1287 a->dp = tmp;
1293 a->dp[i] = 0;
1328 a->dp[0] = b & MP_MASK;
1329 a->used = (a->dp[0] != 0) ? 1 : 0;
1352 tmpa = a->dp + b->used - 1;
1355 tmpb = b->dp + b->used - 1;
1371 tmpb = b->dp + b->used;
1422 tmpc = c->dp;
1440 c->dp[(c->used)++] = r;
1525 top = a->dp + a->used - 1;
1528 bottom = a->dp + a->used - 1 - b;
1539 top = a->dp;
1563 q = a->dp[a->used - 1];
1596 c->dp[x] = 0;
1599 c->dp[b / DIGIT_BIT] &=
1763 ++(q.dp[n - t]);
1780 if (x.dp[i] == y.dp[t]) {
1781 q.dp[i - t - 1] = ((((mp_digit)1) << DIGIT_BIT) - 1);
1784 tmp = ((mp_word) x.dp[i]) << ((mp_word) DIGIT_BIT);
1785 tmp |= ((mp_word) x.dp[i - 1]);
1786 tmp /= ((mp_word) y.dp[t]);
1789 q.dp[i - t - 1] = (mp_digit) (tmp & (mp_word) (MP_MASK));
1797 q.dp[i - t - 1] = (q.dp[i - t - 1] + 1) & MP_MASK;
1799 q.dp[i - t - 1] = (q.dp[i - t - 1] - 1) & MP_MASK;
1803 t1.dp[0] = (t - 1 < 0) ? 0 : y.dp[t - 1];
1804 t1.dp[1] = y.dp[t];
1806 if ((res = mp_mul_d (&t1, q.dp[i - t - 1], &t1)) != MP_OKAY) {
1811 t2.dp[0] = (i - 2 < 0) ? 0 : x.dp[i - 2];
1812 t2.dp[1] = (i - 1 < 0) ? 0 : x.dp[i - 1];
1813 t2.dp[2] = x.dp[i];
1818 if ((res = mp_mul_d (&y, q.dp[i - t - 1], &t1)) != MP_OKAY) {
1842 q.dp[i - t - 1] = (q.dp[i - t - 1] - 1UL) & MP_MASK;
2014 buf = X->dp[digidx--];
2234 a->dp[b / DIGIT_BIT] = ((mp_digit)1) << (b % DIGIT_BIT);
2374 tmpx = a->dp[ix];
2377 tmpt = t.dp + ix;
2380 tmpy = b->dp;
2454 tmpx = a->dp + tx;
2455 tmpy = b->dp + ty;
2481 tmpc = c->dp;
2507 a->dp = OPT_CAST(mp_digit) XMALLOC (sizeof (mp_digit) * size);
2508 if (a->dp == NULL) {
2519 a->dp[x] = 0;
2545 r = ((mp_word) t.dp[2*ix]) +
2546 ((mp_word)a->dp[ix])*((mp_word)a->dp[ix]);
2549 t.dp[ix+ix] = (mp_digit) (r & ((mp_word) MP_MASK));
2555 tmpx = a->dp[ix];
2558 tmpt = t.dp + (2*ix + 1);
2562 r = ((mp_word)tmpx) * ((mp_word)a->dp[iy]);
2621 tmpx = a->dp[ix];
2624 tmpt = &(t.dp[digs]);
2627 tmpy = b->dp + (digs - ix);
2665 b = n->dp[0];
2726 tmpx = x->dp;
2772 tmpn = n->dp;
2815 tmpx = x->dp;
2865 tmpa = a->dp;
2868 tmpb = b->dp;
2898 tmpb = b->dp + b->used;
3136 buf = X->dp[digidx--];
3286 tmpx = a->dp + tx;
3287 tmpy = a->dp + ty;
3310 _W += ((mp_word)a->dp[ix>>1])*((mp_word)a->dp[ix>>1]);
3326 tmpb = b->dp;
3364 /* alias for a->dp [source] */
3365 tmpa = a->dp;
3367 /* alias for c->dp [dest] */
3368 tmpc = c->dp;