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