SECTION_RODATA v210_mask: times 4 dw 0x3ff SECTION .text ; decode_words( void *src, uint16_t *y, uint16_t *u, uint16_t *v ) INIT_XMMS cglobal v210_planar_unpack, 4, 4 movdqu xmm0, [r0] movd xmm1, 10 movd xmm2, 20 psrld xmm4, xmm0, xmm1 psrld xmm5, xmm0, xmm2 pand xmm0, v210_mask pand xmm4, v210_mask pand xmm5, v210_mask ;etc RET