Lines Matching refs:v2

12 extern float __attribute__((overloadable)) fmin(float v, float v2);
13 extern float2 __attribute__((overloadable)) fmin(float2 v, float v2);
14 extern float3 __attribute__((overloadable)) fmin(float3 v, float v2);
15 extern float4 __attribute__((overloadable)) fmin(float4 v, float v2);
17 extern float __attribute__((overloadable)) fmax(float v, float v2);
18 extern float2 __attribute__((overloadable)) fmax(float2 v, float v2);
19 extern float3 __attribute__((overloadable)) fmax(float3 v, float v2);
20 extern float4 __attribute__((overloadable)) fmax(float4 v, float v2);
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) { \
169 v2->x = t[0]; \
170 v2->y = t[1]; \
174 fnc(float3 v1, float3 *v2) { \
180 v2->x = t[0]; \
181 v2->y = t[1]; \
182 v2->z = t[2]; \
186 fnc(float4 v1, float4 *v2) { \
193 v2->x = t[0]; \
194 v2->y = t[1]; \
195 v2->z = t[2]; \
196 v2->w = t[3]; \
201 extern float2 __attribute__((overloadable)) fnc(float2 v1, int2 *v2) { \
206 v2->x = t[0]; \
207 v2->y = t[1]; \
210 extern float3 __attribute__((overloadable)) fnc(float3 v1, int3 *v2) { \
216 v2->x = t[0]; \
217 v2->y = t[1]; \
218 v2->z = t[2]; \
221 extern float4 __attribute__((overloadable)) fnc(float4 v1, int4 *v2) { \
228 v2->x = t[0]; \
229 v2->y = t[1]; \
230 v2->z = t[2]; \
231 v2->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]); \
690 fnc(type v1, type v2) { \
694 fnc(type##2 v1, type##2 v2) { \
696 r.x = fnc(v1.x, v2.x); \
697 r.y = fnc(v1.y, v2.y); \
701 fnc(type##3 v1, type##3 v2) { \
703 r.x = fnc(v1.x, v2.x); \
704 r.y = fnc(v1.y, v2.y); \
705 r.z = fnc(v1.z, v2.z); \
709 fnc(type##4 v1, type##4 v2) { \
711 r.x = fnc(v1.x, v2.x); \
712 r.y = fnc(v1.y, v2.y); \
713 r.z = fnc(v1.z, v2.z); \
714 r.w = fnc(v1.w, v2.w); \
1207 float2 v2 = {native_log2(v.x), native_log2(v.y)};
1208 return v2;
1211 float3 v2 = {native_log2(v.x), native_log2(v.y), native_log2(v.z)};
1212 return v2;
1215 float4 v2 = {native_log2(v.x), native_log2(v.y), native_log2(v.z), native_log2(v.w)};
1216 return v2;
1247 float v2 = native_log2(v);
1248 v2 = fmax(v2 * y, -125.f);
1249 return native_exp2(v2);
1252 float2 v2 = native_log2(v);
1253 v2 = fmax(v2 * y, -125.f);
1254 return native_exp2(v2);
1257 float3 v2 = native_log2(v);
1258 v2 = fmax(v2 * y, -125.f);
1259 return native_exp2(v2);
1262 float4 v2 = native_log2(v);
1263 v2 = fmax(v2 * y, -125.f);
1264 return native_exp2(v2);
1267 extern double __attribute__((overloadable)) min(double v1, double v2) {
1268 return v1 < v2 ? v1 : v2;
1271 extern double2 __attribute__((overloadable)) min(double2 v1, double2 v2) {
1273 r.x = v1.x < v2.x ? v1.x : v2.x;
1274 r.y = v1.y < v2.y ? v1.y : v2.y;
1278 extern double3 __attribute__((overloadable)) min(double3 v1, double3 v2) {
1280 r.x = v1.x < v2.x ? v1.x : v2.x;
1281 r.y = v1.y < v2.y ? v1.y : v2.y;
1282 r.z = v1.z < v2.z ? v1.z : v2.z;
1286 extern double4 __attribute__((overloadable)) min(double4 v1, double4 v2) {
1288 r.x = v1.x < v2.x ? v1.x : v2.x;
1289 r.y = v1.y < v2.y ? v1.y : v2.y;
1290 r.z = v1.z < v2.z ? v1.z : v2.z;
1291 r.w = v1.w < v2.w ? v1.w : v2.w;
1295 extern long __attribute__((overloadable)) min(long v1, long v2) {
1296 return v1 < v2 ? v1 : v2;
1298 extern long2 __attribute__((overloadable)) min(long2 v1, long2 v2) {
1300 r.x = v1.x < v2.x ? v1.x : v2.x;
1301 r.y = v1.y < v2.y ? v1.y : v2.y;
1304 extern long3 __attribute__((overloadable)) min(long3 v1, long3 v2) {
1306 r.x = v1.x < v2.x ? v1.x : v2.x;
1307 r.y = v1.y < v2.y ? v1.y : v2.y;
1308 r.z = v1.z < v2.z ? v1.z : v2.z;
1311 extern long4 __attribute__((overloadable)) min(long4 v1, long4 v2) {
1313 r.x = v1.x < v2.x ? v1.x : v2.x;
1314 r.y = v1.y < v2.y ? v1.y : v2.y;
1315 r.z = v1.z < v2.z ? v1.z : v2.z;
1316 r.w = v1.w < v2.w ? v1.w : v2.w;
1320 extern ulong __attribute__((overloadable)) min(ulong v1, ulong v2) {
1321 return v1 < v2 ? v1 : v2;
1323 extern ulong2 __attribute__((overloadable)) min(ulong2 v1, ulong2 v2) {
1325 r.x = v1.x < v2.x ? v1.x : v2.x;
1326 r.y = v1.y < v2.y ? v1.y : v2.y;
1329 extern ulong3 __attribute__((overloadable)) min(ulong3 v1, ulong3 v2) {
1331 r.x = v1.x < v2.x ? v1.x : v2.x;
1332 r.y = v1.y < v2.y ? v1.y : v2.y;
1333 r.z = v1.z < v2.z ? v1.z : v2.z;
1336 extern ulong4 __attribute__((overloadable)) min(ulong4 v1, ulong4 v2) {
1338 r.x = v1.x < v2.x ? v1.x : v2.x;
1339 r.y = v1.y < v2.y ? v1.y : v2.y;
1340 r.z = v1.z < v2.z ? v1.z : v2.z;
1341 r.w = v1.w < v2.w ? v1.w : v2.w;
1345 extern double __attribute__((overloadable)) max(double v1, double v2) {
1346 return v1 > v2 ? v1 : v2;
1349 extern double2 __attribute__((overloadable)) max(double2 v1, double2 v2) {
1351 r.x = v1.x > v2.x ? v1.x : v2.x;
1352 r.y = v1.y > v2.y ? v1.y : v2.y;
1356 extern double3 __attribute__((overloadable)) max(double3 v1, double3 v2) {
1358 r.x = v1.x > v2.x ? v1.x : v2.x;
1359 r.y = v1.y > v2.y ? v1.y : v2.y;
1360 r.z = v1.z > v2.z ? v1.z : v2.z;
1364 extern double4 __attribute__((overloadable)) max(double4 v1, double4 v2) {
1366 r.x = v1.x > v2.x ? v1.x : v2.x;
1367 r.y = v1.y > v2.y ? v1.y : v2.y;
1368 r.z = v1.z > v2.z ? v1.z : v2.z;
1369 r.w = v1.w > v2.w ? v1.w : v2.w;
1373 extern long __attribute__((overloadable)) max(long v1, long v2) {
1374 return v1 > v2 ? v1 : v2;
1376 extern long2 __attribute__((overloadable)) max(long2 v1, long2 v2) {
1378 r.x = v1.x > v2.x ? v1.x : v2.x;
1379 r.y = v1.y > v2.y ? v1.y : v2.y;
1382 extern long3 __attribute__((overloadable)) max(long3 v1, long3 v2) {
1384 r.x = v1.x > v2.x ? v1.x : v2.x;
1385 r.y = v1.y > v2.y ? v1.y : v2.y;
1386 r.z = v1.z > v2.z ? v1.z : v2.z;
1389 extern long4 __attribute__((overloadable)) max(long4 v1, long4 v2) {
1391 r.x = v1.x > v2.x ? v1.x : v2.x;
1392 r.y = v1.y > v2.y ? v1.y : v2.y;
1393 r.z = v1.z > v2.z ? v1.z : v2.z;
1394 r.w = v1.w > v2.w ? v1.w : v2.w;
1398 extern ulong __attribute__((overloadable)) max(ulong v1, ulong v2) {
1399 return v1 > v2 ? v1 : v2;
1401 extern ulong2 __attribute__((overloadable)) max(ulong2 v1, ulong2 v2) {
1403 r.x = v1.x > v2.x ? v1.x : v2.x;
1404 r.y = v1.y > v2.y ? v1.y : v2.y;
1407 extern ulong3 __attribute__((overloadable)) max(ulong3 v1, ulong3 v2) {
1409 r.x = v1.x > v2.x ? v1.x : v2.x;
1410 r.y = v1.y > v2.y ? v1.y : v2.y;
1411 r.z = v1.z > v2.z ? v1.z : v2.z;
1414 extern ulong4 __attribute__((overloadable)) max(ulong4 v1, ulong4 v2) {
1416 r.x = v1.x > v2.x ? v1.x : v2.x;
1417 r.y = v1.y > v2.y ? v1.y : v2.y;
1418 r.z = v1.z > v2.z ? v1.z : v2.z;
1419 r.w = v1.w > v2.w ? v1.w : v2.w;
1430 float __attribute__((overloadable)) native_##fn(float v1, float v2) { return fn(v1, v2);} \
1431 float2 __attribute__((overloadable)) native_##fn(float2 v1, float2 v2) { return fn(v1, v2);} \
1432 float3 __attribute__((overloadable)) native_##fn(float3 v1, float3 v2) { return fn(v1, v2);} \
1433 float4 __attribute__((overloadable)) native_##fn(float4 v1, float4 v2) { return fn(v1, v2);}
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, int v2) { return fn(v1, v2);} \
1443 float2 __attribute__((overloadable)) native_##fn(float2 v1, int2 v2) { return fn(v1, v2);} \
1444 float3 __attribute__((overloadable)) native_##fn(float3 v1, int3 v2) { return fn(v1, v2);} \
1445 float4 __attribute__((overloadable)) native_##fn(float4 v1, int4 v2) { return fn(v1, v2);}
1486 float __attribute__((overloadable)) native_distance(float v1, float v2) { return fast_distance(v1, v2);}
1487 float __attribute__((overloadable)) native_distance(float2 v1, float2 v2) { return fast_distance(v1, v2);}
1488 float __attribute__((overloadable)) native_distance(float3 v1, float3 v2) { return fast_distance(v1, v2);}
1489 float __attribute__((overloadable)) native_distance(float4 v1, float4 v2) { return fast_distance(v1, v2);}
1496 float __attribute__((overloadable)) native_divide(float v1, float v2) { return v1 / v2;}
1497 float2 __attribute__((overloadable)) native_divide(float2 v1, float2 v2) { return v1 / v2;}
1498 float3 __attribute__((overloadable)) native_divide(float3 v1, float3 v2) { return v1 / v2;}
1499 float4 __attribute__((overloadable)) native_divide(float4 v1, float4 v2) { return v1 / v2;}