Mercurial > mplayer.hg
annotate libmpcodecs/native/mmx.h @ 21642:d599a15a7148
typo
author | kraymer |
---|---|
date | Sun, 17 Dec 2006 18:59:00 +0000 |
parents | ac142b1ac1cd |
children | 246221f7ba2e |
rev | line source |
---|---|
20821
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
1 #ifndef MPLAYER_MMX_H |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
2 #define MPLAYER_MMX_H |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
3 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
4 typedef union { |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
5 long long q; /* Quadword (64-bit) value */ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
6 unsigned long long uq; /* Unsigned Quadword */ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
7 int d[2]; /* 2 Doubleword (32-bit) values */ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
8 unsigned int ud[2]; /* 2 Unsigned Doubleword */ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
9 short w[4]; /* 4 Word (16-bit) values */ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
10 unsigned short uw[4]; /* 4 Unsigned Word */ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
11 char b[8]; /* 8 Byte (8-bit) values */ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
12 unsigned char ub[8]; /* 8 Unsigned Byte */ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
13 float s[2]; /* Single-precision (32-bit) value */ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
14 } mmx_t; /* On an 8-byte (64-bit) boundary */ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
15 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
16 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
17 #define movq_m2r(var, reg) mmx_m2r(movq, var, reg) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
18 #define movq_r2m(reg, var) mmx_r2m(movq, reg, var) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
19 #define movq_r2r(regs, regd) mmx_r2r(movq, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
20 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
21 #define punpcklwd_m2r(var, reg) mmx_m2r(punpcklwd, var, reg) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
22 #define punpcklwd_r2r(regs, regd) mmx_r2r(punpcklwd, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
23 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
24 #define punpckhwd_m2r(var, reg) mmx_m2r(punpckhwd, var, reg) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
25 #define punpckhwd_r2r(regs, regd) mmx_r2r(punpckhwd, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
26 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
27 #define punpcklbw_r2r(regs, regd) mmx_r2r(punpcklbw, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
28 #define punpckhbw_r2r(regs, regd) mmx_r2r(punpckhbw, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
29 #define punpckhdq_r2r(regs, regd) mmx_r2r(punpckhdq, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
30 #define punpckldq_r2r(regs, regd) mmx_r2r(punpckldq, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
31 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
32 #define psubw_m2r(var, reg) mmx_m2r(psubw, var, reg) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
33 #define psubw_r2r(regs, regd) mmx_r2r(psubw, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
34 #define psubsw_r2r(regs, regd) mmx_r2r(psubsw, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
35 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
36 #define pmaddwd_r2r(regs, regd) mmx_r2r(pmaddwd, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
37 #define paddw_m2r(var, reg) mmx_m2r(paddw, var, reg) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
38 #define paddw_r2r(regs, regd) mmx_r2r(paddw, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
39 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
40 #define psrad_i2r(imm, reg) mmx_i2r(psrad, imm, reg) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
41 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
42 #define psllw_i2r(imm, reg) mmx_i2r(psllw, imm, reg) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
43 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
44 #define pmulhw_r2r(regs, regd) mmx_r2r(pmulhw, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
45 #define pmulhw_m2r(var, reg) mmx_m2r(pmulhw, var, reg) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
46 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
47 #define psraw_i2r(imm, reg) mmx_i2r(psraw, imm, reg) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
48 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
49 #define packssdw_r2r(regs, regd) mmx_r2r(packssdw, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
50 #define packuswb_r2r(regs, regd) mmx_r2r(packuswb, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
51 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
52 #define pxor_r2r(regs, regd) mmx_r2r(pxor, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
53 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
54 #define pcmpgtw_r2r(regs, regd) mmx_r2r(pcmpgtw, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
55 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
56 #define por_r2r(regs, regd) mmx_r2r(por, regs, regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
57 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
58 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
59 #define mmx_i2r(op,imm,reg) \ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
60 __asm__ __volatile__ (#op " %0, %%" #reg \ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
61 : /* nothing */ \ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
62 : "i" (imm) ) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
63 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
64 #define mmx_m2r(op, mem, reg) \ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
65 __asm__ __volatile__ (#op " %0, %%" #reg \ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
66 : /* nothing */ \ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
67 : "m" (mem)) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
68 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
69 #define mmx_r2m(op, reg, mem) \ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
70 __asm__ __volatile__ (#op " %%" #reg ", %0" \ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
71 : "=m" (mem) \ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
72 : /* nothing */ ) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
73 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
74 #define mmx_r2r(op, regs, regd) \ |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
75 __asm__ __volatile__ (#op " %" #regs ", %" #regd) |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
76 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
77 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
78 #define emms() __asm__ __volatile__ ("emms") |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
79 |
ac142b1ac1cd
Remove mmx.h, the licensing status was doubtful, and put a minimal
diego
parents:
diff
changeset
|
80 #endif /* MPLAYER_MMX_H */ |