Lines Matching refs:BN_ULONG
71 BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w)
73 BN_ULONG c1=0;
96 BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w)
98 BN_ULONG c1=0;
120 void bn_sqr_words(BN_ULONG *r, const BN_ULONG *a, int n)
142 BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w)
144 BN_ULONG c=0;
145 BN_ULONG bl,bh;
148 if (num <= 0) return((BN_ULONG)0);
169 BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w)
171 BN_ULONG carry=0;
172 BN_ULONG bl,bh;
175 if (num <= 0) return((BN_ULONG)0);
196 void bn_sqr_words(BN_ULONG *r, const BN_ULONG *a, int n)
223 BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
225 return((BN_ULONG)(((((BN_ULLONG)h)<<BN_BITS2)|l)/(BN_ULLONG)d));
232 BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
234 BN_ULONG dh,dl,q,ret=0,th,tl,t;
240 assert((i == BN_BITS2) || (h <= (BN_ULONG)1<<i));
299 BN_ULONG bn_add_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, int n)
304 if (n <= 0) return((BN_ULONG)0);
309 r[0]=(BN_ULONG)ll&BN_MASK2;
314 r[1]=(BN_ULONG)ll&BN_MASK2;
319 r[2]=(BN_ULONG)ll&BN_MASK2;
324 r[3]=(BN_ULONG)ll&BN_MASK2;
332 return((BN_ULONG)ll);
335 BN_ULONG bn_add_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, int n)
337 BN_ULONG c,l,t;
340 if (n <= 0) return((BN_ULONG)0);
381 return((BN_ULONG)c);
385 BN_ULONG bn_sub_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, int n)
387 BN_ULONG t1,t2;
391 if (n <= 0) return((BN_ULONG)0);
437 t1=(BN_ULONG)Lw(t); \
438 t2=(BN_ULONG)Hw(t); \
446 t1=(BN_ULONG)Lw(tt); \
447 t2=(BN_ULONG)Hw(tt); \
454 t1=(BN_ULONG)Lw(t); \
455 t2=(BN_ULONG)Hw(t); \
465 BN_ULONG ta=(a),tb=(b); \
472 BN_ULONG ta=(a),tb=(b),t0; \
481 BN_ULONG ta=(a)[i]; \
493 BN_ULONG ta=(a),tb=(b); \
501 BN_ULONG ta=(a),tb=(b),t0; \
511 BN_ULONG ta=(a)[i]; \
550 void bn_mul_comba8(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b)
555 BN_ULONG bl,bh;
557 BN_ULONG t1,t2;
558 BN_ULONG c1,c2,c3;
659 void bn_mul_comba4(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b)
664 BN_ULONG bl,bh;
666 BN_ULONG t1,t2;
667 BN_ULONG c1,c2,c3;
704 void bn_sqr_comba8(BN_ULONG *r, const BN_ULONG *a)
709 BN_ULONG bl,bh;
711 BN_ULONG t1,t2;
712 BN_ULONG c1,c2,c3;
785 void bn_sqr_comba4(BN_ULONG *r, const BN_ULONG *a)
790 BN_ULONG bl,bh;
792 BN_ULONG t1,t2;
793 BN_ULONG c1,c2,c3;
827 void bn_sqr_comba4(BN_ULONG *r, BN_ULONG *a)
829 BN_ULONG t[8];
834 void bn_sqr_comba8(BN_ULONG *r, BN_ULONG *a)
836 BN_ULONG t[16];
840 void bn_mul_comba4(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b)
848 void bn_mul_comba8(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b)