Lines Matching refs:v

13 extern float __attribute__((overloadable)) fmin(float v, float v2);
14 extern float2 __attribute__((overloadable)) fmin(float2 v, float v2);
15 extern float3 __attribute__((overloadable)) fmin(float3 v, float v2);
16 extern float4 __attribute__((overloadable)) fmin(float4 v, float v2);
18 extern float __attribute__((overloadable)) fmax(float v, float v2);
19 extern float2 __attribute__((overloadable)) fmax(float2 v, float v2);
20 extern float3 __attribute__((overloadable)) fmax(float3 v, float v2);
21 extern float4 __attribute__((overloadable)) fmax(float4 v, float v2);
26 extern float2 __attribute__((overloadable)) fnc(float2 v) { \
28 r.x = fnc(v.x); \
29 r.y = fnc(v.y); \
32 extern float3 __attribute__((overloadable)) fnc(float3 v) { \
34 r.x = fnc(v.x); \
35 r.y = fnc(v.y); \
36 r.z = fnc(v.z); \
39 extern float4 __attribute__((overloadable)) fnc(float4 v) { \
41 r.x = fnc(v.x); \
42 r.y = fnc(v.y); \
43 r.z = fnc(v.z); \
44 r.w = fnc(v.w); \
49 extern int2 __attribute__((overloadable)) fnc(float2 v) { \
51 r.x = fnc(v.x); \
52 r.y = fnc(v.y); \
55 extern int3 __attribute__((overloadable)) fnc(float3 v) { \
57 r.x = fnc(v.x); \
58 r.y = fnc(v.y); \
59 r.z = fnc(v.z); \
62 extern int4 __attribute__((overloadable)) fnc(float4 v) { \
64 r.x = fnc(v.x); \
65 r.y = fnc(v.y); \
66 r.z = fnc(v.z); \
67 r.w = fnc(v.w); \
342 float __attribute__((overloadable)) acos(float v) { in acos() argument
343 return SC_acosf(v); in acos()
348 float __attribute__((overloadable)) acosh(float v) { in acosh() argument
349 return SC_acoshf(v); in acosh()
354 extern float __attribute__((overloadable)) acospi(float v) { in FN_FUNC_FN()
355 return acos(v) / M_PI; in FN_FUNC_FN()
360 float __attribute__((overloadable)) asin(float v) { in asin() argument
361 return SC_asinf(v); in asin()
366 float __attribute__((overloadable)) asinh(float v) { in asinh() argument
367 return SC_asinhf(v); in asinh()
371 extern float __attribute__((overloadable)) asinpi(float v) { in FN_FUNC_FN()
372 return asin(v) / M_PI; in FN_FUNC_FN()
377 float __attribute__((overloadable)) atan(float v) { in atan() argument
378 return SC_atanf(v); in atan()
389 float __attribute__((overloadable)) atanh(float v) { in atanh() argument
390 return SC_atanhf(v); in atanh()
394 extern float __attribute__((overloadable)) atanpi(float v) { in FN_FUNC_FN()
395 return atan(v) / M_PI; in FN_FUNC_FN()
406 float __attribute__((overloadable)) cbrt(float v) { in cbrt() argument
407 return SC_cbrtf(v); in cbrt()
412 float __attribute__((overloadable)) ceil(float v) { in ceil() argument
413 return SC_ceilf(v); in ceil()
424 float __attribute__((overloadable)) cos(float v) { in cos() argument
425 return SC_cosf(v); in cos()
430 float __attribute__((overloadable)) cosh(float v) { in cosh() argument
431 return SC_coshf(v); in cosh()
435 extern float __attribute__((overloadable)) cospi(float v) { in FN_FUNC_FN()
436 return cos(v * M_PI); in FN_FUNC_FN()
441 float __attribute__((overloadable)) erfc(float v) { in erfc() argument
442 return SC_erfcf(v); in erfc()
447 float __attribute__((overloadable)) erf(float v) { in erf() argument
448 return SC_erff(v); in erf()
453 float __attribute__((overloadable)) exp(float v) { in exp() argument
454 return SC_expf(v); in exp()
459 float __attribute__((overloadable)) exp2(float v) { in exp2() argument
460 return SC_exp2f(v); in exp2()
466 extern float __attribute__((overloadable)) exp10(float v) { in exp10() argument
467 return exp2(v * 3.321928095f); in exp10()
472 float __attribute__((overloadable)) expm1(float v) { in expm1() argument
473 return SC_expm1f(v); in expm1()
477 extern float __attribute__((overloadable)) fabs(float v) { in FN_FUNC_FN()
478 int i = *((int*)(void*)&v) & 0x7fffffff; in FN_FUNC_FN()
490 float __attribute__((overloadable)) floor(float v) { in floor() argument
491 return SC_floorf(v); in floor()
509 extern float __attribute__((overloadable)) fract(float v, float *iptr) { in FN_FUNC_FN_FN()
510 int i = (int)floor(v); in FN_FUNC_FN_FN()
514 return fmin(v - i, 0x1.fffffep-1f); in FN_FUNC_FN_FN()
518 extern float __attribute__((const, overloadable)) fract(float v) { in FN_FUNC_FN_PFN()
520 return fract(v, &unused); in FN_FUNC_FN_PFN()
537 int __attribute__((overloadable)) ilogb(float v) { in ilogb() argument
538 return SC_ilogbf(v); in ilogb()
550 float __attribute__((overloadable)) lgamma(float v) { in lgamma() argument
551 return SC_lgammaf(v); in lgamma()
555 float __attribute__((overloadable)) lgamma(float v, int* ptr) { in lgamma() argument
556 return SC_lgammaf_r(v, ptr); in lgamma()
561 float __attribute__((overloadable)) log(float v) { in log() argument
562 return SC_logf(v); in log()
567 float __attribute__((overloadable)) log10(float v) { in log10() argument
568 return SC_log10f(v); in log10()
573 extern float __attribute__((overloadable)) log2(float v) { in FN_FUNC_FN()
574 return log10(v) * 3.321928095f; in FN_FUNC_FN()
579 float __attribute__((overloadable)) log1p(float v) { in log1p() argument
580 return SC_log1pf(v); in log1p()
585 float __attribute__((overloadable)) logb(float v) { in logb() argument
586 return SC_logbf(v); in logb()
609 extern float __attribute__((overloadable)) nan(uint v) { in nan() argument
612 *ip = v | 0x7fc00000; in nan()
633 extern float __attribute__((overloadable)) pown(float v, int p) { in FN_FUNC_FN_FN()
639 float sign = (p & 0x1) ? copysign(1.f, v) : 1.f; in FN_FUNC_FN_FN()
640 float f = pow(v, (float)p); in FN_FUNC_FN_FN()
645 extern float __attribute__((overloadable)) powr(float v, float p) { in FN_FUNC_FN_IN()
646 return pow(v, p); in FN_FUNC_FN_IN()
648 extern float2 __attribute__((overloadable)) powr(float2 v, float2 p) { in powr() argument
649 return pow(v, p); in powr()
651 extern float3 __attribute__((overloadable)) powr(float3 v, float3 p) { in powr() argument
652 return pow(v, p); in powr()
654 extern float4 __attribute__((overloadable)) powr(float4 v, float4 p) { in powr() argument
655 return pow(v, p); in powr()
671 float __attribute__((overloadable)) rint(float v) { in rint() argument
672 return SC_rintf(v); in rint()
676 extern float __attribute__((overloadable)) rootn(float v, int r) { in FN_FUNC_FN()
681 if (iszero(v)) { in FN_FUNC_FN()
684 return copysign(posinf(), v); in FN_FUNC_FN()
690 return copysign(0.f, v); in FN_FUNC_FN()
697 if (!isinf(v) && !isnan(v) && (v < 0.f)) { 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()
710 float __attribute__((overloadable)) round(float v) { in round() argument
711 return SC_roundf(v); in round()
721 extern float __attribute__((overloadable)) rsqrt(float v) { in rsqrt() argument
722 return 1.f / sqrt(v); in rsqrt()
731 float __attribute__((overloadable)) sqrt(float v) { in sqrt() argument
732 return SC_sqrtf(v); in sqrt()
746 float __attribute__((overloadable)) sin(float v) { in sin() argument
747 return SC_sinf(v); in sin()
751 extern float __attribute__((overloadable)) sincos(float v, float *cosptr) { in FN_FUNC_FN()
752 *cosptr = cos(v); in FN_FUNC_FN()
753 return sin(v); in FN_FUNC_FN()
755 extern float2 __attribute__((overloadable)) sincos(float2 v, float2 *cosptr) { in sincos() argument
756 *cosptr = cos(v); in sincos()
757 return sin(v); in sincos()
759 extern float3 __attribute__((overloadable)) sincos(float3 v, float3 *cosptr) { in sincos() argument
760 *cosptr = cos(v); in sincos()
761 return sin(v); in sincos()
763 extern float4 __attribute__((overloadable)) sincos(float4 v, float4 *cosptr) { in sincos() argument
764 *cosptr = cos(v); in sincos()
765 return sin(v); in sincos()
769 float __attribute__((overloadable)) sinh(float v) { in sinh() argument
770 return SC_sinhf(v); in sinh()
774 extern float __attribute__((overloadable)) sinpi(float v) { in FN_FUNC_FN()
775 return sin(v * M_PI); in FN_FUNC_FN()
780 float __attribute__((overloadable)) tan(float v) { in tan() argument
781 return SC_tanf(v); in tan()
786 float __attribute__((overloadable)) tanh(float v) { in tanh() argument
787 return SC_tanhf(v); in tanh()
791 extern float __attribute__((overloadable)) tanpi(float v) { in FN_FUNC_FN()
792 return tan(v * M_PI); in FN_FUNC_FN()
798 float __attribute__((overloadable)) tgamma(float v) { in tgamma() argument
799 return SC_tgammaf(v); in tgamma()
804 float __attribute__((overloadable)) trunc(float v) { in trunc() argument
805 return SC_truncf(v); in trunc()
813 extern typeout##2 __attribute__((overloadable)) fnc(typein##2 v) { \
815 r.x = fnc(v.x); \
816 r.y = fnc(v.y); \
819 extern typeout##3 __attribute__((overloadable)) fnc(typein##3 v) { \
821 r.x = fnc(v.x); \
822 r.y = fnc(v.y); \
823 r.z = fnc(v.z); \
826 extern typeout##4 __attribute__((overloadable)) fnc(typein##4 v) { \
828 r.x = fnc(v.x); \
829 r.y = fnc(v.y); \
830 r.z = fnc(v.z); \
831 r.w = fnc(v.w); \
893 extern uint32_t __attribute__((overloadable)) abs(int32_t v) {
894 if (v < 0)
895 return -v;
896 return v;
898 extern uint16_t __attribute__((overloadable)) abs(int16_t v) { in abs() argument
899 if (v < 0) in abs()
900 return -v; in abs()
901 return v; in abs()
903 extern uint8_t __attribute__((overloadable)) abs(int8_t v) { in abs() argument
904 if (v < 0) in abs()
905 return -v; in abs()
906 return v; in abs()
915 extern uint32_t __attribute__((overloadable)) clz(uint32_t v) { in clz() argument
916 return __builtin_clz(v); in clz()
918 extern uint16_t __attribute__((overloadable)) clz(uint16_t v) { in clz() argument
919 return __builtin_clz(v) - 16; in clz()
921 extern uint8_t __attribute__((overloadable)) clz(uint8_t v) { in clz() argument
922 return __builtin_clz(v) - 24; in clz()
924 extern int32_t __attribute__((overloadable)) clz(int32_t v) { in clz() argument
925 return __builtin_clz(v); in clz()
927 extern int16_t __attribute__((overloadable)) clz(int16_t v) { in clz() argument
928 return __builtin_clz(((uint32_t)v) & 0x0000ffff) - 16; in clz()
930 extern int8_t __attribute__((overloadable)) clz(int8_t v) { in clz() argument
931 return __builtin_clz(((uint32_t)v) & 0x000000ff) - 24; in clz()
990 extern float __attribute__((overloadable)) step(float edge, float v) { in step() argument
991 return (v < edge) ? 0.f : 1.f; in step()
993 extern float2 __attribute__((overloadable)) step(float2 edge, float2 v) { in step() argument
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()
999 extern float3 __attribute__((overloadable)) step(float3 edge, float3 v) { in step() argument
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()
1006 extern float4 __attribute__((overloadable)) step(float4 edge, float4 v) { in step() argument
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()
1014 extern float2 __attribute__((overloadable)) step(float2 edge, float v) { in step() argument
1016 r.x = (v < edge.x) ? 0.f : 1.f; in step()
1017 r.y = (v < edge.y) ? 0.f : 1.f; in step()
1020 extern float3 __attribute__((overloadable)) step(float3 edge, float v) { in step() argument
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()
1027 extern float4 __attribute__((overloadable)) step(float4 edge, float v) { in step() argument
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()
1035 extern float2 __attribute__((overloadable)) step(float edge, float2 v) { in step() argument
1037 r.x = (v.x < edge) ? 0.f : 1.f; in step()
1038 r.y = (v.y < edge) ? 0.f : 1.f; in step()
1041 extern float3 __attribute__((overloadable)) step(float edge, float3 v) { in step() argument
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()
1048 extern float4 __attribute__((overloadable)) step(float edge, float4 v) { in step() argument
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()
1057 extern float __attribute__((overloadable)) sign(float v) { in sign() argument
1058 if (v > 0) return 1.f; in sign()
1059 if (v < 0) return -1.f; in sign()
1060 return v; in sign()
1101 extern float __attribute__((overloadable)) length(float v) { in length() argument
1102 return fabs(v); in length()
1104 extern float __attribute__((overloadable)) length(float2 v) { in length() argument
1105 return sqrt(v.x*v.x + v.y*v.y); in length()
1107 extern float __attribute__((overloadable)) length(float3 v) { in length() argument
1108 return sqrt(v.x*v.x + v.y*v.y + v.z*v.z); in length()
1110 extern float __attribute__((overloadable)) length(float4 v) { in length() argument
1111 return sqrt(v.x*v.x + v.y*v.y + v.z*v.z + v.w*v.w); in length()
1116 extern float __attribute__((overloadable)) length(float v);
1117 extern float __attribute__((overloadable)) length(float2 v);
1118 extern float __attribute__((overloadable)) length(float3 v);
1119 extern float __attribute__((overloadable)) length(float4 v);
1139 extern float __attribute__((overloadable)) normalize(float v) { in normalize() argument
1140 if (v == 0.0f) { in normalize()
1142 } else if (v < 0.0f) { in normalize()
1148 extern float2 __attribute__((overloadable)) normalize(float2 v) { in normalize() argument
1149 float l = length(v); in normalize()
1150 return l == 0.0f ? v : v / l; in normalize()
1152 extern float3 __attribute__((overloadable)) normalize(float3 v) { in normalize() argument
1153 float l = length(v); in normalize()
1154 return l == 0.0f ? v : v / l; in normalize()
1156 extern float4 __attribute__((overloadable)) normalize(float4 v) { in normalize() argument
1157 float l = length(v); in normalize()
1158 return l == 0.0f ? v : v / l; in normalize()
1161 extern float __attribute__((overloadable)) half_sqrt(float v) { in half_sqrt() argument
1162 return sqrt(v); in half_sqrt()
1166 extern float __attribute__((overloadable)) fast_length(float v) { in FN_FUNC_FN()
1167 return fabs(v); in FN_FUNC_FN()
1169 extern float __attribute__((overloadable)) fast_length(float2 v) { in fast_length() argument
1170 return half_sqrt(v.x*v.x + v.y*v.y); in fast_length()
1172 extern float __attribute__((overloadable)) fast_length(float3 v) { in fast_length() argument
1173 return half_sqrt(v.x*v.x + v.y*v.y + v.z*v.z); in fast_length()
1175 extern float __attribute__((overloadable)) fast_length(float4 v) { in fast_length() argument
1176 return half_sqrt(v.x*v.x + v.y*v.y + v.z*v.z + v.w*v.w); in fast_length()
1197 extern float __attribute__((overloadable)) fast_normalize(float v) { in fast_normalize() argument
1198 if (v == 0.0f) { in fast_normalize()
1200 } else if (v < 0.0f) { in fast_normalize()
1207 extern float2 __attribute__((overloadable)) fast_normalize(float2 v) { in fast_normalize() argument
1208 float rlength = half_rsqrt(v.x*v.x + v.y*v.y); in fast_normalize()
1209 return (rlength == rlength) ? v * rlength : v; in fast_normalize()
1211 extern float3 __attribute__((overloadable)) fast_normalize(float3 v) { in fast_normalize() argument
1212 float rlength = half_rsqrt(v.x*v.x + v.y*v.y + v.z*v.z); in fast_normalize()
1213 return (rlength == rlength) ? v * rlength : v; in fast_normalize()
1215 extern float4 __attribute__((overloadable)) fast_normalize(float4 v) { in fast_normalize() argument
1216 float rlength = half_rsqrt(v.x*v.x + v.y*v.y + v.z*v.z + v.w*v.w); in fast_normalize()
1217 return (rlength == rlength) ? v * rlength : v; in fast_normalize()
1220 extern float __attribute__((overloadable)) half_recip(float v) { in half_recip() argument
1221 return 1.f / v; in half_recip()
1264 extern float __attribute__((overloadable)) native_exp2(float v) { in native_exp2() argument
1265 int32_t iv = (int)v; in native_exp2()
1267 float r = (v - x); in native_exp2()
1278 extern float2 __attribute__((overloadable)) native_exp2(float2 v) { in native_exp2() argument
1279 int2 iv = convert_int2(v); in native_exp2()
1281 float2 r = (v - convert_float2(x)); in native_exp2()
1293 extern float4 __attribute__((overloadable)) native_exp2(float4 v) { in native_exp2() argument
1294 int4 iv = convert_int4(v); in native_exp2()
1296 float4 r = (v - convert_float4(x)); in native_exp2()
1308 extern float3 __attribute__((overloadable)) native_exp2(float3 v) { in native_exp2() argument
1310 t.xyz = v; in native_exp2()
1315 extern float __attribute__((overloadable)) native_exp(float v) { in native_exp() argument
1316 return native_exp2(v * 1.442695041f); in native_exp()
1318 extern float2 __attribute__((overloadable)) native_exp(float2 v) { in native_exp() argument
1319 return native_exp2(v * 1.442695041f); in native_exp()
1321 extern float3 __attribute__((overloadable)) native_exp(float3 v) { in native_exp() argument
1322 return native_exp2(v * 1.442695041f); in native_exp()
1324 extern float4 __attribute__((overloadable)) native_exp(float4 v) { in native_exp() argument
1325 return native_exp2(v * 1.442695041f); in native_exp()
1328 extern float __attribute__((overloadable)) native_exp10(float v) { in native_exp10() argument
1329 return native_exp2(v * 3.321928095f); in native_exp10()
1331 extern float2 __attribute__((overloadable)) native_exp10(float2 v) { in native_exp10() argument
1332 return native_exp2(v * 3.321928095f); in native_exp10()
1334 extern float3 __attribute__((overloadable)) native_exp10(float3 v) { in native_exp10() argument
1335 return native_exp2(v * 3.321928095f); in native_exp10()
1337 extern float4 __attribute__((overloadable)) native_exp10(float4 v) { in native_exp10() argument
1338 return native_exp2(v * 3.321928095f); in native_exp10()
1341 extern float __attribute__((overloadable)) native_log2(float v) { in native_log2() argument
1343 GET_FLOAT_WORD(ibits, v); in native_log2()
1363 extern float2 __attribute__((overloadable)) native_log2(float2 v) { in native_log2() argument
1364 float2 v2 = {native_log2(v.x), native_log2(v.y)}; in native_log2()
1367 extern float3 __attribute__((overloadable)) native_log2(float3 v) { in native_log2() argument
1368 float3 v2 = {native_log2(v.x), native_log2(v.y), native_log2(v.z)}; in native_log2()
1371 extern float4 __attribute__((overloadable)) native_log2(float4 v) { in native_log2() argument
1372 float4 v2 = {native_log2(v.x), native_log2(v.y), native_log2(v.z), native_log2(v.w)}; in native_log2()
1376 extern float __attribute__((overloadable)) native_log(float v) { in native_log() argument
1377 return native_log2(v) * (1.f / 1.442695041f); in native_log()
1379 extern float2 __attribute__((overloadable)) native_log(float2 v) { in native_log() argument
1380 return native_log2(v) * (1.f / 1.442695041f); in native_log()
1382 extern float3 __attribute__((overloadable)) native_log(float3 v) { in native_log() argument
1383 return native_log2(v) * (1.f / 1.442695041f); in native_log()
1385 extern float4 __attribute__((overloadable)) native_log(float4 v) { in native_log() argument
1386 return native_log2(v) * (1.f / 1.442695041f); in native_log()
1389 extern float __attribute__((overloadable)) native_log10(float v) { in native_log10() argument
1390 return native_log2(v) * (1.f / 3.321928095f); in native_log10()
1392 extern float2 __attribute__((overloadable)) native_log10(float2 v) { in native_log10() argument
1393 return native_log2(v) * (1.f / 3.321928095f); in native_log10()
1395 extern float3 __attribute__((overloadable)) native_log10(float3 v) { in native_log10() argument
1396 return native_log2(v) * (1.f / 3.321928095f); in native_log10()
1398 extern float4 __attribute__((overloadable)) native_log10(float4 v) { in native_log10() argument
1399 return native_log2(v) * (1.f / 3.321928095f); in native_log10()
1403 extern float __attribute__((overloadable)) native_powr(float v, float y) { in native_powr() argument
1404 float v2 = native_log2(v); in native_powr()
1408 extern float2 __attribute__((overloadable)) native_powr(float2 v, float2 y) { in native_powr() argument
1409 float2 v2 = native_log2(v); in native_powr()
1413 extern float3 __attribute__((overloadable)) native_powr(float3 v, float3 y) { in native_powr() argument
1414 float3 v2 = native_log2(v); in native_powr()
1418 extern float4 __attribute__((overloadable)) native_powr(float4 v, float4 y) { in native_powr() argument
1419 float4 v2 = native_log2(v); in native_powr()
1581 float __attribute__((overloadable)) native_##fn(float v) { return fn(v);} \
1582 float2 __attribute__((overloadable)) native_##fn(float2 v) { return fn(v);} \
1583 float3 __attribute__((overloadable)) native_##fn(float3 v) { return fn(v);} \
1584 float4 __attribute__((overloadable)) native_##fn(float4 v) { return fn(v);}
1638 float __attribute__((overloadable)) native_normalize(float v) { return fast_normalize(v);} in THUNK_NATIVE_F()
1639 float2 __attribute__((overloadable)) native_normalize(float2 v) { return fast_normalize(v);} in native_normalize() argument
1640 float3 __attribute__((overloadable)) native_normalize(float3 v) { return fast_normalize(v);} in native_normalize() argument
1641 float4 __attribute__((overloadable)) native_normalize(float4 v) { return fast_normalize(v);} in native_normalize() argument
1648 float __attribute__((overloadable)) native_length(float v) { return fast_length(v);} in native_length() argument
1649 float __attribute__((overloadable)) native_length(float2 v) { return fast_length(v);} in native_length() argument
1650 float __attribute__((overloadable)) native_length(float3 v) { return fast_length(v);} in native_length() argument
1651 float __attribute__((overloadable)) native_length(float4 v) { return fast_length(v);} in native_length() argument
1658 float __attribute__((overloadable)) native_recip(float v) { return 1.f / v;} in native_recip() argument
1659 float2 __attribute__((overloadable)) native_recip(float2 v) { return ((float2)1.f) / v;} in native_recip() argument
1660 float3 __attribute__((overloadable)) native_recip(float3 v) { return ((float3)1.f) / v;} in native_recip() argument
1661 float4 __attribute__((overloadable)) native_recip(float4 v) { return ((float4)1.f) / v;} in native_recip() argument
1693 extern half2 __attribute__((overloadable)) fn(half2 v) { \
1694 return convert_half2(fn(convert_float2(v))); \
1696 extern half3 __attribute__((overloadable)) fn(half3 v) { \
1697 return convert_half3(fn(convert_float3(v))); \
1699 extern half4 __attribute__((overloadable)) fn(half4 v) { \
1700 return convert_half4(fn(convert_float4(v))); \
1769 extern half __attribute__((overloadable)) fn(half h1, int v) { \
1770 return (half) fn((float) h1, v); \
1790 extern half __attribute__((overloadable)) fn(half2 v) { \
1791 return fn(convert_float2(v)); \
1793 extern half __attribute__((overloadable)) fn(half3 v) { \
1794 return fn(convert_float3(v)); \
1796 extern half __attribute__((overloadable)) fn(half4 v) { \
1797 return fn(convert_float4(v)); \
1941 extern half __attribute__((overloadable)) fract(half v, half *iptr) { in fract() argument
1946 int i = (int) floor(v); in fract()
1951 return fmin(v - i, maxLessThanOne); in fract()
1956 extern half __attribute__((const, overloadable)) fract(half v) { in fract() argument
1958 return fract(v, &unused); in fract()
1961 extern half2 __attribute__((const, overloadable)) fract(half2 v) { in fract() argument
1963 return fract(v, &unused); in fract()
1966 extern half3 __attribute__((const, overloadable)) fract(half3 v) { in fract() argument
1968 return fract(v, &unused); in fract()
1971 extern half4 __attribute__((const, overloadable)) fract(half4 v) { in fract() argument
1973 return fract(v, &unused); in fract()
2018 extern int2 __attribute__((overloadable)) ilogb(half2 v) { in ilogb() argument
2020 ret.x = ilogb(v.x); in ilogb()
2021 ret.y = ilogb(v.y); in ilogb()
2024 extern int3 __attribute__((overloadable)) ilogb(half3 v) { in ilogb() argument
2026 ret.x = ilogb(v.x); in ilogb()
2027 ret.y = ilogb(v.y); in ilogb()
2028 ret.z = ilogb(v.z); in ilogb()
2031 extern int4 __attribute__((overloadable)) ilogb(half4 v) { in ilogb() argument
2033 ret.x = ilogb(v.x); in ilogb()
2034 ret.y = ilogb(v.y); in ilogb()
2035 ret.z = ilogb(v.z); in ilogb()
2036 ret.w = ilogb(v.w); in ilogb()
2041 extern half2 __attribute__((overloadable)) ldexp(half2 v, int exponent) { in ldexp() argument
2042 return convert_half2(ldexp(convert_float2(v), exponent)); in ldexp()
2044 extern half3 __attribute__((overloadable)) ldexp(half3 v, int exponent) { in ldexp() argument
2045 return convert_half3(ldexp(convert_float3(v), exponent)); in ldexp()
2047 extern half4 __attribute__((overloadable)) ldexp(half4 v, int exponent) { in ldexp() argument
2048 return convert_half4(ldexp(convert_float4(v), exponent)); in ldexp()
2057 extern half2 __attribute__((overloadable)) lgamma(half2 v, int2 *signp) { in lgamma() argument
2058 return convert_half2(lgamma(convert_float2(v), signp)); in lgamma()
2060 extern half3 __attribute__((overloadable)) lgamma(half3 v, int3 *signp) { in lgamma() argument
2061 return convert_half3(lgamma(convert_float3(v), signp)); in lgamma()
2063 extern half4 __attribute__((overloadable)) lgamma(half4 v, int4 *signp) { in lgamma() argument
2064 return convert_half4(lgamma(convert_float4(v), signp)); in lgamma()
2145 extern half2 __attribute__((overloadable)) sign(half2 v) { in sign() argument
2147 ret.x = sign(v.x); in sign()
2148 ret.y = sign(v.y); in sign()
2151 extern half3 __attribute__((overloadable)) sign(half3 v) { in sign() argument
2153 ret.x = sign(v.x); in sign()
2154 ret.y = sign(v.y); in sign()
2155 ret.z = sign(v.z); in sign()
2158 extern half4 __attribute__((overloadable)) sign(half4 v) { in sign() argument
2160 ret.x = sign(v.x); in sign()
2161 ret.y = sign(v.y); in sign()
2162 ret.z = sign(v.z); in sign()
2163 ret.w = sign(v.w); in sign()
2169 extern half __attribute__((overloadable)) sincos(half v, half *cosptr) { in sincos() argument
2170 *cosptr = cos(v); in sincos()
2171 return sin(v); in sincos()
2174 extern half2 __attribute__((overloadable)) sincos(half2 v, half2 *cosptr) { in sincos() argument
2175 *cosptr = cos(v); in sincos()
2176 return sin(v); in sincos()
2178 extern half3 __attribute__((overloadable)) sincos(half3 v, half3 *cosptr) { in sincos() argument
2179 *cosptr = cos(v); in sincos()
2180 return sin(v); in sincos()
2182 extern half4 __attribute__((overloadable)) sincos(half4 v, half4 *cosptr) { in sincos() argument
2183 *cosptr = cos(v); in sincos()
2184 return sin(v); in sincos()
2191 extern half __attribute__((overloadable)) step(half edge, half v) { in step() argument
2192 return (v < edge) ? 0.f : 1.f; in step()
2194 extern half2 __attribute__((overloadable)) step(half2 edge, half2 v) { in step() argument
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()
2200 extern half3 __attribute__((overloadable)) step(half3 edge, half3 v) { in step() argument
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()
2207 extern half4 __attribute__((overloadable)) step(half4 edge, half4 v) { in step() argument
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()
2215 extern half2 __attribute__((overloadable)) step(half2 edge, half v) { in step() argument
2217 r.x = (v < edge.x) ? 0.f : 1.f; in step()
2218 r.y = (v < edge.y) ? 0.f : 1.f; in step()
2221 extern half3 __attribute__((overloadable)) step(half3 edge, half v) { in step() argument
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()
2228 extern half4 __attribute__((overloadable)) step(half4 edge, half v) { in step() argument
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()
2236 extern half2 __attribute__((overloadable)) step(half edge, half2 v) { in step() argument
2238 r.x = (v.x < edge) ? 0.f : 1.f; in step()
2239 r.y = (v.y < edge) ? 0.f : 1.f; in step()
2242 extern half3 __attribute__((overloadable)) step(half edge, half3 v) { in step() argument
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()
2249 extern half4 __attribute__((overloadable)) step(half edge, half4 v) { in step() argument
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()
2307 extern half __attribute__((overloadable)) native_sincos(half v, half *cosptr) { in native_sincos() argument
2308 return sincos(v, cosptr); in native_sincos()
2310 extern half2 __attribute__((overloadable)) native_sincos(half2 v, half2 *cosptr) { in native_sincos() argument
2311 return sincos(v, cosptr); in native_sincos()
2313 extern half3 __attribute__((overloadable)) native_sincos(half3 v, half3 *cosptr) { in native_sincos() argument
2314 return sincos(v, cosptr); in native_sincos()
2316 extern half4 __attribute__((overloadable)) native_sincos(half4 v, half4 *cosptr) { in native_sincos() argument
2317 return sincos(v, cosptr); in native_sincos()
2352 extern "C" int __aeabi_idiv0(int v) { return v; } in __aeabi_idiv0() argument