I'm trying to port some code from MMX to SSE2 and having a bit of trouble in doing so.
For MMX I have:
.data
align 16
onesByte qword 2 dup(0101010101010101h)
...
psubusb mm2,onesByte
psubusb mm0,onesByte
For SSE2 I have:
.data
align 16
onesByte_O oword 4 dup(0101010101010101h)
...
psubusb xmm2,onesByte_O
psubusb xmm0,onesByte_O
Which I do not believe is correct. What is the appropriate way to convert oneBytes to support SSE2? Thanks!