Skip to content

Commit

Permalink
The IRIX fix. Asm recap and corresponding declation.
Browse files Browse the repository at this point in the history
Submitted by:
Reviewed by:
PR:
  • Loading branch information
Andy Polyakov committed Mar 27, 2001
1 parent 347177e commit 500230e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crypto/bn/asm/mips3.s
Original file line number Diff line number Diff line change
Expand Up @@ -586,13 +586,13 @@ LEAF(bn_div_3_words)
ld a0,(a3)
move ta2,a1
ld a1,-8(a3)
move ta3,ra
move v1,zero
bne a0,a2,.L_bn_div_3_words_proceed
li v0,-1
beq a0,a2,.L_bn_div_3_words_skip_div
jr ra
.L_bn_div_3_words_proceed:
move ta3,ra
bal bn_div_words
move ra,ta3
.L_bn_div_3_words_skip_div:
dmultu ta2,v0
ld t2,-16(a3)
move ta0,zero
Expand Down
1 change: 1 addition & 0 deletions crypto/bn/bn_div.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
{
BN_ULONG q,l0;
#if defined(BN_DIV3W) && !defined(OPENSSL_NO_ASM)
BN_ULONG bn_div_3_words(BN_ULONG*,BN_ULONG,BN_ULONG);
q=bn_div_3_words(wnump,d1,d0);
#else
BN_ULONG n0,n1,rem=0;
Expand Down

0 comments on commit 500230e

Please sign in to comment.