Lines Matching refs:F32

458     struct F32 {  struct
494 F32a(F32 v) : SkDEBUGCODE(builder(v.builder),) id(v.id) {} in F32a()
513 F32 r,g,b,a;
519 F32 h,s,l,a;
531 F32 x,y;
621 void assert_true(I32 cond, F32 debug) { assert_true(cond, bit_cast(debug)); } in assert_true()
628 void storeF (Arg ptr, F32 val) { store32(ptr, bit_cast(val)); } in storeF()
639 F32 loadF (Arg ptr) { return bit_cast(load32(ptr)); } in loadF()
647 F32 uniformF (Arg ptr, int offset) { return this->bit_cast(this->uniform32(ptr,offset)); } in uniformF()
656 F32 gatherF (Arg ptr, int offset, I32 index) { in gatherF()
664 F32 uniformF (Uniform u) { return this->uniformF (u.ptr, u.offset); } in uniformF()
668 F32 gatherF (Uniform u, I32 index) { return this->gatherF (u.ptr, u.offset, index); } in gatherF()
673 F32 splat(float f) { in splat()
685 F32 add(F32, F32); F32 add(F32a x, F32a y) { return add(_(x), _(y)); } in add()
686 F32 sub(F32, F32); F32 sub(F32a x, F32a y) { return sub(_(x), _(y)); } in sub()
687 F32 mul(F32, F32); F32 mul(F32a x, F32a y) { return mul(_(x), _(y)); } in mul()
688 F32 div(F32, F32); F32 div(F32a x, F32 y) { return div(_(x), y ); } in div()
689 F32 min(F32, F32); F32 min(F32a x, F32a y) { return min(_(x), _(y)); } in min()
690 F32 max(F32, F32); F32 max(F32a x, F32a y) { return max(_(x), _(y)); } in max()
692 F32 mad(F32 x, F32 y, F32 z) { return add(mul(x,y), z); } in mad()
693 F32 mad(F32a x, F32a y, F32a z) { return mad(_(x), _(y), _(z)); } in mad()
695 F32 sqrt(F32);
696 F32 approx_log2(F32);
697 F32 approx_pow2(F32);
698 F32 approx_log (F32 x) { return mul(0.69314718f, approx_log2(x)); } in approx_log()
699 F32 approx_exp (F32 x) { return approx_pow2(mul(x, 1.4426950408889634074f)); } in approx_exp()
701 F32 approx_powf(F32 base, F32 exp);
702 F32 approx_powf(F32a base, F32a exp) { return approx_powf(_(base), _(exp)); } in approx_powf()
704 F32 approx_sin(F32 radians);
705 F32 approx_cos(F32 radians) { return approx_sin(add(radians, SK_ScalarPI/2)); } in approx_cos()
706 F32 approx_tan(F32 radians);
708 F32 approx_asin(F32 x);
709 F32 approx_acos(F32 x) { return sub(SK_ScalarPI/2, approx_asin(x)); } in approx_acos()
710 F32 approx_atan(F32 x);
711 F32 approx_atan2(F32 y, F32 x);
713 F32 lerp(F32 lo, F32 hi, F32 t);
714 F32 lerp(F32a lo, F32a hi, F32a t) { return lerp(_(lo), _(hi), _(t)); } in lerp()
716 F32 clamp(F32 x, F32 lo, F32 hi) { return max(lo, min(x, hi)); } in clamp()
717 F32 clamp(F32a x, F32a lo, F32a hi) { return clamp(_(x), _(lo), _(hi)); } in clamp()
718 F32 clamp01(F32 x) { return clamp(x, 0.0f, 1.0f); } in clamp01()
720 F32 abs(F32 x) { return bit_cast(bit_and(bit_cast(x), 0x7fff'ffff)); } in abs()
1064 static inline F32 operator+(F32 x, F32a y) { return x->add(x,y); }
1065 static inline F32 operator+(float x, F32 y) { return y->add(x,y); }
1067 static inline F32 operator-(F32 x, F32a y) { return x->sub(x,y); }
1068 static inline F32 operator-(float x, F32 y) { return y->sub(x,y); }
1070 static inline F32 operator*(F32 x, F32a y) { return x->mul(x,y); }
1071 static inline F32 operator*(float x, F32 y) { return y->mul(x,y); }
1073 static inline F32 operator/(F32 x, F32 y) { return x->div(x,y); }
1074 static inline F32 operator/(float x, F32 y) { return y->div(x,y); }
1076 static inline F32 min(F32 x, F32a y) { return x->min(x,y); } in min()
1077 static inline F32 min(float x, F32 y) { return y->min(x,y); } in min()
1079 static inline F32 max(F32 x, F32a y) { return x->max(x,y); } in max()
1080 static inline F32 max(float x, F32 y) { return y->max(x,y); } in max()
1082 static inline I32 operator==(F32 x, F32 y) { return x->eq(x,y); }
1083 static inline I32 operator==(F32 x, float y) { return x->eq(x,y); }
1084 static inline I32 operator==(float x, F32 y) { return y->eq(x,y); }
1086 static inline I32 operator!=(F32 x, F32 y) { return x->neq(x,y); }
1087 static inline I32 operator!=(F32 x, float y) { return x->neq(x,y); }
1088 static inline I32 operator!=(float x, F32 y) { return y->neq(x,y); }
1090 static inline I32 operator< (F32 x, F32a y) { return x->lt(x,y); }
1091 static inline I32 operator< (float x, F32 y) { return y->lt(x,y); }
1093 static inline I32 operator<=(F32 x, F32a y) { return x->lte(x,y); }
1094 static inline I32 operator<=(float x, F32 y) { return y->lte(x,y); }
1096 static inline I32 operator> (F32 x, F32a y) { return x->gt(x,y); }
1097 static inline I32 operator> (float x, F32 y) { return y->gt(x,y); }
1099 static inline I32 operator>=(F32 x, F32a y) { return x->gte(x,y); }
1100 static inline I32 operator>=(float x, F32 y) { return y->gte(x,y); }
1110 static inline F32& operator+=(F32& x, F32a y) { return (x = x + y); }
1111 static inline F32& operator-=(F32& x, F32a y) { return (x = x - y); }
1112 static inline F32& operator*=(F32& x, F32a y) { return (x = x * y); }
1115 static inline void assert_true(I32 cond, F32 debug) { cond->assert_true(cond,debug); } in assert_true()
1121 static inline void storeF (Arg ptr, F32 val) { val->storeF (ptr, val); } in storeF()
1128 static inline F32 gatherF (Arg ptr, int off, I32 ix) { return ix->gatherF (ptr, off, ix); } in gatherF()
1133 static inline F32 gatherF (Uniform u, I32 ix) { return ix->gatherF (u, ix); } in gatherF()
1135 static inline F32 sqrt(F32 x) { return x-> sqrt(x); } in sqrt()
1136 static inline F32 approx_log2(F32 x) { return x->approx_log2(x); } in approx_log2()
1137 static inline F32 approx_pow2(F32 x) { return x->approx_pow2(x); } in approx_pow2()
1138 static inline F32 approx_log (F32 x) { return x->approx_log (x); } in approx_log()
1139 static inline F32 approx_exp (F32 x) { return x->approx_exp (x); } in approx_exp()
1141 static inline F32 approx_powf(F32 base, F32a exp) { return base->approx_powf(base, exp); } in approx_powf()
1142 static inline F32 approx_powf(float base, F32 exp) { return exp->approx_powf(base, exp); } in approx_powf()
1144 static inline F32 approx_sin(F32 radians) { return radians->approx_sin(radians); } in approx_sin()
1145 static inline F32 approx_cos(F32 radians) { return radians->approx_cos(radians); } in approx_cos()
1146 static inline F32 approx_tan(F32 radians) { return radians->approx_tan(radians); } in approx_tan()
1148 static inline F32 approx_asin(F32 x) { return x->approx_asin(x); } in approx_asin()
1149 static inline F32 approx_acos(F32 x) { return x->approx_acos(x); } in approx_acos()
1150 static inline F32 approx_atan(F32 x) { return x->approx_atan(x); } in approx_atan()
1151 static inline F32 approx_atan2(F32 y, F32 x) { return x->approx_atan2(y, x); } in approx_atan2()
1153 static inline F32 clamp01(F32 x) { return x-> clamp01(x); } in clamp01()
1154 static inline F32 abs(F32 x) { return x-> abs(x); } in abs()
1155 static inline F32 ceil(F32 x) { return x-> ceil(x); } in ceil()
1156 static inline F32 fract(F32 x) { return x-> fract(x); } in fract()
1157 static inline F32 floor(F32 x) { return x-> floor(x); } in floor()
1158 static inline I32 is_NaN(F32 x) { return x-> is_NaN(x); } in is_NaN()
1159 static inline I32 is_finite(F32 x) { return x->is_finite(x); } in is_finite()
1161 static inline I32 trunc(F32 x) { return x-> trunc(x); } in trunc()
1162 static inline I32 round(F32 x) { return x-> round(x); } in round()
1163 static inline I32 bit_cast(F32 x) { return x-> bit_cast(x); } in bit_cast()
1164 static inline F32 bit_cast(I32 x) { return x-> bit_cast(x); } in bit_cast()
1165 static inline F32 to_F32(I32 x) { return x-> to_F32(x); } in to_F32()
1166 static inline I32 to_half(F32 x) { return x-> to_half(x); } in to_half()
1167 static inline F32 from_half(I32 x) { return x->from_half(x); } in from_half()
1169 static inline F32 to_F32(Q14 x) { return x->to_F32(x); } in to_F32()
1171 static inline Q14 to_Q14(F32 x) { return x->to_Q14(x); } in to_Q14()
1174 static inline F32 lerp(F32 lo, F32a hi, F32a t) { return lo->lerp(lo,hi,t); } in lerp()
1175 static inline F32 lerp(float lo, F32 hi, F32a t) { return hi->lerp(lo,hi,t); } in lerp()
1176 static inline F32 lerp(float lo, float hi, F32 t) { return t->lerp(lo,hi,t); } in lerp()
1178 static inline F32 clamp(F32 x, F32a lo, F32a hi) { return x->clamp(x,lo,hi); } in clamp()
1179 static inline F32 clamp(float x, F32 lo, F32a hi) { return lo->clamp(x,lo,hi); } in clamp()
1180 static inline F32 clamp(float x, float lo, F32 hi) { return hi->clamp(x,lo,hi); } in clamp()
1182 static inline F32 norm(F32 x, F32a y) { return x->norm(x,y); } in norm()
1183 static inline F32 norm(float x, F32 y) { return y->norm(x,y); } in norm()
1226 static inline F32 select(I32 cond, F32a t, F32a f) { return cond->select(cond,t,f); } in select()
1238 static inline F32 operator-(F32 x) { return 0.0f - x; }
1240 static inline F32 from_unorm(int bits, I32 x) { return x->from_unorm(bits,x); } in from_unorm()
1241 static inline I32 to_unorm(int bits, F32 x) { return x-> to_unorm(bits,x); } in to_unorm()
1251 static inline void premul(F32* r, F32* g, F32* b, F32 a) { a-> premul(r,g,b,a); } in premul()
1252 static inline void unpremul(F32* r, F32* g, F32* b, F32 a) { a->unpremul(r,g,b,a); } in unpremul()
1257 static inline Color lerp(Color lo, Color hi, F32 t) { return t->lerp(lo,hi,t); } in lerp()
1268 static inline F32 poly(F32 x, F32a a, F32a b, Rest... rest) { in poly()