annotate vu1code/vumacros.h @ 153:0a375e9c4288 gongo tip

close
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 30 Jul 2011 14:45:21 +0900
parents 0fae5658fb0b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
1 /*
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
2 * Copyright (C) 2001 Sony Computer Entertainment Inc.
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
3 *
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
4 * "vumacros.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
5 *
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
6 */
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
7
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
8 ; float x 4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
9 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
10 .macro fxyzw f1, f2, f3, f4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
11 .float \f1, \f2, \f3, \f4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
12 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
13
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
14 .macro fwzyx f1, f2, f3, f4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
15 .float \f4, \f3, \f2, \f1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
16 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
17
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
18 ; int x 4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
19 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
20 .macro ixyzw i1, i2, i3, i4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
21 .int \i1, \i2, \i3, \i4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
22 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
23
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
24 .macro iwzyx i1, i2, i3, i4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
25 .int \i4, \i3, \i2, \i1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
26 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
27
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
28 ; short x 4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
29 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
30 .macro sxyzw s1, s2, s3, s4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
31 .short \s1, \s2, \s3, \s4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
32 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
33
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
34 .macro swzyx s1, s2, s3, s4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
35 .short \s4, \s3, \s2, \s1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
36 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
37
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
38 ; byte x 4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
39 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
40 .macro bxyzw b1, b2, b3, b4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
41 .byte \b1, \b2, \b3, \b4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
42 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
43
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
44 .macro bwzyx b1, b2, b3, b4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
45 .byte \b4, \b3, \b2, \b1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
46 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
47
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
48
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
49 ; float x 3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
50 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
51 .macro fxyz f1, f2, f3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
52 .float \f1, \f2, \f3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
53 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
54
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
55 .macro fzyx f1, f2, f3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
56 .float \f3, \f2, \f1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
57 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
58
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
59 ; int x 3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
60 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
61 .macro ixyz i1, i2, i3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
62 .int \i1, \i2, \i3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
63 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
64
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
65 .macro izyx i1, i2, i3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
66 .int \i3, \i2, \i1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
67 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
68
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
69 ; short x 3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
70 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
71 .macro sxyz s1, s2, s3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
72 .short \s1, \s2, \s3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
73 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
74
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
75 .macro szyx s1, s2, s3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
76 .short \s3, \s2, \s1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
77 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
78
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
79 ; byte x 3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
80 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
81 .macro bxyz b1, b2, b3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
82 .byte \b1, \b2, \b3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
83 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
84
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
85 .macro bzyx b1, b2, b3
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
86 .byte \b3, \b2, \b1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
87 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
88
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
89
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
90 ; float x 2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
91 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
92 .macro fxy f1, f2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
93 .float \f1, \f2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
94 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
95
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
96 .macro fyx f1, f2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
97 .float \f2, \f1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
98 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
99
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
100 ; int x 2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
101 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
102 .macro ixy i1, i2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
103 .int \i1, \i2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
104 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
105
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
106 .macro iyx i1, i2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
107 .int \i2, \i1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
108 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
109
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
110 ; short x 2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
111 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
112 .macro sxy s1, s2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
113 .short \s1, \s2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
114 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
115
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
116 .macro syx s1, s2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
117 .short \s2, \s1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
118 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
119
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
120 ; byte x 2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
121 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
122 .macro bxy b1, b2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
123 .byte \b1, \b2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
124 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
125
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
126 .macro byx b1, b2
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
127 .byte \b2, \b1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
128 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
129
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
130
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
131 ; float x 1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
132 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
133 .macro fx f1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
134 .float \f1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
135 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
136
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
137 ; int x 1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
138 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
139 .macro ix i1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
140 .int \i1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
141 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
142
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
143 ; short x 1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
144 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
145 .macro sx s1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
146 .short \s1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
147 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
148
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
149 ; byte x 1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
150 ;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
151 .macro bx b1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
152 .byte \b1
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
153 .endm
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
154