Lines Matching refs:v1

71 extern float2 __attribute__((overloadable)) fnc(float2 v1, float2 v2) { \
73 r.x = fnc(v1.x, v2.x); \
74 r.y = fnc(v1.y, v2.y); \
77 extern float3 __attribute__((overloadable)) fnc(float3 v1, float3 v2) { \
79 r.x = fnc(v1.x, v2.x); \
80 r.y = fnc(v1.y, v2.y); \
81 r.z = fnc(v1.z, v2.z); \
84 extern float4 __attribute__((overloadable)) fnc(float4 v1, float4 v2) { \
86 r.x = fnc(v1.x, v2.x); \
87 r.y = fnc(v1.y, v2.y); \
88 r.z = fnc(v1.z, v2.z); \
89 r.w = fnc(v1.w, v2.w); \
94 extern float2 __attribute__((overloadable)) fnc(float2 v1, float v2) { \
96 r.x = fnc(v1.x, v2); \
97 r.y = fnc(v1.y, v2); \
100 extern float3 __attribute__((overloadable)) fnc(float3 v1, float v2) { \
102 r.x = fnc(v1.x, v2); \
103 r.y = fnc(v1.y, v2); \
104 r.z = fnc(v1.z, v2); \
107 extern float4 __attribute__((overloadable)) fnc(float4 v1, float v2) { \
109 r.x = fnc(v1.x, v2); \
110 r.y = fnc(v1.y, v2); \
111 r.z = fnc(v1.z, v2); \
112 r.w = fnc(v1.w, v2); \
117 extern float2 __attribute__((overloadable)) fnc(float2 v1, int2 v2) { \
119 r.x = fnc(v1.x, v2.x); \
120 r.y = fnc(v1.y, v2.y); \
123 extern float3 __attribute__((overloadable)) fnc(float3 v1, int3 v2) { \
125 r.x = fnc(v1.x, v2.x); \
126 r.y = fnc(v1.y, v2.y); \
127 r.z = fnc(v1.z, v2.z); \
130 extern float4 __attribute__((overloadable)) fnc(float4 v1, int4 v2) { \
132 r.x = fnc(v1.x, v2.x); \
133 r.y = fnc(v1.y, v2.y); \
134 r.z = fnc(v1.z, v2.z); \
135 r.w = fnc(v1.w, v2.w); \
140 extern float2 __attribute__((overloadable)) fnc(float2 v1, int v2) { \
142 r.x = fnc(v1.x, v2); \
143 r.y = fnc(v1.y, v2); \
146 extern float3 __attribute__((overloadable)) fnc(float3 v1, int v2) { \
148 r.x = fnc(v1.x, v2); \
149 r.y = fnc(v1.y, v2); \
150 r.z = fnc(v1.z, v2); \
153 extern float4 __attribute__((overloadable)) fnc(float4 v1, int v2) { \
155 r.x = fnc(v1.x, v2); \
156 r.y = fnc(v1.y, v2); \
157 r.z = fnc(v1.z, v2); \
158 r.w = fnc(v1.w, v2); \
164 fnc(float2 v1, float2 *v2) { \
167 r.x = fnc(v1.x, &t[0]); \
168 r.y = fnc(v1.y, &t[1]); \
174 fnc(float3 v1, float3 *v2) { \
177 r.x = fnc(v1.x, &t[0]); \
178 r.y = fnc(v1.y, &t[1]); \
179 r.z = fnc(v1.z, &t[2]); \
186 fnc(float4 v1, float4 *v2) { \
189 r.x = fnc(v1.x, &t[0]); \
190 r.y = fnc(v1.y, &t[1]); \
191 r.z = fnc(v1.z, &t[2]); \
192 r.w = fnc(v1.w, &t[3]); \
201 extern float2 __attribute__((overloadable)) fnc(float2 v1, int2 *v2) { \
204 r.x = fnc(v1.x, &t[0]); \
205 r.y = fnc(v1.y, &t[1]); \
210 extern float3 __attribute__((overloadable)) fnc(float3 v1, int3 *v2) { \
213 r.x = fnc(v1.x, &t[0]); \
214 r.y = fnc(v1.y, &t[1]); \
215 r.z = fnc(v1.z, &t[2]); \
221 extern float4 __attribute__((overloadable)) fnc(float4 v1, int4 *v2) { \
224 r.x = fnc(v1.x, &t[0]); \
225 r.y = fnc(v1.y, &t[1]); \
226 r.z = fnc(v1.z, &t[2]); \
227 r.w = fnc(v1.w, &t[3]); \
237 fnc(float2 v1, float2 v2, float2 v3) { \
239 r.x = fnc(v1.x, v2.x, v3.x); \
240 r.y = fnc(v1.y, v2.y, v3.y); \
244 fnc(float3 v1, float3 v2, float3 v3) { \
246 r.x = fnc(v1.x, v2.x, v3.x); \
247 r.y = fnc(v1.y, v2.y, v3.y); \
248 r.z = fnc(v1.z, v2.z, v3.z); \
252 fnc(float4 v1, float4 v2, float4 v3) { \
254 r.x = fnc(v1.x, v2.x, v3.x); \
255 r.y = fnc(v1.y, v2.y, v3.y); \
256 r.z = fnc(v1.z, v2.z, v3.z); \
257 r.w = fnc(v1.w, v2.w, v3.w); \
263 fnc(float2 v1, float2 v2, int2 *v3) { \
266 r.x = fnc(v1.x, v2.x, &t[0]); \
267 r.y = fnc(v1.y, v2.y, &t[1]); \
273 fnc(float3 v1, float3 v2, int3 *v3) { \
276 r.x = fnc(v1.x, v2.x, &t[0]); \
277 r.y = fnc(v1.y, v2.y, &t[1]); \
278 r.z = fnc(v1.z, v2.z, &t[2]); \
285 fnc(float4 v1, float4 v2, int4 *v3) { \
288 r.x = fnc(v1.x, v2.x, &t[0]); \
289 r.y = fnc(v1.y, v2.y, &t[1]); \
290 r.z = fnc(v1.z, v2.z, &t[2]); \
291 r.w = fnc(v1.w, v2.w, &t[3]); \
693 fnc(type v1, type v2) { \
697 fnc(type##2 v1, type##2 v2) { \
699 r.x = fnc(v1.x, v2.x); \
700 r.y = fnc(v1.y, v2.y); \
704 fnc(type##3 v1, type##3 v2) { \
706 r.x = fnc(v1.x, v2.x); \
707 r.y = fnc(v1.y, v2.y); \
708 r.z = fnc(v1.z, v2.z); \
712 fnc(type##4 v1, type##4 v2) { \
714 r.x = fnc(v1.x, v2.x); \
715 r.y = fnc(v1.y, v2.y); \
716 r.z = fnc(v1.z, v2.z); \
717 r.w = fnc(v1.w, v2.w); \
1273 extern double __attribute__((overloadable)) min(double v1, double v2) {
1274 return v1 < v2 ? v1 : v2;
1277 extern double2 __attribute__((overloadable)) min(double2 v1, double2 v2) {
1279 r.x = v1.x < v2.x ? v1.x : v2.x;
1280 r.y = v1.y < v2.y ? v1.y : v2.y;
1284 extern double3 __attribute__((overloadable)) min(double3 v1, double3 v2) {
1286 r.x = v1.x < v2.x ? v1.x : v2.x;
1287 r.y = v1.y < v2.y ? v1.y : v2.y;
1288 r.z = v1.z < v2.z ? v1.z : v2.z;
1292 extern double4 __attribute__((overloadable)) min(double4 v1, double4 v2) {
1294 r.x = v1.x < v2.x ? v1.x : v2.x;
1295 r.y = v1.y < v2.y ? v1.y : v2.y;
1296 r.z = v1.z < v2.z ? v1.z : v2.z;
1297 r.w = v1.w < v2.w ? v1.w : v2.w;
1301 extern long __attribute__((overloadable)) min(long v1, long v2) {
1302 return v1 < v2 ? v1 : v2;
1304 extern long2 __attribute__((overloadable)) min(long2 v1, long2 v2) {
1306 r.x = v1.x < v2.x ? v1.x : v2.x;
1307 r.y = v1.y < v2.y ? v1.y : v2.y;
1310 extern long3 __attribute__((overloadable)) min(long3 v1, long3 v2) {
1312 r.x = v1.x < v2.x ? v1.x : v2.x;
1313 r.y = v1.y < v2.y ? v1.y : v2.y;
1314 r.z = v1.z < v2.z ? v1.z : v2.z;
1317 extern long4 __attribute__((overloadable)) min(long4 v1, long4 v2) {
1319 r.x = v1.x < v2.x ? v1.x : v2.x;
1320 r.y = v1.y < v2.y ? v1.y : v2.y;
1321 r.z = v1.z < v2.z ? v1.z : v2.z;
1322 r.w = v1.w < v2.w ? v1.w : v2.w;
1326 extern ulong __attribute__((overloadable)) min(ulong v1, ulong v2) {
1327 return v1 < v2 ? v1 : v2;
1329 extern ulong2 __attribute__((overloadable)) min(ulong2 v1, ulong2 v2) {
1331 r.x = v1.x < v2.x ? v1.x : v2.x;
1332 r.y = v1.y < v2.y ? v1.y : v2.y;
1335 extern ulong3 __attribute__((overloadable)) min(ulong3 v1, ulong3 v2) {
1337 r.x = v1.x < v2.x ? v1.x : v2.x;
1338 r.y = v1.y < v2.y ? v1.y : v2.y;
1339 r.z = v1.z < v2.z ? v1.z : v2.z;
1342 extern ulong4 __attribute__((overloadable)) min(ulong4 v1, ulong4 v2) {
1344 r.x = v1.x < v2.x ? v1.x : v2.x;
1345 r.y = v1.y < v2.y ? v1.y : v2.y;
1346 r.z = v1.z < v2.z ? v1.z : v2.z;
1347 r.w = v1.w < v2.w ? v1.w : v2.w;
1351 extern double __attribute__((overloadable)) max(double v1, double v2) {
1352 return v1 > v2 ? v1 : v2;
1355 extern double2 __attribute__((overloadable)) max(double2 v1, double2 v2) {
1357 r.x = v1.x > v2.x ? v1.x : v2.x;
1358 r.y = v1.y > v2.y ? v1.y : v2.y;
1362 extern double3 __attribute__((overloadable)) max(double3 v1, double3 v2) {
1364 r.x = v1.x > v2.x ? v1.x : v2.x;
1365 r.y = v1.y > v2.y ? v1.y : v2.y;
1366 r.z = v1.z > v2.z ? v1.z : v2.z;
1370 extern double4 __attribute__((overloadable)) max(double4 v1, double4 v2) {
1372 r.x = v1.x > v2.x ? v1.x : v2.x;
1373 r.y = v1.y > v2.y ? v1.y : v2.y;
1374 r.z = v1.z > v2.z ? v1.z : v2.z;
1375 r.w = v1.w > v2.w ? v1.w : v2.w;
1379 extern long __attribute__((overloadable)) max(long v1, long v2) {
1380 return v1 > v2 ? v1 : v2;
1382 extern long2 __attribute__((overloadable)) max(long2 v1, long2 v2) {
1384 r.x = v1.x > v2.x ? v1.x : v2.x;
1385 r.y = v1.y > v2.y ? v1.y : v2.y;
1388 extern long3 __attribute__((overloadable)) max(long3 v1, long3 v2) {
1390 r.x = v1.x > v2.x ? v1.x : v2.x;
1391 r.y = v1.y > v2.y ? v1.y : v2.y;
1392 r.z = v1.z > v2.z ? v1.z : v2.z;
1395 extern long4 __attribute__((overloadable)) max(long4 v1, long4 v2) {
1397 r.x = v1.x > v2.x ? v1.x : v2.x;
1398 r.y = v1.y > v2.y ? v1.y : v2.y;
1399 r.z = v1.z > v2.z ? v1.z : v2.z;
1400 r.w = v1.w > v2.w ? v1.w : v2.w;
1404 extern ulong __attribute__((overloadable)) max(ulong v1, ulong v2) {
1405 return v1 > v2 ? v1 : v2;
1407 extern ulong2 __attribute__((overloadable)) max(ulong2 v1, ulong2 v2) {
1409 r.x = v1.x > v2.x ? v1.x : v2.x;
1410 r.y = v1.y > v2.y ? v1.y : v2.y;
1413 extern ulong3 __attribute__((overloadable)) max(ulong3 v1, ulong3 v2) {
1415 r.x = v1.x > v2.x ? v1.x : v2.x;
1416 r.y = v1.y > v2.y ? v1.y : v2.y;
1417 r.z = v1.z > v2.z ? v1.z : v2.z;
1420 extern ulong4 __attribute__((overloadable)) max(ulong4 v1, ulong4 v2) {
1422 r.x = v1.x > v2.x ? v1.x : v2.x;
1423 r.y = v1.y > v2.y ? v1.y : v2.y;
1424 r.z = v1.z > v2.z ? v1.z : v2.z;
1425 r.w = v1.w > v2.w ? v1.w : v2.w;
1436 float __attribute__((overloadable)) native_##fn(float v1, float v2) { return fn(v1, v2);} \
1437 float2 __attribute__((overloadable)) native_##fn(float2 v1, float2 v2) { return fn(v1, v2);} \
1438 float3 __attribute__((overloadable)) native_##fn(float3 v1, float3 v2) { return fn(v1, v2);} \
1439 float4 __attribute__((overloadable)) native_##fn(float4 v1, float4 v2) { return fn(v1, v2);}
1442 float __attribute__((overloadable)) native_##fn(float v1, float *v2) { return fn(v1, v2);} \
1443 float2 __attribute__((overloadable)) native_##fn(float2 v1, float2 *v2) { return fn(v1, v2);} \
1444 float3 __attribute__((overloadable)) native_##fn(float3 v1, float3 *v2) { return fn(v1, v2);} \
1445 float4 __attribute__((overloadable)) native_##fn(float4 v1, float4 *v2) { return fn(v1, v2);}
1448 float __attribute__((overloadable)) native_##fn(float v1, int v2) { return fn(v1, v2);} \
1449 float2 __attribute__((overloadable)) native_##fn(float2 v1, int2 v2) { return fn(v1, v2);} \
1450 float3 __attribute__((overloadable)) native_##fn(float3 v1, int3 v2) { return fn(v1, v2);} \
1451 float4 __attribute__((overloadable)) native_##fn(float4 v1, int4 v2) { return fn(v1, v2);}
1492 float __attribute__((overloadable)) native_distance(float v1, float v2) { return fast_distance(v1, v2);}
1493 float __attribute__((overloadable)) native_distance(float2 v1, float2 v2) { return fast_distance(v1, v2);}
1494 float __attribute__((overloadable)) native_distance(float3 v1, float3 v2) { return fast_distance(v1, v2);}
1495 float __attribute__((overloadable)) native_distance(float4 v1, float4 v2) { return fast_distance(v1, v2);}
1502 float __attribute__((overloadable)) native_divide(float v1, float v2) { return v1 / v2;}
1503 float2 __attribute__((overloadable)) native_divide(float2 v1, float2 v2) { return v1 / v2;}
1504 float3 __attribute__((overloadable)) native_divide(float3 v1, float3 v2) { return v1 / v2;}
1505 float4 __attribute__((overloadable)) native_divide(float4 v1, float4 v2) { return v1 / v2;}