Lines Matching refs:v1

72 extern float2 __attribute__((overloadable)) fnc(float2 v1, float2 v2) { \
74 r.x = fnc(v1.x, v2.x); \
75 r.y = fnc(v1.y, v2.y); \
78 extern float3 __attribute__((overloadable)) fnc(float3 v1, float3 v2) { \
80 r.x = fnc(v1.x, v2.x); \
81 r.y = fnc(v1.y, v2.y); \
82 r.z = fnc(v1.z, v2.z); \
85 extern float4 __attribute__((overloadable)) fnc(float4 v1, float4 v2) { \
87 r.x = fnc(v1.x, v2.x); \
88 r.y = fnc(v1.y, v2.y); \
89 r.z = fnc(v1.z, v2.z); \
90 r.w = fnc(v1.w, v2.w); \
95 extern float2 __attribute__((overloadable)) fnc(float2 v1, float v2) { \
97 r.x = fnc(v1.x, v2); \
98 r.y = fnc(v1.y, v2); \
101 extern float3 __attribute__((overloadable)) fnc(float3 v1, float v2) { \
103 r.x = fnc(v1.x, v2); \
104 r.y = fnc(v1.y, v2); \
105 r.z = fnc(v1.z, v2); \
108 extern float4 __attribute__((overloadable)) fnc(float4 v1, float v2) { \
110 r.x = fnc(v1.x, v2); \
111 r.y = fnc(v1.y, v2); \
112 r.z = fnc(v1.z, v2); \
113 r.w = fnc(v1.w, v2); \
118 extern float2 __attribute__((overloadable)) fnc(float2 v1, int2 v2) { \
120 r.x = fnc(v1.x, v2.x); \
121 r.y = fnc(v1.y, v2.y); \
124 extern float3 __attribute__((overloadable)) fnc(float3 v1, int3 v2) { \
126 r.x = fnc(v1.x, v2.x); \
127 r.y = fnc(v1.y, v2.y); \
128 r.z = fnc(v1.z, v2.z); \
131 extern float4 __attribute__((overloadable)) fnc(float4 v1, int4 v2) { \
133 r.x = fnc(v1.x, v2.x); \
134 r.y = fnc(v1.y, v2.y); \
135 r.z = fnc(v1.z, v2.z); \
136 r.w = fnc(v1.w, v2.w); \
141 extern float2 __attribute__((overloadable)) fnc(float2 v1, int v2) { \
143 r.x = fnc(v1.x, v2); \
144 r.y = fnc(v1.y, v2); \
147 extern float3 __attribute__((overloadable)) fnc(float3 v1, int v2) { \
149 r.x = fnc(v1.x, v2); \
150 r.y = fnc(v1.y, v2); \
151 r.z = fnc(v1.z, v2); \
154 extern float4 __attribute__((overloadable)) fnc(float4 v1, int v2) { \
156 r.x = fnc(v1.x, v2); \
157 r.y = fnc(v1.y, v2); \
158 r.z = fnc(v1.z, v2); \
159 r.w = fnc(v1.w, v2); \
165 fnc(float2 v1, float2 *v2) { \
168 r.x = fnc(v1.x, &t[0]); \
169 r.y = fnc(v1.y, &t[1]); \
175 fnc(float3 v1, float3 *v2) { \
178 r.x = fnc(v1.x, &t[0]); \
179 r.y = fnc(v1.y, &t[1]); \
180 r.z = fnc(v1.z, &t[2]); \
187 fnc(float4 v1, float4 *v2) { \
190 r.x = fnc(v1.x, &t[0]); \
191 r.y = fnc(v1.y, &t[1]); \
192 r.z = fnc(v1.z, &t[2]); \
193 r.w = fnc(v1.w, &t[3]); \
202 extern float2 __attribute__((overloadable)) fnc(float2 v1, int2 *v2) { \
205 r.x = fnc(v1.x, &t[0]); \
206 r.y = fnc(v1.y, &t[1]); \
211 extern float3 __attribute__((overloadable)) fnc(float3 v1, int3 *v2) { \
214 r.x = fnc(v1.x, &t[0]); \
215 r.y = fnc(v1.y, &t[1]); \
216 r.z = fnc(v1.z, &t[2]); \
222 extern float4 __attribute__((overloadable)) fnc(float4 v1, int4 *v2) { \
225 r.x = fnc(v1.x, &t[0]); \
226 r.y = fnc(v1.y, &t[1]); \
227 r.z = fnc(v1.z, &t[2]); \
228 r.w = fnc(v1.w, &t[3]); \
238 fnc(float2 v1, float2 v2, float2 v3) { \
240 r.x = fnc(v1.x, v2.x, v3.x); \
241 r.y = fnc(v1.y, v2.y, v3.y); \
245 fnc(float3 v1, float3 v2, float3 v3) { \
247 r.x = fnc(v1.x, v2.x, v3.x); \
248 r.y = fnc(v1.y, v2.y, v3.y); \
249 r.z = fnc(v1.z, v2.z, v3.z); \
253 fnc(float4 v1, float4 v2, float4 v3) { \
255 r.x = fnc(v1.x, v2.x, v3.x); \
256 r.y = fnc(v1.y, v2.y, v3.y); \
257 r.z = fnc(v1.z, v2.z, v3.z); \
258 r.w = fnc(v1.w, v2.w, v3.w); \
264 fnc(float2 v1, float2 v2, int2 *v3) { \
267 r.x = fnc(v1.x, v2.x, &t[0]); \
268 r.y = fnc(v1.y, v2.y, &t[1]); \
274 fnc(float3 v1, float3 v2, int3 *v3) { \
277 r.x = fnc(v1.x, v2.x, &t[0]); \
278 r.y = fnc(v1.y, v2.y, &t[1]); \
279 r.z = fnc(v1.z, v2.z, &t[2]); \
286 fnc(float4 v1, float4 v2, int4 *v3) { \
289 r.x = fnc(v1.x, v2.x, &t[0]); \
290 r.y = fnc(v1.y, v2.y, &t[1]); \
291 r.z = fnc(v1.z, v2.z, &t[2]); \
292 r.w = fnc(v1.w, v2.w, &t[3]); \
383 float __attribute__((overloadable)) atan2(float v1, float v2) {
384 return SC_atan2f(v1, v2);
418 float __attribute__((overloadable)) copysign(float v1, float v2) {
419 return SC_copysignf(v1, v2);
484 float __attribute__((overloadable)) fdim(float v1, float v2) {
485 return SC_fdimf(v1, v2);
496 float __attribute__((overloadable)) fma(float v1, float v2, float v3) {
497 return SC_fmaf(v1, v2, v3);
504 float __attribute__((overloadable)) fmod(float v1, float v2) {
505 return SC_fmodf(v1, v2);
525 float __attribute__((overloadable)) frexp(float v1, int* v2) {
526 return SC_frexpf(v1, v2);
531 float __attribute__((overloadable)) hypot(float v1, float v2) {
532 return SC_hypotf(v1, v2);
543 float __attribute__((overloadable)) ldexp(float v1, int v2) {
544 return SC_ldexpf(v1, v2);
604 float __attribute__((overloadable)) modf(float v1, float *v2) {
605 return SC_modff(v1, v2);
617 float __attribute__((overloadable)) nextafter(float v1, float v2) {
618 return SC_nextafterf(v1, v2);
627 float __attribute__((overloadable)) pow(float v1, float v2) {
628 return SC_powf(v1, v2);
659 float __attribute__((overloadable)) remainder(float v1, float v2) {
660 return SC_remainderf(v1, v2);
665 float __attribute__((overloadable)) remquo(float v1, float v2, int *v3) {
666 return SC_remquof(v1, v2, v3);
852 fnc(type v1, type v2) { \
856 fnc(type##2 v1, type##2 v2) { \
858 r.x = fnc(v1.x, v2.x); \
859 r.y = fnc(v1.y, v2.y); \
863 fnc(type##3 v1, type##3 v2) { \
865 r.x = fnc(v1.x, v2.x); \
866 r.y = fnc(v1.y, v2.y); \
867 r.z = fnc(v1.z, v2.z); \
871 fnc(type##4 v1, type##4 v2) { \
873 r.x = fnc(v1.x, v2.x); \
874 r.y = fnc(v1.y, v2.y); \
875 r.z = fnc(v1.z, v2.z); \
876 r.w = fnc(v1.w, v2.w); \
1424 extern double __attribute__((overloadable)) min(double v1, double v2) {
1425 return v1 < v2 ? v1 : v2;
1428 extern double2 __attribute__((overloadable)) min(double2 v1, double2 v2) {
1430 r.x = v1.x < v2.x ? v1.x : v2.x;
1431 r.y = v1.y < v2.y ? v1.y : v2.y;
1435 extern double3 __attribute__((overloadable)) min(double3 v1, double3 v2) {
1437 r.x = v1.x < v2.x ? v1.x : v2.x;
1438 r.y = v1.y < v2.y ? v1.y : v2.y;
1439 r.z = v1.z < v2.z ? v1.z : v2.z;
1443 extern double4 __attribute__((overloadable)) min(double4 v1, double4 v2) {
1445 r.x = v1.x < v2.x ? v1.x : v2.x;
1446 r.y = v1.y < v2.y ? v1.y : v2.y;
1447 r.z = v1.z < v2.z ? v1.z : v2.z;
1448 r.w = v1.w < v2.w ? v1.w : v2.w;
1452 extern long __attribute__((overloadable)) min(long v1, long v2) {
1453 return v1 < v2 ? v1 : v2;
1455 extern long2 __attribute__((overloadable)) min(long2 v1, long2 v2) {
1457 r.x = v1.x < v2.x ? v1.x : v2.x;
1458 r.y = v1.y < v2.y ? v1.y : v2.y;
1461 extern long3 __attribute__((overloadable)) min(long3 v1, long3 v2) {
1463 r.x = v1.x < v2.x ? v1.x : v2.x;
1464 r.y = v1.y < v2.y ? v1.y : v2.y;
1465 r.z = v1.z < v2.z ? v1.z : v2.z;
1468 extern long4 __attribute__((overloadable)) min(long4 v1, long4 v2) {
1470 r.x = v1.x < v2.x ? v1.x : v2.x;
1471 r.y = v1.y < v2.y ? v1.y : v2.y;
1472 r.z = v1.z < v2.z ? v1.z : v2.z;
1473 r.w = v1.w < v2.w ? v1.w : v2.w;
1477 extern ulong __attribute__((overloadable)) min(ulong v1, ulong v2) {
1478 return v1 < v2 ? v1 : v2;
1480 extern ulong2 __attribute__((overloadable)) min(ulong2 v1, ulong2 v2) {
1482 r.x = v1.x < v2.x ? v1.x : v2.x;
1483 r.y = v1.y < v2.y ? v1.y : v2.y;
1486 extern ulong3 __attribute__((overloadable)) min(ulong3 v1, ulong3 v2) {
1488 r.x = v1.x < v2.x ? v1.x : v2.x;
1489 r.y = v1.y < v2.y ? v1.y : v2.y;
1490 r.z = v1.z < v2.z ? v1.z : v2.z;
1493 extern ulong4 __attribute__((overloadable)) min(ulong4 v1, ulong4 v2) {
1495 r.x = v1.x < v2.x ? v1.x : v2.x;
1496 r.y = v1.y < v2.y ? v1.y : v2.y;
1497 r.z = v1.z < v2.z ? v1.z : v2.z;
1498 r.w = v1.w < v2.w ? v1.w : v2.w;
1502 extern double __attribute__((overloadable)) max(double v1, double v2) {
1503 return v1 > v2 ? v1 : v2;
1506 extern double2 __attribute__((overloadable)) max(double2 v1, double2 v2) {
1508 r.x = v1.x > v2.x ? v1.x : v2.x;
1509 r.y = v1.y > v2.y ? v1.y : v2.y;
1513 extern double3 __attribute__((overloadable)) max(double3 v1, double3 v2) {
1515 r.x = v1.x > v2.x ? v1.x : v2.x;
1516 r.y = v1.y > v2.y ? v1.y : v2.y;
1517 r.z = v1.z > v2.z ? v1.z : v2.z;
1521 extern double4 __attribute__((overloadable)) max(double4 v1, double4 v2) {
1523 r.x = v1.x > v2.x ? v1.x : v2.x;
1524 r.y = v1.y > v2.y ? v1.y : v2.y;
1525 r.z = v1.z > v2.z ? v1.z : v2.z;
1526 r.w = v1.w > v2.w ? v1.w : v2.w;
1530 extern long __attribute__((overloadable)) max(long v1, long v2) {
1531 return v1 > v2 ? v1 : v2;
1533 extern long2 __attribute__((overloadable)) max(long2 v1, long2 v2) {
1535 r.x = v1.x > v2.x ? v1.x : v2.x;
1536 r.y = v1.y > v2.y ? v1.y : v2.y;
1539 extern long3 __attribute__((overloadable)) max(long3 v1, long3 v2) {
1541 r.x = v1.x > v2.x ? v1.x : v2.x;
1542 r.y = v1.y > v2.y ? v1.y : v2.y;
1543 r.z = v1.z > v2.z ? v1.z : v2.z;
1546 extern long4 __attribute__((overloadable)) max(long4 v1, long4 v2) {
1548 r.x = v1.x > v2.x ? v1.x : v2.x;
1549 r.y = v1.y > v2.y ? v1.y : v2.y;
1550 r.z = v1.z > v2.z ? v1.z : v2.z;
1551 r.w = v1.w > v2.w ? v1.w : v2.w;
1555 extern ulong __attribute__((overloadable)) max(ulong v1, ulong v2) {
1556 return v1 > v2 ? v1 : v2;
1558 extern ulong2 __attribute__((overloadable)) max(ulong2 v1, ulong2 v2) {
1560 r.x = v1.x > v2.x ? v1.x : v2.x;
1561 r.y = v1.y > v2.y ? v1.y : v2.y;
1564 extern ulong3 __attribute__((overloadable)) max(ulong3 v1, ulong3 v2) {
1566 r.x = v1.x > v2.x ? v1.x : v2.x;
1567 r.y = v1.y > v2.y ? v1.y : v2.y;
1568 r.z = v1.z > v2.z ? v1.z : v2.z;
1571 extern ulong4 __attribute__((overloadable)) max(ulong4 v1, ulong4 v2) {
1573 r.x = v1.x > v2.x ? v1.x : v2.x;
1574 r.y = v1.y > v2.y ? v1.y : v2.y;
1575 r.z = v1.z > v2.z ? v1.z : v2.z;
1576 r.w = v1.w > v2.w ? v1.w : v2.w;
1587 float __attribute__((overloadable)) native_##fn(float v1, float v2) { return fn(v1, v2);} \
1588 float2 __attribute__((overloadable)) native_##fn(float2 v1, float2 v2) { return fn(v1, v2);} \
1589 float3 __attribute__((overloadable)) native_##fn(float3 v1, float3 v2) { return fn(v1, v2);} \
1590 float4 __attribute__((overloadable)) native_##fn(float4 v1, float4 v2) { return fn(v1, v2);}
1593 float __attribute__((overloadable)) native_##fn(float v1, float *v2) { return fn(v1, v2);} \
1594 float2 __attribute__((overloadable)) native_##fn(float2 v1, float2 *v2) { return fn(v1, v2);} \
1595 float3 __attribute__((overloadable)) native_##fn(float3 v1, float3 *v2) { return fn(v1, v2);} \
1596 float4 __attribute__((overloadable)) native_##fn(float4 v1, float4 *v2) { return fn(v1, v2);}
1599 float __attribute__((overloadable)) native_##fn(float v1, int v2) { return fn(v1, v2);} \
1600 float2 __attribute__((overloadable)) native_##fn(float2 v1, int2 v2) { return fn(v1, v2);} \
1601 float3 __attribute__((overloadable)) native_##fn(float3 v1, int3 v2) { return fn(v1, v2);} \
1602 float4 __attribute__((overloadable)) native_##fn(float4 v1, int4 v2) { return fn(v1, v2);}
1643 float __attribute__((overloadable)) native_distance(float v1, float v2) { return fast_distance(v1, v2);}
1644 float __attribute__((overloadable)) native_distance(float2 v1, float2 v2) { return fast_distance(v1, v2);}
1645 float __attribute__((overloadable)) native_distance(float3 v1, float3 v2) { return fast_distance(v1, v2);}
1646 float __attribute__((overloadable)) native_distance(float4 v1, float4 v2) { return fast_distance(v1, v2);}
1653 float __attribute__((overloadable)) native_divide(float v1, float v2) { return v1 / v2;}
1654 float2 __attribute__((overloadable)) native_divide(float2 v1, float2 v2) { return v1 / v2;}
1655 float3 __attribute__((overloadable)) native_divide(float3 v1, float3 v2) { return v1 / v2;}
1656 float4 __attribute__((overloadable)) native_divide(float4 v1, float4 v2) { return v1 / v2;}
1711 extern half2 __attribute__((overloadable)) fn(half2 v1, half2 v2) { \
1712 return convert_half2(fn(convert_float2(v1), \
1715 extern half3 __attribute__((overloadable)) fn(half3 v1, half3 v2) { \
1716 return convert_half3(fn(convert_float3(v1), \
1719 extern half4 __attribute__((overloadable)) fn(half4 v1, half4 v2) { \
1720 return convert_half4(fn(convert_float4(v1), \
1729 extern half2 __attribute__((overloadable)) fn(half2 v1, half v2) { \
1730 return convert_half2(fn(convert_float2(v1), (float) v2)); \
1732 extern half3 __attribute__((overloadable)) fn(half3 v1, half v2) { \
1733 return convert_half3(fn(convert_float3(v1), (float) v2)); \
1735 extern half4 __attribute__((overloadable)) fn(half4 v1, half v2) { \
1736 return convert_half4(fn(convert_float4(v1), (float) v2)); \
1747 extern half2 __attribute__((overloadable)) fn(half2 v1, half2 v2, half2 v3) { \
1748 return convert_half2(fn(convert_float2(v1), \
1752 extern half3 __attribute__((overloadable)) fn(half3 v1, half3 v2, half3 v3) { \
1753 return convert_half3(fn(convert_float3(v1), \
1757 extern half4 __attribute__((overloadable)) fn(half4 v1, half4 v2, half4 v3) { \
1758 return convert_half4(fn(convert_float4(v1), \
1772 extern half2 __attribute__((overloadable)) fn(half2 v1, int2 v2) { \
1773 return convert_half2(fn(convert_float2(v1), v2)); \
1775 extern half3 __attribute__((overloadable)) fn(half3 v1, int3 v2) { \
1776 return convert_half3(fn(convert_float3(v1), v2)); \
1778 extern half4 __attribute__((overloadable)) fn(half4 v1, int4 v2) { \
1779 return convert_half4(fn(convert_float4(v1), v2)); \
1808 extern half __attribute__((overloadable)) fn(half2 v1, half2 v2) { \
1809 return fn(convert_float2(v1), convert_float2(v2)); \
1811 extern half __attribute__((overloadable)) fn(half3 v1, half3 v2) { \
1812 return fn(convert_float3(v1), convert_float3(v2)); \
1814 extern half __attribute__((overloadable)) fn(half4 v1, half4 v2) { \
1815 return fn(convert_float4(v1), convert_float4(v2)); \
1819 extern half2 __attribute__((overloadable)) fnc(half2 v1, half2 *v2) { \
1822 ret.x = fnc(v1.x, &t[0]); \
1823 ret.y = fnc(v1.y, &t[1]); \
1828 extern half3 __attribute__((overloadable)) fnc(half3 v1, half3 *v2) { \
1831 ret.x = fnc(v1.x, &t[0]); \
1832 ret.y = fnc(v1.y, &t[1]); \
1833 ret.z = fnc(v1.z, &t[2]); \
1839 extern half4 __attribute__((overloadable)) fnc(half4 v1, half4 *v2) { \
1842 ret.x = fnc(v1.x, &t[0]); \
1843 ret.y = fnc(v1.y, &t[1]); \
1844 ret.z = fnc(v1.z, &t[2]); \
1845 ret.w = fnc(v1.w, &t[3]); \
1859 extern half2 __attribute__((overloadable)) fn(half2 v1, half2 v2) { \
1861 ret.x = fn(v1.x, v2.x); \
1862 ret.y = fn(v1.y, v2.y); \
1865 extern half3 __attribute__((overloadable)) fn(half3 v1, half3 v2) { \
1867 ret.x = fn(v1.x, v2.x); \
1868 ret.y = fn(v1.y, v2.y); \
1869 ret.z = fn(v1.z, v2.z); \
1872 extern half4 __attribute__((overloadable)) fn(half4 v1, half4 v2) { \
1874 ret.x = fn(v1.x, v2.x); \
1875 ret.y = fn(v1.y, v2.y); \
1876 ret.z = fn(v1.z, v2.z); \
1877 ret.w = fn(v1.w, v2.w); \
1978 extern half2 __attribute__((overloadable)) frexp(half2 v1, int2 *eptr) {
1981 ret.x = frexp(v1.x, &e[0]);
1982 ret.y = frexp(v1.y, &e[1]);
1988 extern half3 __attribute__((overloadable)) frexp(half3 v1, int3 *eptr) {
1991 ret.x = frexp(v1.x, &e[0]);
1992 ret.y = frexp(v1.y, &e[1]);
1993 ret.z = frexp(v1.z, &e[2]);
2000 extern half4 __attribute__((overloadable)) frexp(half4 v1, int4 *eptr) {
2003 ret.x = frexp(v1.x, &e[0]);
2004 ret.y = frexp(v1.y, &e[1]);
2005 ret.z = frexp(v1.z, &e[2]);
2006 ret.w = frexp(v1.w, &e[3]);