Fix three mistakes in computing the quotient.

This commit is contained in:
Ulrich Drepper 2002-06-20 06:52:16 +00:00
parent 257f0490ed
commit adcce37936
3 changed files with 9 additions and 6 deletions

View File

@ -31,9 +31,10 @@ ENTRY (BP_SYM (__remquo))
andl $4, %ecx
andl $3, %eax
orl %eax, %ecx
movl $0xef2960, %eax
leal (%ecx,%ecx,2),%ecx
movl $0xef2a60, %eax
shrl %cl, %eax
andl $3, %eax
andl $7, %eax
movl QUOP(%esp), %ecx
CHECK_BOUNDS_BOTH_WIDE (%ecx, QUOP(%esp), $4)
movl DVDND+4(%esp), %edx

View File

@ -31,9 +31,10 @@ ENTRY (BP_SYM (__remquof))
andl $4, %ecx
andl $3, %eax
orl %eax, %ecx
movl $0xef2960, %eax
leal (%ecx,%ecx,2),%ecx
movl $0xef2a60, %eax
shrl %cl, %eax
andl $3, %eax
andl $7, %eax
movl QUOP(%esp), %ecx
CHECK_BOUNDS_BOTH_WIDE (%ecx, QUOP(%esp), $4)
movl DVDND(%esp), %edx

View File

@ -31,9 +31,10 @@ ENTRY (BP_SYM (__remquol))
andl $4, %ecx
andl $3, %eax
orl %eax, %ecx
movl $0xef2960, %eax
leal (%ecx,%ecx,2),%ecx
movl $0xef2a60, %eax
shrl %cl, %eax
andl $3, %eax
andl $7, %eax
movl QUOP(%esp), %ecx
CHECK_BOUNDS_BOTH_WIDE (%ecx, QUOP(%esp), $4)
movl DVDND+8(%esp), %edx