Changeset 5885 in vbox
- Timestamp:
- Nov 30, 2007 12:55:36 AM (17 years ago)
- Location:
- trunk/src/VBox/Runtime/win/amd64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/win/amd64/ASMBitFirstClear.asm
r4071 r5885 5 5 ; 6 6 ; Copyright (C) 2006-2007 innotek GmbH 7 ; 7 ; 8 8 ; This file is part of VirtualBox Open Source Edition (OSE), as 9 9 ; available from http://www.virtualbox.org. This file is free software; … … 34 34 ;if (cBits) 35 35 or edx, edx 36 jz short @failed36 jz short .failed 37 37 ;{ 38 38 push rdi … … 46 46 mov eax, 0ffffffffh 47 47 repe scasd ; Scan for the first dword with any clear bit. 48 je @failed_restore48 je .failed_restore 49 49 50 50 ; find the bit in question … … 66 66 ;} 67 67 ;return -1; 68 @failed_restore:68 .failed_restore: 69 69 pop rdi 70 70 ret 71 @failed:71 .failed: 72 72 mov eax, 0ffffffffh 73 73 ret -
trunk/src/VBox/Runtime/win/amd64/ASMBitFirstSet.asm
r4071 r5885 5 5 ; 6 6 ; Copyright (C) 2006-2007 innotek GmbH 7 ; 7 ; 8 8 ; This file is part of VirtualBox Open Source Edition (OSE), as 9 9 ; available from http://www.virtualbox.org. This file is free software; … … 34 34 ;if (cBits) 35 35 or edx, edx 36 jz short @failed36 jz short .failed 37 37 ;{ 38 38 push rdi … … 46 46 xor eax, eax 47 47 repe scasd ; Scan for the first dword with any set bit. 48 je @failed_restore48 je .failed_restore 49 49 50 50 ; find the bit in question … … 66 66 ;} 67 67 ;return -1; 68 @failed_restore:68 .failed_restore: 69 69 pop rdi 70 @failed:70 .failed: 71 71 mov eax, 0ffffffffh 72 72 ret
Note:
See TracChangeset
for help on using the changeset viewer.