MMX and SSE2 implementations