Home | History | Annotate | Download | only in bn

Lines Matching refs:BN_ULONG

240 #   define BN_UMULT_HIGH(a,b)	(BN_ULONG)asm("umulh %a0,%a1,%v0",(a),(b))
243 register BN_ULONG ret; \
252 register BN_ULONG ret; \
262 register BN_ULONG ret,discard; \
292 register BN_ULONG ret; \
309 #define Lw(t) (((BN_ULONG)(t))&BN_MASK2)
310 #define Hw(t) (((BN_ULONG)((t)>>BN_BITS2))&BN_MASK2)
316 BN_ULONG *ftl = &(a)->d[(a)->top-1]; \
348 BN_ULONG high,low,ret,tmp=(a); \
360 BN_ULONG high,low,ret,ta=(a); \
369 BN_ULONG tmp=(a); \
375 BN_ULONG high,low,ret,tmp=(a); \
388 BN_ULONG high,low,ret,ta=(a); \
398 BN_ULONG tmp=(a); \
418 BN_ULONG m,m1,lt,ht; \
426 m=(m+m1)&BN_MASK2; if (m < m1) ht+=L2HBITS((BN_ULONG)1); \
436 BN_ULONG l,h,m; \
452 BN_ULONG l,h; \
468 BN_ULONG l,h; \
486 void bn_mul_normal(BN_ULONG *r,BN_ULONG *a,int na,BN_ULONG *b,int nb);
487 void bn_mul_comba8(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b);
488 void bn_mul_comba4(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b);
489 void bn_sqr_normal(BN_ULONG *r, const BN_ULONG *a, int n, BN_ULONG *tmp);
490 void bn_sqr_comba8(BN_ULONG *r,const BN_ULONG *a);
491 void bn_sqr_comba4(BN_ULONG *r,const BN_ULONG *a);
492 int bn_cmp_words(const BN_ULONG *a,const BN_ULONG *b,int n);
493 int bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b,
495 void bn_mul_recursive(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b,int n2,
496 int dna,int dnb,BN_ULONG
497 void bn_mul_part_recursive(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b,
498 int n,int tna,int tnb,BN_ULONG *t);
499 void bn_sqr_recursive(BN_ULONG *r,const BN_ULONG *a, int n2, BN_ULONG *t);
500 void bn_mul_low_normal(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b, int n);
501 void bn_mul_low_recursive(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b,int n2,
502 BN_ULONG *t);
503 void bn_mul_high(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b,BN_ULONG *l,int n2,
504 BN_ULONG *t);
505 BN_ULONG bn_add_part_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
507 BN_ULONG bn_sub_part_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b,
509 int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np,const BN_ULONG *n0, int num);