Skip to content

Commit

Permalink
* sysdeps/alpha/remqu.S: Return the correct result when the same
Browse files Browse the repository at this point in the history
	dividend and divisor are provided, and they're negative numbers.
	* sysdeps/alpha/divqu.S: Likewise.
  • Loading branch information
Ulrich Drepper committed Oct 20, 2005
1 parent 336476c commit addbcc6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2005-08-23 GOTO Masanori <gotom@debian.or.jp>

* sysdeps/alpha/remqu.S: Return the correct result when the same
dividend and divisor are provided, and they're negative numbers.
* sysdeps/alpha/divqu.S: Likewise.

2005-10-18 Steven Munroe <sjmunroe@us.ibm.com>

* sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h (TESTS):
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/alpha/divqu.S
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ $y_is_neg:
/* If we get here, Y is so big that bit 63 is set. The results
from the divide will be completely wrong. Fortunately, the
quotient must be either 0 or 1, so just compute it directly. */
cmpult Y, X, RV
cmpule Y, X, RV
excb
mt_fpcr $f3
ldt $f0, 0(sp)
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/alpha/remqu.S
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ $y_is_neg:
from the divide will be completely wrong. Fortunately, the
quotient must be either 0 or 1, so the remainder must be X
or X-Y, so just compute it directly. */
cmpult Y, X, AT
cmpule Y, X, AT
subq X, Y, RV
ldt $f0, 0(sp)
cmoveq AT, X, RV
Expand Down

0 comments on commit addbcc6

Please sign in to comment.