Lines Matching refs:BN_ULONG
100 BN_ULONG high, low, ret, tmp = (a); \
113 BN_ULONG high, low, ret, ta = (a); \
123 BN_ULONG tmp = (a); \
143 BN_ULONG m, m1, lt, ht; \
153 ht += L2HBITS((BN_ULONG)1); \
165 BN_ULONG l, h, m; \
184 BN_ULONG l, h; \
205 BN_ULONG l, h; \
223 BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num,
224 BN_ULONG w) {
225 BN_ULONG c1 = 0;
252 BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w) {
253 BN_ULONG c1 = 0;
278 void bn_sqr_words(BN_ULONG *r, const BN_ULONG *a, int n) {
303 BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num,
304 BN_ULONG w) {
305 BN_ULONG c = 0;
306 BN_ULONG bl, bh;
310 return (BN_ULONG)0;
334 BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w) {
335 BN_ULONG carry = 0;
336 BN_ULONG bl, bh;
340 return (BN_ULONG)0;
364 void bn_sqr_words(BN_ULONG *r, const BN_ULONG *a, int n) {
391 BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d) {
392 return (BN_ULONG)(((((BN_ULLONG)h) << BN_BITS2) | l) / (BN_ULLONG)d);
398 BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d) {
399 BN_ULONG dh, dl, q, ret = 0, th, tl, t;
407 assert((i == BN_BITS2) || (h <= (BN_ULONG)1 << i));
470 BN_ULONG bn_add_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
476 return (BN_ULONG)0;
481 r[0] = (BN_ULONG)ll & BN_MASK2;
484 r[1] = (BN_ULONG)ll & BN_MASK2;
487 r[2] = (BN_ULONG)ll & BN_MASK2;
490 r[3] = (BN_ULONG)ll & BN_MASK2;
499 r[0] = (BN_ULONG)ll & BN_MASK2;
506 return (BN_ULONG)ll;
511 BN_ULONG bn_add_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
513 BN_ULONG c, l, t;
517 return (BN_ULONG)0;
563 return (BN_ULONG)c;
568 BN_ULONG bn_sub_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
570 BN_ULONG t1, t2;
575 return (BN_ULONG)0;
634 BN_ULONG hi; \
637 c0 = (BN_ULONG)Lw(t); \
638 hi = (BN_ULONG)Hw(t); \
646 BN_ULONG hi; \
649 c0 = (BN_ULONG)Lw(tt); \
650 hi = (BN_ULONG)Hw(tt); \
655 c0 = (BN_ULONG)Lw(t); \
656 hi = (BN_ULONG)Hw(t); \
664 BN_ULONG hi; \
667 c0 = (BN_ULONG)Lw(t); \
668 hi = (BN_ULONG)Hw(t); \
682 BN_ULONG ta = (a), tb = (b); \
683 BN_ULONG lo, hi; \
693 BN_ULONG ta = (a), tb = (b); \
694 BN_ULONG lo, hi, tt; \
708 BN_ULONG ta = (a)[i]; \
709 BN_ULONG lo, hi; \
726 BN_ULONG lo = LBITS(a), hi = HBITS(a); \
727 BN_ULONG bl = LBITS(b), bh = HBITS(b); \
739 BN_ULONG tt; \
740 BN_ULONG lo = LBITS(a), hi = HBITS(a); \
741 BN_ULONG bl = LBITS(b), bh = HBITS(b); \
760 BN_ULONG lo, hi; \
773 void bn_mul_comba8(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) {
774 BN_ULONG c1, c2, c3;
875 void bn_mul_comba4(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) {
876 BN_ULONG c1, c2, c3;
913 void bn_sqr_comba8(BN_ULONG *r, const BN_ULONG *a) {
914 BN_ULONG c1, c2, c3;
987 void bn_sqr_comba4(BN_ULONG *r, const BN_ULONG *a) {
988 BN_ULONG c1, c2, c3;