Lines Matching refs:top
44 for (i = a->top - 1; i >= 0; i--) { in BN_mod_word()
72 if (a->top == 0) in BN_div_word()
81 for (i = a->top - 1; i >= 0; i--) { in BN_div_word()
89 if ((a->top > 0) && (a->d[a->top - 1] == 0)) in BN_div_word()
90 a->top--; in BN_div_word()
92 if (!a->top) in BN_div_word()
120 for (i = 0; w != 0 && i < a->top; i++) { in BN_add_word()
124 if (w && i == a->top) { in BN_add_word()
125 if (bn_wexpand(a, a->top + 1) == NULL) in BN_add_word()
127 a->top++; in BN_add_word()
159 if ((a->top == 1) && (a->d[0] < w)) { in BN_sub_word()
175 if ((a->d[i] == 0) && (i == (a->top - 1))) in BN_sub_word()
176 a->top--; in BN_sub_word()
187 if (a->top) { in BN_mul_word()
191 ll = bn_mul_words(a->d, a->d, a->top, w); in BN_mul_word()
193 if (bn_wexpand(a, a->top + 1) == NULL) in BN_mul_word()
195 a->d[a->top++] = ll; in BN_mul_word()