Mercurial > libavcodec.hg
comparison sparc/vis.h @ 5163:9ecbfc0c82bf libavcodec
add multiple inclusion guards to headers
| author | mru |
|---|---|
| date | Sun, 17 Jun 2007 00:01:30 +0000 |
| parents | 2c54309fef91 |
| children | 3fd46e281bd8 |
comparison
equal
deleted
inserted
replaced
| 5162:4394344397d8 | 5163:9ecbfc0c82bf |
|---|---|
| 37 * ties people's hands. | 37 * ties people's hands. |
| 38 * | 38 * |
| 39 * Thus, we do the opcode encoding by hand and output 32-bit words in | 39 * Thus, we do the opcode encoding by hand and output 32-bit words in |
| 40 * the assembler to keep the binary from becoming tainted. | 40 * the assembler to keep the binary from becoming tainted. |
| 41 */ | 41 */ |
| 42 | |
| 43 #ifndef AVCODEC_VIS_H | |
| 44 #define AVCODEC_VIS_H | |
| 42 | 45 |
| 43 #define vis_opc_base ((0x1 << 31) | (0x36 << 19)) | 46 #define vis_opc_base ((0x1 << 31) | (0x36 << 19)) |
| 44 #define vis_opf(X) ((X) << 5) | 47 #define vis_opf(X) ((X) << 5) |
| 45 #define vis_sreg(X) (X) | 48 #define vis_sreg(X) (X) |
| 46 #define vis_dreg(X) (((X)&0x1f)|((X)>>5)) | 49 #define vis_dreg(X) (((X)&0x1f)|((X)>>5)) |
| 323 #define vis_andnot2s(rs1,rs2,rd) vis_ss2s(0x65, rs1, rs2, rd) | 326 #define vis_andnot2s(rs1,rs2,rd) vis_ss2s(0x65, rs1, rs2, rd) |
| 324 | 327 |
| 325 /* Pixel component distance. */ | 328 /* Pixel component distance. */ |
| 326 | 329 |
| 327 #define vis_pdist(rs1,rs2,rd) vis_dd2d(0x3e, rs1, rs2, rd) | 330 #define vis_pdist(rs1,rs2,rd) vis_dd2d(0x3e, rs1, rs2, rd) |
| 331 | |
| 332 #endif |
