Reverse Engineering for Beginners

(avery) #1

CHAPTER 27. WORKING WITH FLOATING POINT NUMBERS USING SIMD CHAPTER 27. WORKING WITH FLOATING POINT NUMBERS USING SIMD


It’s almost the same code, however, there are some differences related to calling conventions: 1) the arguments are passed
not in XMM registers, but in the stack, like in the FPU examples (17 on page 205); 2) the result of the function is returned
inST(0)— in order to do so, it’s copied (through local variabletv) from one of the XMM registers toST(0).

Free download pdf