Changeset 60675 in vbox for trunk/src/VBox
- Timestamp:
- Apr 23, 2016 8:55:08 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/memcmp.asm
r56290 r60675 102 102 %ifdef RT_ARCH_AMD64 103 103 .not_equal_qword: 104 mov ecx, 8105 sub rsi, 8106 sub rdi, 8107 repe cmpsb104 mov ecx, 8 105 sub rsi, 8 106 sub rdi, 8 107 repe cmpsb 108 108 .not_equal_byte: 109 mov al, [xDI-1]110 movzx ecx, byte [xSI-1]111 sub eax, ecx112 jmp .done109 mov al, [xDI-1] 110 movzx ecx, byte [xSI-1] 111 sub eax, ecx 112 jmp .done 113 113 %endif 114 114 115 115 .not_equal_dword: 116 mov ecx, 4117 sub xSI, 4118 sub xDI, 4119 repe cmpsb116 mov ecx, 4 117 sub xSI, 4 118 sub xDI, 4 119 repe cmpsb 120 120 %ifdef RT_ARCH_AMD64 121 jmp .not_equal_byte121 jmp .not_equal_byte 122 122 %else 123 123 .not_equal_byte: 124 mov al, [xDI-1]125 movzx ecx, byte [xSI-1]126 sub eax, ecx127 jmp .done124 mov al, [xDI-1] 125 movzx ecx, byte [xSI-1] 126 sub eax, ecx 127 jmp .done 128 128 %endif 129 129 130 130 .not_equal_word: 131 mov ecx, 2132 sub xSI, 2133 sub xDI, 2134 repe cmpsb135 jmp .not_equal_byte131 mov ecx, 2 132 sub xSI, 2 133 sub xDI, 2 134 repe cmpsb 135 jmp .not_equal_byte 136 136 ENDPROC RT_NOCRT(memcmp) 137 137
Note:
See TracChangeset
for help on using the changeset viewer.