mask mousewheel segv bug, mask opengl sw fallback read to ram, fix tiff config withou...
[goodguy/cinelerra.git] / cinelerra-5.1 / libzmpeg3 / video / worksheet.c
1 #include <stdio.h>
2 #include <string.h>
3
4 inline static void 
5 mmx_601(unsigned long y, unsigned long *output)
6 {
7   asm(" movd (%0), %%mm0;   /* Load y   0x00000000000000yy */\
8         psllw $6, %%mm0;    /* Shift y coeffs 0x0000yyy0yyy0yyy0 */\
9         movd %%mm0, (%1);   /* Store output */"
10       :
11       : "r" (&y), "r" (output));
12 }
13
14 int main(int argc, char *argv[])
15 {
16   unsigned char output[16];
17   memset(output, 0, sizeof(output));
18   mmx_601(1, (unsigned long*)output);
19   printf("%02x%02x\n", *(unsigned char*)&output[1], *(unsigned char*)&output[0]);
20   return 0;
21 }
22