mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-19 07:00:08 +00:00
Fix three mistakes in computing the quotient.
This commit is contained in:
parent
257f0490ed
commit
adcce37936
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user