Lines Matching refs:SI

1070 #define SI static inline
1072 SI I32 operator+(I32 x, I32 y) { return x->add(x,y); }
1073 SI I32 operator+(I32 x, int y) { return x->add(x,y); }
1074 SI I32 operator+(int x, I32 y) { return y->add(x,y); }
1076 SI I32 operator-(I32 x, I32 y) { return x->sub(x,y); }
1077 SI I32 operator-(I32 x, int y) { return x->sub(x,y); }
1078 SI I32 operator-(int x, I32 y) { return y->sub(x,y); }
1080 SI I32 operator*(I32 x, I32 y) { return x->mul(x,y); }
1081 SI I32 operator*(I32 x, int y) { return x->mul(x,y); }
1082 SI I32 operator*(int x, I32 y) { return y->mul(x,y); }
1084 SI I32 min(I32 x, I32 y) { return x->min(x,y); }
1085 SI I32 min(I32 x, int y) { return x->min(x,y); }
1086 SI I32 min(int x, I32 y) { return y->min(x,y); }
1088 SI I32 max(I32 x, I32 y) { return x->max(x,y); }
1089 SI I32 max(I32 x, int y) { return x->max(x,y); }
1090 SI I32 max(int x, I32 y) { return y->max(x,y); }
1092 SI I32 operator==(I32 x, I32 y) { return x->eq(x,y); }
1093 SI I32 operator==(I32 x, int y) { return x->eq(x,y); }
1094 SI I32 operator==(int x, I32 y) { return y->eq(x,y); }
1096 SI I32 operator!=(I32 x, I32 y) { return x->neq(x,y); }
1097 SI I32 operator!=(I32 x, int y) { return x->neq(x,y); }
1098 SI I32 operator!=(int x, I32 y) { return y->neq(x,y); }
1100 SI I32 operator< (I32 x, I32 y) { return x->lt(x,y); }
1101 SI I32 operator< (I32 x, int y) { return x->lt(x,y); }
1102 SI I32 operator< (int x, I32 y) { return y->lt(x,y); }
1104 SI I32 operator<=(I32 x, I32 y) { return x->lte(x,y); }
1105 SI I32 operator<=(I32 x, int y) { return x->lte(x,y); }
1106 SI I32 operator<=(int x, I32 y) { return y->lte(x,y); }
1108 SI I32 operator> (I32 x, I32 y) { return x->gt(x,y); }
1109 SI I32 operator> (I32 x, int y) { return x->gt(x,y); }
1110 SI I32 operator> (int x, I32 y) { return y->gt(x,y); }
1112 SI I32 operator>=(I32 x, I32 y) { return x->gte(x,y); }
1113 SI I32 operator>=(I32 x, int y) { return x->gte(x,y); }
1114 SI I32 operator>=(int x, I32 y) { return y->gte(x,y); }
1117 SI F32 operator+(F32 x, F32 y) { return x->add(x,y); }
1118 SI F32 operator+(F32 x, float y) { return x->add(x,y); }
1119 SI F32 operator+(float x, F32 y) { return y->add(x,y); }
1121 SI F32 operator-(F32 x, F32 y) { return x->sub(x,y); }
1122 SI F32 operator-(F32 x, float y) { return x->sub(x,y); }
1123 SI F32 operator-(float x, F32 y) { return y->sub(x,y); }
1125 SI F32 operator*(F32 x, F32 y) { return x->mul(x,y); }
1126 SI F32 operator*(F32 x, float y) { return x->mul(x,y); }
1127 SI F32 operator*(float x, F32 y) { return y->mul(x,y); }
1129 SI F32 fast_mul(F32 x, F32 y) { return x->fast_mul(x,y); }
1130 SI F32 fast_mul(F32 x, float y) { return x->fast_mul(x,y); }
1131 SI F32 fast_mul(float x, F32 y) { return y->fast_mul(x,y); }
1133 SI F32 operator/(F32 x, F32 y) { return x->div(x,y); }
1134 SI F32 operator/(float x, F32 y) { return y->div(x,y); }
1136 SI F32 min(F32 x, F32 y) { return x->min(x,y); }
1137 SI F32 min(F32 x, float y) { return x->min(x,y); }
1138 SI F32 min(float x, F32 y) { return y->min(x,y); }
1140 SI F32 max(F32 x, F32 y) { return x->max(x,y); }
1141 SI F32 max(F32 x, float y) { return x->max(x,y); }
1142 SI F32 max(float x, F32 y) { return y->max(x,y); }
1144 SI I32 operator==(F32 x, F32 y) { return x->eq(x,y); }
1145 SI I32 operator==(F32 x, float y) { return x->eq(x,y); }
1146 SI I32 operator==(float x, F32 y) { return y->eq(x,y); }
1148 SI I32 operator!=(F32 x, F32 y) { return x->neq(x,y); }
1149 SI I32 operator!=(F32 x, float y) { return x->neq(x,y); }
1150 SI I32 operator!=(float x, F32 y) { return y->neq(x,y); }
1152 SI I32 operator< (F32 x, F32 y) { return x->lt(x,y); }
1153 SI I32 operator< (F32 x, float y) { return x->lt(x,y); }
1154 SI I32 operator< (float x, F32 y) { return y->lt(x,y); }
1156 SI I32 operator<=(F32 x, F32 y) { return x->lte(x,y); }
1157 SI I32 operator<=(F32 x, float y) { return x->lte(x,y); }
1158 SI I32 operator<=(float x, F32 y) { return y->lte(x,y); }
1160 SI I32 operator> (F32 x, F32 y) { return x->gt(x,y); }
1161 SI I32 operator> (F32 x, float y) { return x->gt(x,y); }
1162 SI I32 operator> (float x, F32 y) { return y->gt(x,y); }
1164 SI I32 operator>=(F32 x, F32 y) { return x->gte(x,y); }
1165 SI I32 operator>=(F32 x, float y) { return x->gte(x,y); }
1166 SI I32 operator>=(float x, F32 y) { return y->gte(x,y); }
1168 SI I32& operator+=(I32& x, I32 y) { return (x = x + y); }
1169 SI I32& operator+=(I32& x, int y) { return (x = x + y); }
1171 SI I32& operator-=(I32& x, I32 y) { return (x = x - y); }
1172 SI I32& operator-=(I32& x, int y) { return (x = x - y); }
1174 SI I32& operator*=(I32& x, I32 y) { return (x = x * y); }
1175 SI I32& operator*=(I32& x, int y) { return (x = x * y); }
1177 SI F32& operator+=(F32& x, F32 y) { return (x = x + y); }
1178 SI F32& operator+=(F32& x, float y) { return (x = x + y); }
1180 SI F32& operator-=(F32& x, F32 y) { return (x = x - y); }
1181 SI F32& operator-=(F32& x, float y) { return (x = x - y); }
1183 SI F32& operator*=(F32& x, F32 y) { return (x = x * y); }
1184 SI F32& operator*=(F32& x, float y) { return (x = x * y); }
1186 SI F32& operator/=(F32& x, F32 y) { return (x = x / y); }
1188 SI void assert_true(I32 cond, I32 debug) { cond->assert_true(cond,debug); }
1189 SI void assert_true(I32 cond, F32 debug) { cond->assert_true(cond,debug); }
1190 SI void assert_true(I32 cond) { cond->assert_true(cond); }
1192 SI void store8 (Ptr ptr, I32 val) { val->store8 (ptr, val); }
1193 SI void store16 (Ptr ptr, I32 val) { val->store16 (ptr, val); }
1194 SI void store32 (Ptr ptr, I32 val) { val->store32 (ptr, val); }
1195 SI void storeF (Ptr ptr, F32 val) { val->storeF (ptr, val); }
1196 SI void store64 (Ptr ptr, I32 lo, I32 hi) { lo ->store64 (ptr, lo,hi); }
1197 SI void store128(Ptr ptr, I32 x, I32 y, I32 z, I32 w) { x ->store128(ptr, x,y,z,w); }
1199 SI I32 gather8 (UPtr ptr, int off, I32 ix) { return ix->gather8 (ptr, off, ix); }
1200 SI I32 gather16(UPtr ptr, int off, I32 ix) { return ix->gather16(ptr, off, ix); }
1201 SI I32 gather32(UPtr ptr, int off, I32 ix) { return ix->gather32(ptr, off, ix); }
1202 SI F32 gatherF (UPtr ptr, int off, I32 ix) { return ix->gatherF (ptr, off, ix); }
1204 SI I32 gather8 (Uniform u, I32 ix) { return ix->gather8 (u, ix); }
1205 SI I32 gather16(Uniform u, I32 ix) { return ix->gather16(u, ix); }
1206 SI I32 gather32(Uniform u, I32 ix) { return ix->gather32(u, ix); }
1207 SI F32 gatherF (Uniform u, I32 ix) { return ix->gatherF (u, ix); }
1209 SI F32 sqrt(F32 x) { return x-> sqrt(x); }
1210 SI F32 approx_log2(F32 x) { return x->approx_log2(x); }
1211 SI F32 approx_pow2(F32 x) { return x->approx_pow2(x); }
1212 SI F32 approx_log (F32 x) { return x->approx_log (x); }
1213 SI F32 approx_exp (F32 x) { return x->approx_exp (x); }
1215 SI F32 approx_powf(F32 base, F32 exp) { return base->approx_powf(base, exp); }
1216 SI F32 approx_powf(F32 base, float exp) { return base->approx_powf(base, exp); }
1217 SI F32 approx_powf(float base, F32 exp) { return exp->approx_powf(base, exp); }
1219 SI F32 approx_sin(F32 radians) { return radians->approx_sin(radians); }
1220 SI F32 approx_cos(F32 radians) { return radians->approx_cos(radians); }
1221 SI F32 approx_tan(F32 radians) { return radians->approx_tan(radians); }
1223 SI F32 approx_asin(F32 x) { return x->approx_asin(x); }
1224 SI F32 approx_acos(F32 x) { return x->approx_acos(x); }
1225 SI F32 approx_atan(F32 x) { return x->approx_atan(x); }
1226 SI F32 approx_atan2(F32 y, F32 x) { return x->approx_atan2(y, x); }
1228 SI F32 clamp01(F32 x) { return x-> clamp01(x); }
1229 SI F32 abs(F32 x) { return x-> abs(x); }
1230 SI F32 ceil(F32 x) { return x-> ceil(x); }
1231 SI F32 fract(F32 x) { return x-> fract(x); }
1232 SI F32 floor(F32 x) { return x-> floor(x); }
1233 SI I32 is_NaN(F32 x) { return x-> is_NaN(x); }
1234 SI I32 is_finite(F32 x) { return x->is_finite(x); }
1236 SI I32 trunc(F32 x) { return x-> trunc(x); }
1237 SI I32 round(F32 x) { return x-> round(x); }
1238 SI I32 pun_to_I32(F32 x) { return x-> pun_to_I32(x); }
1239 SI F32 pun_to_F32(I32 x) { return x-> pun_to_F32(x); }
1240 SI F32 to_F32(I32 x) { return x-> to_F32(x); }
1241 SI I32 to_fp16(F32 x) { return x-> to_fp16(x); }
1242 SI F32 from_fp16(I32 x) { return x-> from_fp16(x); }
1244 SI F32 lerp(F32 lo, F32 hi, F32 t) { return lo->lerp(lo,hi,t); }
1245 SI F32 lerp(F32 lo, F32 hi, float t) { return lo->lerp(lo,hi,t); }
1246 SI F32 lerp(F32 lo, float hi, F32 t) { return lo->lerp(lo,hi,t); }
1247 SI F32 lerp(F32 lo, float hi, float t) { return lo->lerp(lo,hi,t); }
1248 SI F32 lerp(float lo, F32 hi, F32 t) { return hi->lerp(lo,hi,t); }
1249 SI F32 lerp(float lo, F32 hi, float t) { return hi->lerp(lo,hi,t); }
1250 SI F32 lerp(float lo, float hi, F32 t) { return t->lerp(lo,hi,t); }
1252 SI F32 clamp(F32 x, F32 lo, F32 hi) { return x->clamp(x,lo,hi); }
1253 SI F32 clamp(F32 x, F32 lo, float hi) { return x->clamp(x,lo,hi); }
1254 SI F32 clamp(F32 x, float lo, F32 hi) { return x->clamp(x,lo,hi); }
1255 SI F32 clamp(F32 x, float lo, float hi) { return x->clamp(x,lo,hi); }
1256 SI F32 clamp(float x, F32 lo, F32 hi) { return lo->clamp(x,lo,hi); }
1257 SI F32 clamp(float x, F32 lo, float hi) { return lo->clamp(x,lo,hi); }
1258 SI F32 clamp(float x, float lo, F32 hi) { return hi->clamp(x,lo,hi); }
1260 SI I32 operator<<(I32 x, int bits) { return x->shl(x, bits); }
1261 SI I32 shl(I32 x, int bits) { return x->shl(x, bits); }
1262 SI I32 shr(I32 x, int bits) { return x->shr(x, bits); }
1263 SI I32 sra(I32 x, int bits) { return x->sra(x, bits); }
1265 SI I32 operator&(I32 x, I32 y) { return x->bit_and(x,y); }
1266 SI I32 operator&(I32 x, int y) { return x->bit_and(x,y); }
1267 SI I32 operator&(int x, I32 y) { return y->bit_and(x,y); }
1269 SI I32 operator|(I32 x, I32 y) { return x->bit_or (x,y); }
1270 SI I32 operator|(I32 x, int y) { return x->bit_or (x,y); }
1271 SI I32 operator|(int x, I32 y) { return y->bit_or (x,y); }
1273 SI I32 operator^(I32 x, I32 y) { return x->bit_xor(x,y); }
1274 SI I32 operator^(I32 x, int y) { return x->bit_xor(x,y); }
1275 SI I32 operator^(int x, I32 y) { return y->bit_xor(x,y); }
1277 SI I32& operator&=(I32& x, I32 y) { return (x = x & y); }
1278 SI I32& operator&=(I32& x, int y) { return (x = x & y); }
1279 SI I32& operator|=(I32& x, I32 y) { return (x = x | y); }
1280 SI I32& operator|=(I32& x, int y) { return (x = x | y); }
1281 SI I32& operator^=(I32& x, I32 y) { return (x = x ^ y); }
1282 SI I32& operator^=(I32& x, int y) { return (x = x ^ y); }
1284 SI I32 bit_clear(I32 x, I32 y) { return x->bit_clear(x,y); }
1285 SI I32 bit_clear(I32 x, int y) { return x->bit_clear(x,y); }
1286 SI I32 bit_clear(int x, I32 y) { return y->bit_clear(x,y); }
1288 SI I32 select(I32 c, I32 t, I32 f) { return c->select(c, t , f ); }
1289 SI I32 select(I32 c, I32 t, int f) { return c->select(c, t , c->splat(f)); }
1290 SI I32 select(I32 c, int t, I32 f) { return c->select(c, c->splat(t), f ); }
1291 SI I32 select(I32 c, int t, int f) { return c->select(c, c->splat(t), c->splat(f)); }
1293 SI F32 select(I32 c, F32 t, F32 f) { return c->select(c, t , f ); }
1294 SI F32 select(I32 c, F32 t, float f) { return c->select(c, t , c->splat(f)); }
1295 SI F32 select(I32 c, float t, F32 f) { return c->select(c, c->splat(t), f ); }
1296 SI F32 select(I32 c, float t, float f) { return c->select(c, c->splat(t), c->splat(f)); }
1298 SI I32 extract(I32 x, int bits, I32 z) { return x->extract(x,bits,z); }
1299 SI I32 extract(I32 x, int bits, int z) { return x->extract(x,bits,z); }
1300 SI I32 extract(int x, int bits, I32 z) { return z->extract(x,bits,z); }
1302 SI I32 pack(I32 x, I32 y, int bits) { return x->pack (x,y,bits); }
1303 SI I32 pack(I32 x, int y, int bits) { return x->pack (x,y,bits); }
1304 SI I32 pack(int x, I32 y, int bits) { return y->pack (x,y,bits); }
1306 SI I32 operator~(I32 x) { return ~0 ^ x; }
1307 SI I32 operator-(I32 x) { return 0 - x; }
1308 SI F32 operator-(F32 x) { return 0.0f - x; }
1310 SI F32 from_unorm(int bits, I32 x) { return x->from_unorm(bits,x); }
1311 SI I32 to_unorm(int bits, F32 x) { return x-> to_unorm(bits,x); }
1313 SI void store(PixelFormat f, Ptr p, Color c) { return c->store(f,p,c); }
1315 SI Color gather(PixelFormat f, UPtr p, int off, I32 ix) { return ix->gather(f,p,off,ix); }
1316 SI Color gather(PixelFormat f, Uniform u , I32 ix) { return ix->gather(f,u,ix); }
1318 SI void premul(F32* r, F32* g, F32* b, F32 a) { a-> premul(r,g,b,a); }
1319 SI void unpremul(F32* r, F32* g, F32* b, F32 a) { a->unpremul(r,g,b,a); }
1321 SI Color premul(Color c) { return c-> premul(c); }
1322 SI Color unpremul(Color c) { return c->unpremul(c); }
1324 SI Color lerp(Color lo, Color hi, F32 t) { return t->lerp(lo,hi,t); }
1326 SI Color blend(SkBlendMode m, Color s, Color d) { return s->blend(m,s,d); }
1328 SI Color clamp01(Color c) { return c->clamp01(c); }
1330 SI HSLA to_hsla(Color c) { return c->to_hsla(c); }
1331 SI Color to_rgba(HSLA c) { return c->to_rgba(c); }
1335 SI F32 poly(F32 x, F32_or_float a, float b, Rest... rest) {
1342 #undef SI