You can get rid of asm by removing the lines
Code:
if ((CPUF_SUPPORTS_INTEGER_SSE & ff->getCPUFlags()))
LUT_iSSE (dst,mfd->Lut,psize);
else
Wondering if there is performance difference.
Notes for x64:
SetWindowLong -> SetWindowLongPtr
GetWindowLong -> GetWindowLongPtr