Lines Matching refs:d
51 ret = ((ret << BN_BITS4) | ((a->d[i] >> BN_BITS4) & BN_MASK2l)) % w; in BN_mod_word()
52 ret = ((ret << BN_BITS4) | (a->d[i] & BN_MASK2l)) % w; in BN_mod_word()
54 ret = (BN_ULLONG) (((ret << (BN_ULLONG) BN_BITS2) | a->d[i]) % in BN_mod_word()
82 BN_ULONG l, d; in BN_div_word() local
84 l = a->d[i]; in BN_div_word()
85 d = bn_div_words(ret, l, w); in BN_div_word()
86 ret = (l - ((d * w) & BN_MASK2)) & BN_MASK2; in BN_div_word()
87 a->d[i] = d; in BN_div_word()
89 if ((a->top > 0) && (a->d[a->top - 1] == 0)) in BN_div_word()
121 a->d[i] = l = (a->d[i] + w) & BN_MASK2; in BN_add_word()
128 a->d[i] = w; in BN_add_word()
159 if ((a->top == 1) && (a->d[0] < w)) { in BN_sub_word()
160 a->d[0] = w - a->d[0]; in BN_sub_word()
166 if (a->d[i] >= w) { in BN_sub_word()
167 a->d[i] -= w; in BN_sub_word()
170 a->d[i] = (a->d[i] - w) & BN_MASK2; in BN_sub_word()
175 if ((a->d[i] == 0) && (i == (a->top - 1))) in BN_sub_word()
191 ll = bn_mul_words(a->d, a->d, a->top, w); in BN_mul_word()
195 a->d[a->top++] = ll; in BN_mul_word()