u16 40 apps/hexagon_matmul/pipeline.cpp u32(u16(A(4*rk + 0, y))*u16(B_swizzled(x, rk, 0))) + u16 41 apps/hexagon_matmul/pipeline.cpp u32(u16(A(4*rk + 1, y))*u16(B_swizzled(x, rk, 1))) + u16 42 apps/hexagon_matmul/pipeline.cpp u32(u16(A(4*rk + 2, y))*u16(B_swizzled(x, rk, 2))) + u16 43 apps/hexagon_matmul/pipeline.cpp u32(u16(A(4*rk + 3, y))*u16(B_swizzled(x, rk, 3))); u16 177 src/CodeGen_ARM.cpp casts.push_back(Pattern("vqshiftu.v8i8", "uqshl.v8i8", 8, u8_sat(u16(wild_u8x8)*wild_u16x8), Pattern::LeftShift)); u16 188 src/CodeGen_ARM.cpp casts.push_back(Pattern("vqshiftu.v16i8", "uqshl.v16i8", 16, u8_sat(u16(wild_u8x_)*wild_u16x_), Pattern::LeftShift)); u16 243 src/CodeGen_Hexagon.cpp Type u16 = UInt(16); u16 251 src/CodeGen_Hexagon.cpp Type u16v1 = u16.with_lanes(native_vector_bits() / 16); u16 431 src/CodeGen_Hexagon.cpp { IPICK(is_128B, Intrinsic::hexagon_V6_vmpyuh), u32v2, "mpy.vuh.uh", {u16v1, u16}, HvxIntrinsic::BroadcastScalarsToWords }, u16 436 src/CodeGen_Hexagon.cpp { IPICK(is_128B, Intrinsic::hexagon_V6_vmpyuh_acc), u32v2, "add_mpy.vuw.vuh.uh", {u32v2, u16v1, u16}, HvxIntrinsic::BroadcastScalarsToWords }, u16 513 src/CodeGen_Hexagon.cpp { IPICK(is_128B, Intrinsic::hexagon_V6_vlsrh), u16v1, "shr.vuh.uh", {u16v1, u16} }, u16 518 src/CodeGen_Hexagon.cpp { IPICK(is_128B, Intrinsic::hexagon_V6_vaslh), u16v1, "shl.vuh.uh", {u16v1, u16} }, u16 548 src/CodeGen_Hexagon.cpp { IPICK(is_128B, Intrinsic::hexagon_V6_lvsplath), u16v1, "splat_v62.h", {u16} }, // v62 u16 76 src/CodeGen_PowerPC.cpp u16(max(wild_i32x_ - wild_i32x_, 0))}, u16 92 src/CodeGen_PowerPC.cpp u16(((wild_u32x_ + wild_u32x_) + 1) / 2)}, u16 237 src/CodeGen_X86.cpp u16(max(wild_i32x_ - wild_i32x_, 0))}, u16 243 src/CodeGen_X86.cpp u16((wild_u32x_ * wild_u32x_) / 65536)}, u16 248 src/CodeGen_X86.cpp u16((wild_u32x_ * wild_u32x_) / 65536)}, u16 252 src/CodeGen_X86.cpp u16(((wild_u32x_ + wild_u32x_) + 1) / 2)}, u16 325 src/CodeGen_X86.cpp p = u16(u32(a) * u32(b) / 65536); u16 50 src/ConciseCasts.h inline Expr u16(Expr e) { u16 725 src/HexagonOptimize.cpp { "halide.hexagon.avg.vuh.vuh", u16((wild_u32x + wild_u32x)/2), Pattern::NarrowOps }, u16 730 src/HexagonOptimize.cpp { "halide.hexagon.avg_rnd.vuh.vuh", u16((wild_u32x + wild_u32x + 1)/2), Pattern::NarrowOps }, u16 799 src/HexagonOptimize.cpp { "halide.hexagon.packhi.vw", u16(wild_u32x/65536) }, u16 800 src/HexagonOptimize.cpp { "halide.hexagon.packhi.vw", u16(wild_i32x/65536) }, u16 813 src/HexagonOptimize.cpp { "halide.hexagon.pack.vw", u16(wild_u32x) }, u16 814 src/HexagonOptimize.cpp { "halide.hexagon.pack.vw", u16(wild_i32x) }, u16 819 src/HexagonOptimize.cpp { "halide.hexagon.zxt.vub", u16(wild_u8x), Pattern::InterleaveResult }, u16 823 src/HexagonOptimize.cpp { "halide.hexagon.sxt.vb", u16(wild_i8x), Pattern::InterleaveResult }, u16 842 src/HexagonOptimize.cpp { u8(wild_u32x), u8(u16(wild_u32x)) }, u16 844 src/HexagonOptimize.cpp { i8(wild_u32x), i8(u16(wild_u32x)) }, u16 848 src/HexagonOptimize.cpp { u32(wild_u8x), u32(u16(wild_u8x)) }, u16 850 src/HexagonOptimize.cpp { i32(wild_u8x), i32(u16(wild_u8x)) }, u16 1176 src/runtime/HalideRuntime.h uint16_t u16; u16 248 test/correctness/saturating_casts.cpp test_concise<source_t, uint16_t>(u16, false); u16 313 test/correctness/simd_op_check.cpp check("paddusb", 8*w, u8(min(u16(u8_1) + u16(u8_2), max_u8))); u16 318 test/correctness/simd_op_check.cpp check("paddusw", 4*w, u16(min(u32(u16_1) + u32(u16_2), max_u16))); u16 319 test/correctness/simd_op_check.cpp check("psubusw", 4*w, u16(max(i32(u16_1) - i32(u16_2), 0))); u16 337 test/correctness/simd_op_check.cpp check("pcmp*w", 4*w, select(u16_1 == u16_2, u16(1), u16(2))); u16 338 test/correctness/simd_op_check.cpp check("pcmp*w", 4*w, select(u16_1 > u16_2, u16(1), u16(2))); u16 362 test/correctness/simd_op_check.cpp check("pavgb", 8*w, u8((u16(u8_1) + u16(u8_2) + 1)/2)); u16 363 test/correctness/simd_op_check.cpp check("pavgb", 8*w, u8((u16(u8_1) + u16(u8_2) + 1)>>1)); u16 364 test/correctness/simd_op_check.cpp check("pavgw", 4*w, u16((u32(u16_1) + u32(u16_2) + 1)/2)); u16 365 test/correctness/simd_op_check.cpp check("pavgw", 4*w, u16((u32(u16_1) + u32(u16_2) + 1)>>1)); u16 370 test/correctness/simd_op_check.cpp check("pmulhuw", 4*w, u16((u32(u16_1) * u32(u16_2))/(256*256))); u16 371 test/correctness/simd_op_check.cpp check("pmulhuw", 4*w, u16((u32(u16_1) * u32(u16_2))>>16)); u16 569 test/correctness/simd_op_check.cpp check("vpaddusb", 32, u8(min(u16(u8_1) + u16(u8_2), max_u8))); u16 575 test/correctness/simd_op_check.cpp check("vpaddusw", 16, u16(min(u32(u16_1) + u32(u16_2), max_u16))); u16 576 test/correctness/simd_op_check.cpp check("vpsubusw", 16, u16(max(i32(u16_1) - i32(u16_2), 0))); u16 585 test/correctness/simd_op_check.cpp check("vpcmp*w" YMM, 16, select(u16_1 == u16_2, u16(1), u16(2))); u16 586 test/correctness/simd_op_check.cpp check("vpcmp*w" YMM, 16, select(u16_1 > u16_2, u16(1), u16(2))); u16 590 test/correctness/simd_op_check.cpp check("vpavgb", 32, u8((u16(u8_1) + u16(u8_2) + 1)/2)); u16 591 test/correctness/simd_op_check.cpp check("vpavgw", 16, u16((u32(u16_1) + u32(u16_2) + 1)/2)); u16 596 test/correctness/simd_op_check.cpp check("vpmulhuw" YMM, 16, u16((u32(u16_1) * u32(u16_2))/(256*256))); u16 597 test/correctness/simd_op_check.cpp check("vpmulhuw" YMM, 16, u16((u32(u16_1) * u32(u16_2))>>16)); u16 631 test/correctness/simd_op_check.cpp check("vpackusdw", 16, u16(clamp(i32_1, 0, max_u16))); u16 712 test/correctness/simd_op_check.cpp check(arm32 ? "vabd.s16" : "sabd", 4*w, u16(abs(i32(i16_2) - i16_3))); u16 713 test/correctness/simd_op_check.cpp check(arm32 ? "vabd.u16" : "uabd", 4*w, u16(abs(i32(u16_2) - u16_3))); u16 719 test/correctness/simd_op_check.cpp check(arm32 ? "vabdl.u8" : "uabdl", 8*w, u16(absd(u8_2, u8_3))); u16 759 test/correctness/simd_op_check.cpp check(arm32 ? "vaddhn.i32" : "addhn", 4*w, u16((u32_1 + u32_2)/65536)); u16 763 test/correctness/simd_op_check.cpp check(arm32 ? "vaddl.u8" : "uaddl", 8*w, u16(u8_1) + u16(u8_2)); u16 794 test/correctness/simd_op_check.cpp check(arm32 ? "vceq.i16" : "cmeq", 4*w, select(u16_1 == u16_2, u16(1), u16(2))); u16 806 test/correctness/simd_op_check.cpp check("vcge.u16", 8, select(u16_1 >= u16_2, u16(1), u16(2))); u16 813 test/correctness/simd_op_check.cpp check("vcge.u16", 4, select(u16_1 >= u16_2, u16(1), u16(2))); u16 823 test/correctness/simd_op_check.cpp check(arm32 ? "vcgt.u16" : "cmhi", 4*w, select(u16_1 > u16_2, u16(1), u16(2))); u16 850 test/correctness/simd_op_check.cpp check(arm32 ? "vdup.16" : "dup", 8*w, u16(y)); u16 869 test/correctness/simd_op_check.cpp check(arm32 ? "vhadd.u8" : "uhadd", 8*w, u8((u16(u8_1) + u16(u8_2))/2)); u16 871 test/correctness/simd_op_check.cpp check(arm32 ? "vhadd.u16" : "uhadd", 4*w, u16((u32(u16_1) + u32(u16_2))/2)); u16 881 test/correctness/simd_op_check.cpp check(arm32 ? "vhsub.u8" : "uhsub", 8*w, u8((u16(u8_1) - u16(u8_2))/2)); u16 883 test/correctness/simd_op_check.cpp check(arm32 ? "vhsub.u16" : "uhsub", 4*w, u16((u32(u16_1) - u32(u16_2))/2)); u16 978 test/correctness/simd_op_check.cpp check(arm32 ? "vmlal.u8" : "umlal", 8*w, u16_1 + u16(u8_2)*u8_3); u16 986 test/correctness/simd_op_check.cpp check(arm32 ? "vmlsl.u8" : "umlsl", 8*w, u16_1 - u16(u8_2)*u8_3); u16 998 test/correctness/simd_op_check.cpp check(arm32 ? "vmovl.u8" : "ushll", 8*w, u16(u8_1)); u16 1011 test/correctness/simd_op_check.cpp check(arm32 ? "vmovn.i32" : "xtn", 4*w, u16(u32_1)); u16 1031 test/correctness/simd_op_check.cpp check(arm32 ? "vmull.u8" : "umull", 8*w, u16(u8_1)*u8_2); u16 1104 test/correctness/simd_op_check.cpp check(arm32 ? "vqadd.u8" : "uqadd", 8*w, u8(min(u16(u8_1) + u16(u8_2), max_u8))); u16 1105 test/correctness/simd_op_check.cpp check(arm32 ? "vqadd.u16" : "uqadd", 4*w, u16(min(u32(u16_1) + u32(u16_2), max_u16))); u16 1108 test/correctness/simd_op_check.cpp check(arm32 ? "vqadd.u8" : "uqadd", 8*w, u8(min(u16(u8_1) + 17, max_u8))); u16 1109 test/correctness/simd_op_check.cpp check(arm32 ? "vqadd.u16" : "uqadd", 4*w, u16(min(u32(u16_1) + 17, max_u16))); u16 1124 test/correctness/simd_op_check.cpp check(arm32 ? "vqmovn.u32" : "uqxtn", 4*w, u16(min(u32_1, max_u16))); u16 1153 test/correctness/simd_op_check.cpp check(arm32 ? "vqshl.u8" : "uqshl", 8*w, u8(min(u16(u8_1 )*16, max_u8))); u16 1154 test/correctness/simd_op_check.cpp check(arm32 ? "vqshl.u16" : "uqshl", 4*w, u16(min(u32(u16_1)*16, max_u16))); u16 1172 test/correctness/simd_op_check.cpp check(arm32 ? "vqshrn.u32" : "uqshrn", 4*w, u16(min(u32_1/16, max_u16))); u16 1191 test/correctness/simd_op_check.cpp check("vraddhn.i32", 4, u16((u32_1 + u32_2 + 32768)/65536)); u16 1210 test/correctness/simd_op_check.cpp check(arm32 ? "vrhadd.u8" : "urhadd", 8*w, u8((u16(u8_1 ) + u16(u8_2 ) + 1)/2)); u16 1212 test/correctness/simd_op_check.cpp check(arm32 ? "vrhadd.u16" : "urhadd", 4*w, u16((u32(u16_1) + u32(u16_2) + 1)/2)); u16 1246 test/correctness/simd_op_check.cpp check(arm32 ? "vshll.u8" : "ushll", 8*w, u16(u8_1)*16); u16 1264 test/correctness/simd_op_check.cpp check(arm32 ? "vshrn.i32" : "shrn", 4*w, u16(u32_1/65536)); u16 1268 test/correctness/simd_op_check.cpp check(arm32 ? "vshrn.i32" : "shrn", 4*w, u16(u32_1/16)); u16 1307 test/correctness/simd_op_check.cpp check(arm32 ? "vsubhn.i32" : "subhn", 4*w, u16((u32_1 - u32_2)/65536)); u16 1311 test/correctness/simd_op_check.cpp check(arm32 ? "vsubl.u8" : "usubl", 8*w, u16(u8_1) - u16(u8_2)); u16 1464 test/correctness/simd_op_check.cpp check("vunpack(v*.ub)", hvx_width/1, u16(u8_1)); u16 1468 test/correctness/simd_op_check.cpp check("vunpack(v*.b)", hvx_width/1, u16(i8_1)); u16 1481 test/correctness/simd_op_check.cpp check("vzxt(v*.ub)", hvx_width/1, u16(u8_1)); u16 1485 test/correctness/simd_op_check.cpp check("vsxt(v*.b)", hvx_width/1, u16(i8_1)); u16 1502 test/correctness/simd_op_check.cpp check("v*.h = vadd(v*.ub,v*.ub)", hvx_width/1, u16(u8_1) + u16(u8_2)); u16 1505 test/correctness/simd_op_check.cpp check("vadd(v*.ub,v*.ub):sat", hvx_width/1, u8_sat(u16(u8_1) + u16(u8_2))); u16 1519 test/correctness/simd_op_check.cpp check("v*.h = vsub(v*.ub,v*.ub)", hvx_width/1, u16(u8_1) - u16(u8_2)); u16 1534 test/correctness/simd_op_check.cpp check("vadd(v*:*.ub,v*:*.ub):sat", hvx_width*2, u8_sat(u16(u8_1) + u16(u8_2))); u16 1553 test/correctness/simd_op_check.cpp check("vavg(v*.ub,v*.ub)", hvx_width/1, u8((u16(u8_1) + u16(u8_2))/2)); u16 1554 test/correctness/simd_op_check.cpp check("vavg(v*.ub,v*.ub):rnd", hvx_width/1, u8((u16(u8_1) + u16(u8_2) + 1)/2)); u16 1555 test/correctness/simd_op_check.cpp check("vavg(v*.uh,v*.uh)", hvx_width/2, u16((u32(u16_1) + u32(u16_2))/2)); u16 1556 test/correctness/simd_op_check.cpp check("vavg(v*.uh,v*.uh):rnd", hvx_width/2, u16((u32(u16_1) + u32(u16_2) + 1)/2)); u16 1587 test/correctness/simd_op_check.cpp check("vlsr(v*.uh,r*)", hvx_width/2, u16_1 >> (u16(y) % 16)); u16 1593 test/correctness/simd_op_check.cpp check("vasl(v*.h,r*)", hvx_width/2, u16_1 << (u16(y) % 16)); u16 1603 test/correctness/simd_op_check.cpp check("vpacke(v*.w,v*.w)", hvx_width/2, u16(u32_1)); u16 1604 test/correctness/simd_op_check.cpp check("vpacke(v*.w,v*.w)", hvx_width/2, u16(i32_1)); u16 1612 test/correctness/simd_op_check.cpp check("vpacko(v*.w,v*.w)", hvx_width/2, u16(u32_1 >> 16)); u16 1613 test/correctness/simd_op_check.cpp check("vpacko(v*.w,v*.w)", hvx_width/2, u16(i32_1 >> 16)); u16 1623 test/correctness/simd_op_check.cpp check("vshuffe(v*.b,v*.b)", hvx_width/1, u8(u16(u8_1) * 127)); u16 1625 test/correctness/simd_op_check.cpp check("vshuffe(v*.b,v*.b)", hvx_width/1, i8(u16(u8_1) * 127)); u16 1627 test/correctness/simd_op_check.cpp check("vshuffe(v*.h,v*.h)", hvx_width/2, u16(u32(u16_1) * 32767)); u16 1628 test/correctness/simd_op_check.cpp check("vshuffe(v*.h,v*.h)", hvx_width/2, u16(i32(i16_1) * 16383)); u16 1632 test/correctness/simd_op_check.cpp check("vshuffo(v*.b,v*.b)", hvx_width/1, u8((u16(u8_1) * 127) >> 8)); u16 1634 test/correctness/simd_op_check.cpp check("vshuffo(v*.b,v*.b)", hvx_width/1, i8((u16(u8_1) * 127) >> 8)); u16 1636 test/correctness/simd_op_check.cpp check("vshuffo(v*.h,v*.h)", hvx_width/2, u16((u32(u16_1) * 32767) >> 16)); u16 1637 test/correctness/simd_op_check.cpp check("vshuffo(v*.h,v*.h)", hvx_width/2, u16((i32(i16_1) * 16383) >> 16)); u16 1695 test/correctness/simd_op_check.cpp check("vshuff(v*,v*,r*)", (hvx_width*2)/2, select((x%2) == 0, u16(x/2), u16(x/2))); u16 1787 test/correctness/simd_op_check.cpp check("vmpy(v*.ub,v*.ub)", hvx_width/1, u16(u8_1) * u16(u8_2)); u16 1806 test/correctness/simd_op_check.cpp check("vmpy(v*.ub,r*.ub)", hvx_width/1, u16(u8_1) * 3); u16 1811 test/correctness/simd_op_check.cpp check("vmpy(v*.ub,r*.ub)", hvx_width/1, 3*u16(u8_1)); u16 1826 test/correctness/simd_op_check.cpp check("v*.uh += vmpy(v*.ub,v*.ub)", hvx_width/1, u16_1 + u16(u8_1) * u16(u8_2)); u16 1841 test/correctness/simd_op_check.cpp check("v*.uh += vmpy(v*.ub,r*.ub)", hvx_width/1, u16_1 + u16(u8_1) * 255); u16 1844 test/correctness/simd_op_check.cpp check("v*.uh += vmpy(v*.ub,r*.ub)", hvx_width/1, u16_1 + 255 * u16(u8_1)); u16 1899 test/correctness/simd_op_check.cpp check("vrmpy(v*.ub,r*.ub)", hvx_width, u32(u16(u8_1)*255) + u32(u16(u8_2)*254) + u32(u16(u8_3)*253) + u32(u16(u8_4)*252)); u16 1962 test/correctness/simd_op_check.cpp check("vaddubs", 16*w, u8(min(u16( u8_1) + u16( u8_2), max_u8))); u16 1963 test/correctness/simd_op_check.cpp check("vadduhs", 8*w, u16(min(u32(u16_1) + u32(u16_2), max_u16))); u16 1974 test/correctness/simd_op_check.cpp check("vsubuhs", 8*w, u16(max(i32(u16_1) - i32(u16_2), 0))); u16 1979 test/correctness/simd_op_check.cpp check("vavgub", 16*w, u8((u16( u8_1) + u16( u8_2) + 1)/2)); u16 1981 test/correctness/simd_op_check.cpp check("vavguh", 8*w, u16((u32(u16_1) + u32(u16_2) + 1)/2)); u16 64 test/generator/metadata_tester_aottest.cpp return e.u.u16 == a.u.u16; u16 219 test/generator/metadata_tester_aottest.cpp s->u.u16 = v; u16 21 test/generator/metadata_tester_generator.cpp Input<uint16_t> u16{ "u16", 160, 16, 2550 }; u16 100 tutorial/lesson_14_types.cpp Expr u16 = cast<uint16_t>(x); u16 128 tutorial/lesson_14_types.cpp assert((u16 + f64).type() == Float(64));