mirror of git://sourceware.org/git/glibc.git
* 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.
This commit is contained in:
parent
336476cbea
commit
addbcc6d36
|
@ -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>
|
2005-10-18 Steven Munroe <sjmunroe@us.ibm.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h (TESTS):
|
* sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h (TESTS):
|
||||||
|
|
|
@ -240,7 +240,7 @@ $y_is_neg:
|
||||||
/* If we get here, Y is so big that bit 63 is set. The results
|
/* If we get here, Y is so big that bit 63 is set. The results
|
||||||
from the divide will be completely wrong. Fortunately, the
|
from the divide will be completely wrong. Fortunately, the
|
||||||
quotient must be either 0 or 1, so just compute it directly. */
|
quotient must be either 0 or 1, so just compute it directly. */
|
||||||
cmpult Y, X, RV
|
cmpule Y, X, RV
|
||||||
excb
|
excb
|
||||||
mt_fpcr $f3
|
mt_fpcr $f3
|
||||||
ldt $f0, 0(sp)
|
ldt $f0, 0(sp)
|
||||||
|
|
|
@ -246,7 +246,7 @@ $y_is_neg:
|
||||||
from the divide will be completely wrong. Fortunately, the
|
from the divide will be completely wrong. Fortunately, the
|
||||||
quotient must be either 0 or 1, so the remainder must be X
|
quotient must be either 0 or 1, so the remainder must be X
|
||||||
or X-Y, so just compute it directly. */
|
or X-Y, so just compute it directly. */
|
||||||
cmpult Y, X, AT
|
cmpule Y, X, AT
|
||||||
subq X, Y, RV
|
subq X, Y, RV
|
||||||
ldt $f0, 0(sp)
|
ldt $f0, 0(sp)
|
||||||
cmoveq AT, X, RV
|
cmoveq AT, X, RV
|
||||||
|
|
Loading…
Reference in New Issue