Changeset 58753 in vbox for trunk/src/VBox/Runtime/common/asm/ASMBitFirstClear.asm
- Timestamp:
- Nov 18, 2015 8:47:23 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 104194
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/asm/ASMBitFirstClear.asm
r58746 r58753 93 93 xor eax, [edi] ; eax = NOT [rdi] 94 94 %endif 95 jz .failed_restore ; race paranoia96 95 sub xDI, xDX 97 96 shl edi, 3 ; calc bit offset. 98 97 99 mov ecx, 0ffffffffh100 98 bsf ecx, eax 99 jz .failed_restore ; race paranoia 101 100 add ecx, edi 102 101 mov eax, ecx … … 105 104 pop xDI 106 105 %if ARCH_BITS == 16 106 mov edx, eax 107 shr edx, 16 107 108 leave 108 109 %endif … … 114 115 .failed_restore: 115 116 pop xDI 116 %if ARCH_BITS == 16117 mov edx, eax118 shr edx, 16119 leave120 %endif121 ret122 123 117 .failed: 124 118 %if ARCH_BITS != 16
Note:
See TracChangeset
for help on using the changeset viewer.