Lines Matching refs:r

27     float2 r;                                                   \
28 r.x = fnc(v.x); \
29 r.y = fnc(v.y); \
30 return r; \
33 float3 r; \
34 r.x = fnc(v.x); \
35 r.y = fnc(v.y); \
36 r.z = fnc(v.z); \
37 return r; \
40 float4 r; \
41 r.x = fnc(v.x); \
42 r.y = fnc(v.y); \
43 r.z = fnc(v.z); \
44 r.w = fnc(v.w); \
45 return r; \
50 int2 r; \
51 r.x = fnc(v.x); \
52 r.y = fnc(v.y); \
53 return r; \
56 int3 r; \
57 r.x = fnc(v.x); \
58 r.y = fnc(v.y); \
59 r.z = fnc(v.z); \
60 return r; \
63 int4 r; \
64 r.x = fnc(v.x); \
65 r.y = fnc(v.y); \
66 r.z = fnc(v.z); \
67 r.w = fnc(v.w); \
68 return r; \
73 float2 r; \
74 r.x = fnc(v1.x, v2.x); \
75 r.y = fnc(v1.y, v2.y); \
76 return r; \
79 float3 r; \
80 r.x = fnc(v1.x, v2.x); \
81 r.y = fnc(v1.y, v2.y); \
82 r.z = fnc(v1.z, v2.z); \
83 return r; \
86 float4 r; \
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); \
91 return r; \
96 float2 r; \
97 r.x = fnc(v1.x, v2); \
98 r.y = fnc(v1.y, v2); \
99 return r; \
102 float3 r; \
103 r.x = fnc(v1.x, v2); \
104 r.y = fnc(v1.y, v2); \
105 r.z = fnc(v1.z, v2); \
106 return r; \
109 float4 r; \
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); \
114 return r; \
119 float2 r; \
120 r.x = fnc(v1.x, v2.x); \
121 r.y = fnc(v1.y, v2.y); \
122 return r; \
125 float3 r; \
126 r.x = fnc(v1.x, v2.x); \
127 r.y = fnc(v1.y, v2.y); \
128 r.z = fnc(v1.z, v2.z); \
129 return r; \
132 float4 r; \
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); \
137 return r; \
142 float2 r; \
143 r.x = fnc(v1.x, v2); \
144 r.y = fnc(v1.y, v2); \
145 return r; \
148 float3 r; \
149 r.x = fnc(v1.x, v2); \
150 r.y = fnc(v1.y, v2); \
151 r.z = fnc(v1.z, v2); \
152 return r; \
155 float4 r; \
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); \
160 return r; \
166 float2 r; \
168 r.x = fnc(v1.x, &t[0]); \
169 r.y = fnc(v1.y, &t[1]); \
172 return r; \
176 float3 r; \
178 r.x = fnc(v1.x, &t[0]); \
179 r.y = fnc(v1.y, &t[1]); \
180 r.z = fnc(v1.z, &t[2]); \
184 return r; \
188 float4 r; \
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]); \
198 return r; \
203 float2 r; \
205 r.x = fnc(v1.x, &t[0]); \
206 r.y = fnc(v1.y, &t[1]); \
209 return r; \
212 float3 r; \
214 r.x = fnc(v1.x, &t[0]); \
215 r.y = fnc(v1.y, &t[1]); \
216 r.z = fnc(v1.z, &t[2]); \
220 return r; \
223 float4 r; \
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]); \
233 return r; \
239 float2 r; \
240 r.x = fnc(v1.x, v2.x, v3.x); \
241 r.y = fnc(v1.y, v2.y, v3.y); \
242 return r; \
246 float3 r; \
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); \
250 return r; \
254 float4 r; \
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); \
259 return r; \
265 float2 r; \
267 r.x = fnc(v1.x, v2.x, &t[0]); \
268 r.y = fnc(v1.y, v2.y, &t[1]); \
271 return r; \
275 float3 r; \
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]); \
283 return r; \
287 float4 r; \
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]); \
297 return r; \
676 extern float __attribute__((overloadable)) rootn(float v, int r) { in FN_FUNC_FN()
677 if (r == 0) { in FN_FUNC_FN()
682 if (r < 0) { in FN_FUNC_FN()
683 if (r & 1) { in FN_FUNC_FN()
689 if (r & 1) { in FN_FUNC_FN()
698 if (r & 1) { in FN_FUNC_FN()
699 return (-1.f * pow(-1.f * v, 1.f / r)); in FN_FUNC_FN()
705 return pow(v, 1.f / r); in FN_FUNC_FN()
814 typeout##2 r; \
815 r.x = fnc(v.x); \
816 r.y = fnc(v.y); \
817 return r; \
820 typeout##3 r; \
821 r.x = fnc(v.x); \
822 r.y = fnc(v.y); \
823 r.z = fnc(v.z); \
824 return r; \
827 typeout##4 r; \
828 r.x = fnc(v.x); \
829 r.y = fnc(v.y); \
830 r.z = fnc(v.z); \
831 r.w = fnc(v.w); \
832 return r; \
857 type##2 r; \
858 r.x = fnc(v1.x, v2.x); \
859 r.y = fnc(v1.y, v2.y); \
860 return r; \
864 type##3 r; \
865 r.x = fnc(v1.x, v2.x); \
866 r.y = fnc(v1.y, v2.y); \
867 r.z = fnc(v1.z, v2.z); \
868 return r; \
872 type##4 r; \
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); \
877 return r; \
994 float2 r; in step() local
995 r.x = (v.x < edge.x) ? 0.f : 1.f; in step()
996 r.y = (v.y < edge.y) ? 0.f : 1.f; in step()
997 return r; in step()
1000 float3 r; in step() local
1001 r.x = (v.x < edge.x) ? 0.f : 1.f; in step()
1002 r.y = (v.y < edge.y) ? 0.f : 1.f; in step()
1003 r.z = (v.z < edge.z) ? 0.f : 1.f; in step()
1004 return r; in step()
1007 float4 r; in step() local
1008 r.x = (v.x < edge.x) ? 0.f : 1.f; in step()
1009 r.y = (v.y < edge.y) ? 0.f : 1.f; in step()
1010 r.z = (v.z < edge.z) ? 0.f : 1.f; in step()
1011 r.w = (v.w < edge.w) ? 0.f : 1.f; in step()
1012 return r; in step()
1015 float2 r; in step() local
1016 r.x = (v < edge.x) ? 0.f : 1.f; in step()
1017 r.y = (v < edge.y) ? 0.f : 1.f; in step()
1018 return r; in step()
1021 float3 r; in step() local
1022 r.x = (v < edge.x) ? 0.f : 1.f; in step()
1023 r.y = (v < edge.y) ? 0.f : 1.f; in step()
1024 r.z = (v < edge.z) ? 0.f : 1.f; in step()
1025 return r; in step()
1028 float4 r; in step() local
1029 r.x = (v < edge.x) ? 0.f : 1.f; in step()
1030 r.y = (v < edge.y) ? 0.f : 1.f; in step()
1031 r.z = (v < edge.z) ? 0.f : 1.f; in step()
1032 r.w = (v < edge.w) ? 0.f : 1.f; in step()
1033 return r; in step()
1036 float2 r; in step() local
1037 r.x = (v.x < edge) ? 0.f : 1.f; in step()
1038 r.y = (v.y < edge) ? 0.f : 1.f; in step()
1039 return r; in step()
1042 float3 r; in step() local
1043 r.x = (v.x < edge) ? 0.f : 1.f; in step()
1044 r.y = (v.y < edge) ? 0.f : 1.f; in step()
1045 r.z = (v.z < edge) ? 0.f : 1.f; in step()
1046 return r; in step()
1049 float4 r; in step() local
1050 r.x = (v.x < edge) ? 0.f : 1.f; in step()
1051 r.y = (v.y < edge) ? 0.f : 1.f; in step()
1052 r.z = (v.z < edge) ? 0.f : 1.f; in step()
1053 r.w = (v.w < edge) ? 0.f : 1.f; in step()
1054 return r; in step()
1067 float3 r; in FN_FUNC_FN() local
1068 r.x = lhs.y * rhs.z - lhs.z * rhs.y; in FN_FUNC_FN()
1069 r.y = lhs.z * rhs.x - lhs.x * rhs.z; in FN_FUNC_FN()
1070 r.z = lhs.x * rhs.y - lhs.y * rhs.x; in FN_FUNC_FN()
1071 return r; in FN_FUNC_FN()
1075 float4 r; in cross() local
1076 r.x = lhs.y * rhs.z - lhs.z * rhs.y; in cross()
1077 r.y = lhs.z * rhs.x - lhs.x * rhs.z; in cross()
1078 r.z = lhs.x * rhs.y - lhs.y * rhs.x; in cross()
1079 r.w = 0.f; in cross()
1080 return r; in cross()
1267 float r = (v - x); in native_exp2() local
1272 r *= 0.694f; // ~ log(e) / log(2) in native_exp2()
1273 float r2 = r*r; in native_exp2()
1274 float adj = 1.f + r + (r2 * 0.5f) + (r2*r * 0.166666f) + (r2*r2 * 0.0416666f); in native_exp2()
1281 float2 r = (v - convert_float2(x)); in native_exp2() local
1287 r *= 0.694f; // ~ log(e) / log(2) in native_exp2()
1288 float2 r2 = r*r; in native_exp2()
1289 float2 adj = 1.f + r + (r2 * 0.5f) + (r2*r * 0.166666f) + (r2*r2 * 0.0416666f); in native_exp2()
1296 float4 r = (v - convert_float4(x)); in native_exp2() local
1302 r *= 0.694f; // ~ log(e) / log(2) in native_exp2()
1303 float4 r2 = r*r; in native_exp2()
1304 float4 adj = 1.f + r + (r2 * 0.5f) + (r2*r * 0.166666f) + (r2*r2 * 0.0416666f); in native_exp2()
1429 double2 r; in min() local
1430 r.x = v1.x < v2.x ? v1.x : v2.x; in min()
1431 r.y = v1.y < v2.y ? v1.y : v2.y; in min()
1432 return r; in min()
1436 double3 r; in min() local
1437 r.x = v1.x < v2.x ? v1.x : v2.x; in min()
1438 r.y = v1.y < v2.y ? v1.y : v2.y; in min()
1439 r.z = v1.z < v2.z ? v1.z : v2.z; in min()
1440 return r; in min()
1444 double4 r; in min() local
1445 r.x = v1.x < v2.x ? v1.x : v2.x; in min()
1446 r.y = v1.y < v2.y ? v1.y : v2.y; in min()
1447 r.z = v1.z < v2.z ? v1.z : v2.z; in min()
1448 r.w = v1.w < v2.w ? v1.w : v2.w; in min()
1449 return r; in min()
1456 long2 r; in min() local
1457 r.x = v1.x < v2.x ? v1.x : v2.x; in min()
1458 r.y = v1.y < v2.y ? v1.y : v2.y; in min()
1459 return r; in min()
1462 long3 r; in min() local
1463 r.x = v1.x < v2.x ? v1.x : v2.x; in min()
1464 r.y = v1.y < v2.y ? v1.y : v2.y; in min()
1465 r.z = v1.z < v2.z ? v1.z : v2.z; in min()
1466 return r; in min()
1469 long4 r; in min() local
1470 r.x = v1.x < v2.x ? v1.x : v2.x; in min()
1471 r.y = v1.y < v2.y ? v1.y : v2.y; in min()
1472 r.z = v1.z < v2.z ? v1.z : v2.z; in min()
1473 r.w = v1.w < v2.w ? v1.w : v2.w; in min()
1474 return r; in min()
1481 ulong2 r; in min() local
1482 r.x = v1.x < v2.x ? v1.x : v2.x; in min()
1483 r.y = v1.y < v2.y ? v1.y : v2.y; in min()
1484 return r; in min()
1487 ulong3 r; in min() local
1488 r.x = v1.x < v2.x ? v1.x : v2.x; in min()
1489 r.y = v1.y < v2.y ? v1.y : v2.y; in min()
1490 r.z = v1.z < v2.z ? v1.z : v2.z; in min()
1491 return r; in min()
1494 ulong4 r; in min() local
1495 r.x = v1.x < v2.x ? v1.x : v2.x; in min()
1496 r.y = v1.y < v2.y ? v1.y : v2.y; in min()
1497 r.z = v1.z < v2.z ? v1.z : v2.z; in min()
1498 r.w = v1.w < v2.w ? v1.w : v2.w; in min()
1499 return r; in min()
1507 double2 r; in max() local
1508 r.x = v1.x > v2.x ? v1.x : v2.x; in max()
1509 r.y = v1.y > v2.y ? v1.y : v2.y; in max()
1510 return r; in max()
1514 double3 r; in max() local
1515 r.x = v1.x > v2.x ? v1.x : v2.x; in max()
1516 r.y = v1.y > v2.y ? v1.y : v2.y; in max()
1517 r.z = v1.z > v2.z ? v1.z : v2.z; in max()
1518 return r; in max()
1522 double4 r; in max() local
1523 r.x = v1.x > v2.x ? v1.x : v2.x; in max()
1524 r.y = v1.y > v2.y ? v1.y : v2.y; in max()
1525 r.z = v1.z > v2.z ? v1.z : v2.z; in max()
1526 r.w = v1.w > v2.w ? v1.w : v2.w; in max()
1527 return r; in max()
1534 long2 r; in max() local
1535 r.x = v1.x > v2.x ? v1.x : v2.x; in max()
1536 r.y = v1.y > v2.y ? v1.y : v2.y; in max()
1537 return r; in max()
1540 long3 r; in max() local
1541 r.x = v1.x > v2.x ? v1.x : v2.x; in max()
1542 r.y = v1.y > v2.y ? v1.y : v2.y; in max()
1543 r.z = v1.z > v2.z ? v1.z : v2.z; in max()
1544 return r; in max()
1547 long4 r; in max() local
1548 r.x = v1.x > v2.x ? v1.x : v2.x; in max()
1549 r.y = v1.y > v2.y ? v1.y : v2.y; in max()
1550 r.z = v1.z > v2.z ? v1.z : v2.z; in max()
1551 r.w = v1.w > v2.w ? v1.w : v2.w; in max()
1552 return r; in max()
1559 ulong2 r; in max() local
1560 r.x = v1.x > v2.x ? v1.x : v2.x; in max()
1561 r.y = v1.y > v2.y ? v1.y : v2.y; in max()
1562 return r; in max()
1565 ulong3 r; in max() local
1566 r.x = v1.x > v2.x ? v1.x : v2.x; in max()
1567 r.y = v1.y > v2.y ? v1.y : v2.y; in max()
1568 r.z = v1.z > v2.z ? v1.z : v2.z; in max()
1569 return r; in max()
1572 ulong4 r; in max() local
1573 r.x = v1.x > v2.x ? v1.x : v2.x; in max()
1574 r.y = v1.y > v2.y ? v1.y : v2.y; in max()
1575 r.z = v1.z > v2.z ? v1.z : v2.z; in max()
1576 r.w = v1.w > v2.w ? v1.w : v2.w; in max()
1577 return r; in max()
1904 half3 r; in cross() local
1905 r.x = lhs.y * rhs.z - lhs.z * rhs.y; in cross()
1906 r.y = lhs.z * rhs.x - lhs.x * rhs.z; in cross()
1907 r.z = lhs.x * rhs.y - lhs.y * rhs.x; in cross()
1908 return r; in cross()
1912 half4 r; in cross() local
1913 r.x = lhs.y * rhs.z - lhs.z * rhs.y; in cross()
1914 r.y = lhs.z * rhs.x - lhs.x * rhs.z; in cross()
1915 r.z = lhs.x * rhs.y - lhs.y * rhs.x; in cross()
1916 r.w = 0.f; in cross()
1917 return r; in cross()
2195 half2 r; in step() local
2196 r.x = (v.x < edge.x) ? 0.f : 1.f; in step()
2197 r.y = (v.y < edge.y) ? 0.f : 1.f; in step()
2198 return r; in step()
2201 half3 r; in step() local
2202 r.x = (v.x < edge.x) ? 0.f : 1.f; in step()
2203 r.y = (v.y < edge.y) ? 0.f : 1.f; in step()
2204 r.z = (v.z < edge.z) ? 0.f : 1.f; in step()
2205 return r; in step()
2208 half4 r; in step() local
2209 r.x = (v.x < edge.x) ? 0.f : 1.f; in step()
2210 r.y = (v.y < edge.y) ? 0.f : 1.f; in step()
2211 r.z = (v.z < edge.z) ? 0.f : 1.f; in step()
2212 r.w = (v.w < edge.w) ? 0.f : 1.f; in step()
2213 return r; in step()
2216 half2 r; in step() local
2217 r.x = (v < edge.x) ? 0.f : 1.f; in step()
2218 r.y = (v < edge.y) ? 0.f : 1.f; in step()
2219 return r; in step()
2222 half3 r; in step() local
2223 r.x = (v < edge.x) ? 0.f : 1.f; in step()
2224 r.y = (v < edge.y) ? 0.f : 1.f; in step()
2225 r.z = (v < edge.z) ? 0.f : 1.f; in step()
2226 return r; in step()
2229 half4 r; in step() local
2230 r.x = (v < edge.x) ? 0.f : 1.f; in step()
2231 r.y = (v < edge.y) ? 0.f : 1.f; in step()
2232 r.z = (v < edge.z) ? 0.f : 1.f; in step()
2233 r.w = (v < edge.w) ? 0.f : 1.f; in step()
2234 return r; in step()
2237 half2 r; in step() local
2238 r.x = (v.x < edge) ? 0.f : 1.f; in step()
2239 r.y = (v.y < edge) ? 0.f : 1.f; in step()
2240 return r; in step()
2243 half3 r; in step() local
2244 r.x = (v.x < edge) ? 0.f : 1.f; in step()
2245 r.y = (v.y < edge) ? 0.f : 1.f; in step()
2246 r.z = (v.z < edge) ? 0.f : 1.f; in step()
2247 return r; in step()
2250 half4 r; in step() local
2251 r.x = (v.x < edge) ? 0.f : 1.f; in step()
2252 r.y = (v.y < edge) ? 0.f : 1.f; in step()
2253 r.z = (v.z < edge) ? 0.f : 1.f; in step()
2254 r.w = (v.w < edge) ? 0.f : 1.f; in step()
2255 return r; in step()