comparison libmpeg2/vis.h @ 27572:da2271c341ee

Update internal libmpeg2 copy to version 0.5.1.
author diego
date Sat, 13 Sep 2008 17:31:45 +0000
parents d0a8810e155c
children
comparison
equal deleted inserted replaced
27571:fd18fa10de53 27572:da2271c341ee
38 * ties people's hands. 38 * ties people's hands.
39 * 39 *
40 * Thus, we do the opcode encoding by hand and output 32-bit words in 40 * Thus, we do the opcode encoding by hand and output 32-bit words in
41 * the assembler to keep the binary from becoming tainted. 41 * the assembler to keep the binary from becoming tainted.
42 */ 42 */
43
44 #ifndef LIBMPEG2_VIS_H
45 #define LIBMPEG2_VIS_H
43 46
44 #define vis_opc_base ((0x1 << 31) | (0x36 << 19)) 47 #define vis_opc_base ((0x1 << 31) | (0x36 << 19))
45 #define vis_opf(X) ((X) << 5) 48 #define vis_opf(X) ((X) << 5)
46 #define vis_sreg(X) (X) 49 #define vis_sreg(X) (X)
47 #define vis_dreg(X) (((X)&0x1f)|((X)>>5)) 50 #define vis_dreg(X) (((X)&0x1f)|((X)>>5))
324 #define vis_andnot2s(rs1,rs2,rd) vis_ss2s(0x65, rs1, rs2, rd) 327 #define vis_andnot2s(rs1,rs2,rd) vis_ss2s(0x65, rs1, rs2, rd)
325 328
326 /* Pixel component distance. */ 329 /* Pixel component distance. */
327 330
328 #define vis_pdist(rs1,rs2,rd) vis_dd2d(0x3e, rs1, rs2, rd) 331 #define vis_pdist(rs1,rs2,rd) vis_dd2d(0x3e, rs1, rs2, rd)
332
333 #endif /* LIBMPEG2_VIS_H */