I am a student learning assemble language.
I am studying a sample that get abs(), but I am not clear source.
Could you explain about 'vandpd xmm1, xmm0, xmmword ptr[AbsMask]', please?
Main question is why AbsMask is a array and how does it to get abs()?
Thank you.
.MODEL flat, c
.CONST
AbsMask qword 7fffffffffffffffh, 7fffffffffffffffh
.CODE
AVX_fp_Arith PROC
push ebp
mov ebp, esp
vmovsd xmm0, real8 ptr[ebp+8] ; xmm0 = -15
vandpd xmm1, xmm0, xmmword ptr[AbsMask] ; xmm0 = fabs(b) = 15
pop ebp
ret
AVX_fp_Arith ENDP
END