Revision 5917d17c libavcodec/ps2/mmi.h

View differences:

libavcodec/ps2/mmi.h
49 49
	__asm__ __volatile__ ("sq " #reg ", %0("#base ")" : : "i" (off) )
50 50

  
51 51
/*
52
#define	ld(base, off, reg)	\
53
	__asm__ __volatile__ ("ld " #reg ", " #off "("#base ")")
54
*/
55

  
56
#define	ld3(base, off, reg)	\
57
	__asm__ __volatile__ (".word %0" : : "i" ( 0xdc000000 | (base<<21) | (reg<<16) | (off)))
58

  
59
#define	ldr3(base, off, reg)	\
60
	__asm__ __volatile__ (".word %0" : : "i" ( 0x6c000000 | (base<<21) | (reg<<16) | (off)))
61

  
62
#define	ldl3(base, off, reg)	\
63
	__asm__ __volatile__ (".word %0" : : "i" ( 0x68000000 | (base<<21) | (reg<<16) | (off)))
64

  
65
/*
52 66
#define	sd(reg, off, base)	\
53 67
	__asm__ __volatile__ ("sd " #reg ", " #off "("#base ")")
54 68
*/
......
116 130
#define	pminh(rs, rt, rd) \
117 131
	__asm__ __volatile__ ("pminh " #rd ", " #rs ", " #rt )
118 132

  
133
#define	pinteh(rs, rt, rd) \
134
	__asm__ __volatile__ ("pinteh  " #rd ", " #rs ", " #rt )
135

  
136
#define	paddh(rs, rt, rd) \
137
	__asm__ __volatile__ ("paddh  " #rd ", " #rs ", " #rt )
138

  
139
#define	psubh(rs, rt, rd) \
140
	__asm__ __volatile__ ("psubh  " #rd ", " #rs ", " #rt )
141

  
142
#define	psrah(rt, sa, rd) \
143
	__asm__ __volatile__ ("psrah  " #rd ", " #rt ", %0" : : "i"(sa) )
144

  
145
#define	pmfhl_uw(rd) \
146
	__asm__ __volatile__ ("pmfhl.uw  " #rd)
147

  
148
#define	pextlb(rs, rt, rd) \
149
	__asm__ __volatile__ ("pextlb  " #rd ", " #rs ", " #rt )
119 150

  
120 151
#endif
152

  

Also available in: Unified diff