mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 17:12:58 +00:00
Dmitry Gorbachev
- SETxx instructions require 8-bit operand, but "r" constraint is used. Use "q" instead ("r" means any general register, including esi and edi, which are not suitable as an operand of setnz.) See issue #3772 for more details. svn path=/trunk/; revision=37542
This commit is contained in:
parent
54389c838c
commit
5312b56416
1 changed files with 1 additions and 1 deletions
|
@ -4812,7 +4812,7 @@ BitScanReverse(OUT ULONG *Index,
|
||||||
#if defined(_M_IX86)
|
#if defined(_M_IX86)
|
||||||
__asm__ __volatile__("bsrl %2,%0\n\t"
|
__asm__ __volatile__("bsrl %2,%0\n\t"
|
||||||
"setnz %1\n\t"
|
"setnz %1\n\t"
|
||||||
:"=&r" (*Index), "=r" (BitPosition)
|
:"=&r" (*Index), "=q" (BitPosition)
|
||||||
:"rm" (Mask)
|
:"rm" (Mask)
|
||||||
:"memory");
|
:"memory");
|
||||||
return BitPosition;
|
return BitPosition;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue