Lines Matching refs:top
68 i = a->top - b->top; in BN_ucmp()
75 for (i = a->top - 1; i >= 0; i--) { in BN_ucmp()
115 if (a->top > b->top) { in BN_cmp()
118 if (a->top < b->top) { in BN_cmp()
122 for (i = a->top - 1; i >= 0; i--) { in BN_cmp()
178 switch (bn->top) { in BN_abs_is_word()
193 b_bn.top = b > 0; in BN_cmp_word()
200 return bn->top == 0; in BN_is_zero()
212 return bn->top > 0 && (bn->d[0] & 1) == 1; in BN_is_odd()
216 if (bn->top == 0 || bn->neg) { in BN_is_pow2()
220 for (int i = 0; i < bn->top - 1; i++) { in BN_is_pow2()
226 return 0 == (bn->d[bn->top-1] & (bn->d[bn->top-1] - 1)); in BN_is_pow2()
230 if (a->top != b->top) { in BN_equal_consttime()
235 CRYPTO_memcmp(a->d, b->d, (size_t)a->top * sizeof(a->d[0])) == 0; in BN_equal_consttime()