uint16_t 8 apps/HelloHexagon/pipeline.cpp x0 = cast<uint16_t>(x0); uint16_t 9 apps/HelloHexagon/pipeline.cpp x1 = cast<uint16_t>(x1); uint16_t 10 apps/HelloHexagon/pipeline.cpp x2 = cast<uint16_t>(x2); uint16_t 11 apps/HelloHexagon/pipeline.cpp x3 = cast<uint16_t>(x3); uint16_t 12 apps/HelloHexagon/pipeline.cpp x4 = cast<uint16_t>(x4); uint16_t 83 apps/HelloHexagon/process.cpp const uint16_t gaussian5[] = { 1, 4, 6, 4, 1 }; uint16_t 85 apps/HelloHexagon/process.cpp uint16_t blur = 0; uint16_t 87 apps/HelloHexagon/process.cpp uint16_t blur_y = 0; uint16_t 89 apps/HelloHexagon/process.cpp uint16_t in_rxy = uint16_t 21 apps/blur/test.cpp Buffer<uint16_t> blur(Buffer<uint16_t> in) { uint16_t 22 apps/blur/test.cpp Buffer<uint16_t> tmp(in.width()-8, in.height()); uint16_t 23 apps/blur/test.cpp Buffer<uint16_t> out(in.width()-8, in.height()-2); uint16_t 39 apps/blur/test.cpp Buffer<uint16_t> blur_fast(Buffer<uint16_t> in) { uint16_t 40 apps/blur/test.cpp Buffer<uint16_t> out(in.width()-8, in.height()-2); uint16_t 51 apps/blur/test.cpp const uint16_t *inPtr = &(in(xTile, yTile+y)); uint16_t 122 apps/blur/test.cpp Buffer<uint16_t> blur_fast2(const Buffer<uint16_t> &in) { uint16_t 123 apps/blur/test.cpp Buffer<uint16_t> out(in.width()-8, in.height()-2); uint16_t 143 apps/blur/test.cpp const uint16_t *inPtr = &(in(0, yTile + y + 2)); uint16_t 177 apps/blur/test.cpp Buffer<uint16_t> blur_halide(Buffer<uint16_t> in) { uint16_t 178 apps/blur/test.cpp Buffer<uint16_t> out(in.width()-8, in.height()-2); uint16_t 198 apps/blur/test.cpp Buffer<uint16_t> input(6408, 4802); uint16_t 206 apps/blur/test.cpp Buffer<uint16_t> blurry = blur(input); uint16_t 209 apps/blur/test.cpp Buffer<uint16_t> speedy = blur_fast(input); uint16_t 215 apps/blur/test.cpp Buffer<uint16_t> halide = blur_halide(input); uint16_t 80 apps/c_backend/pipeline_cpp_generator.cpp f(x, y) = cast<uint16_t>(add_all_the_things); uint16_t 17 apps/c_backend/pipeline_generator.cpp g(x, y) = cast<uint16_t>(f(y, x) + f(x, y) + an_extern_func(x, y) + h()); uint16_t 40 apps/c_backend/run.cpp Buffer<uint16_t> in(1432, 324); uint16_t 44 apps/c_backend/run.cpp in(x, y) = (uint16_t)rand(); uint16_t 48 apps/c_backend/run.cpp Buffer<uint16_t> out_native(423, 633); uint16_t 49 apps/c_backend/run.cpp Buffer<uint16_t> out_c(423, 633); uint16_t 69 apps/c_backend/run_cpp.cpp Buffer<uint16_t> in(100, 100); uint16_t 73 apps/c_backend/run_cpp.cpp in(x, y) = (uint16_t)rand(); uint16_t 77 apps/c_backend/run_cpp.cpp Buffer<uint16_t> out_native(100, 100); uint16_t 78 apps/c_backend/run_cpp.cpp Buffer<uint16_t> out_c(100, 100); uint16_t 292 apps/camera_pipe/camera_pipe_generator.cpp curved(x, y, c) = cast<uint8_t>((cast<uint16_t>(y0)*lutResample + (y1 - y0)*u)/lutResample); uint16_t 75 apps/camera_pipe/fcam/Demosaic.cpp void demosaic(Halide::Runtime::Buffer<uint16_t> input, Halide::Runtime::Buffer<uint8_t> out, float colorTemp, float contrast, bool denoise, int blackLevel, int whiteLevel, float gamma) { uint16_t 20 apps/camera_pipe/fcam/Demosaic.h void demosaic(Halide::Runtime::Buffer<uint16_t> input, uint16_t 18 apps/camera_pipe/fcam/Demosaic_ARM.cpp void demosaic_ARM(Halide::Runtime::Buffer<uint16_t> input, Halide::Runtime::Buffer<uint8_t> out, float colorTemp, float contrast, bool denoise, int blackLevel, int whiteLevel, float gamma) { uint16_t 113 apps/camera_pipe/fcam/Demosaic_ARM.cpp __attribute__((aligned(16))) uint16_t out16[BLOCK_WIDTH*BLOCK_HEIGHT*3]; uint16_t 521 apps/camera_pipe/fcam/Demosaic_ARM.cpp uint16_t *__restrict__ out16Ptr = out16; uint16_t 677 apps/camera_pipe/fcam/Demosaic_ARM.cpp const uint16_t *__restrict__ out16Ptr = out16; uint16_t 10 apps/camera_pipe/fcam/Demosaic_ARM.h void demosaic_ARM(Halide::Runtime::Buffer<uint16_t> input, Halide::Runtime::Buffer<uint8_t> out, float colorTemp, float contrast, bool denoise, int blackLevel, int whiteLevel, float gamma); uint16_t 30 apps/camera_pipe/process.cpp Buffer<uint16_t> input = load_image(argv[1]); uint16_t 374 apps/hexagon_benchmarks/process.h uint16_t sobel3(uint16_t a, uint16_t b, uint16_t c) { uint16_t 389 apps/hexagon_benchmarks/process.h auto u16_in_bounded = [&](int x_, int y_) { return static_cast<uint16_t>(u8_in(clamp(x_, 0, W-1), clamp(y_, 0, H-1))); }; uint16_t 391 apps/hexagon_benchmarks/process.h uint16_t sobel_x_avg0 = sobel3(u16_in_bounded(x-1, y-1), u16_in_bounded(x, y-1), u16_in_bounded(x+1, y-1)); uint16_t 392 apps/hexagon_benchmarks/process.h uint16_t sobel_x_avg1 = sobel3(u16_in_bounded(x-1, y+1), u16_in_bounded(x, y+1), u16_in_bounded(x+1, y+1)); uint16_t 393 apps/hexagon_benchmarks/process.h uint16_t sobel_x = abs(sobel_x_avg0 - sobel_x_avg1); uint16_t 396 apps/hexagon_benchmarks/process.h uint16_t sobel_y_avg0 = sobel3(u16_in_bounded(x-1, y-1), u16_in_bounded(x-1, y), u16_in_bounded(x-1, y+1)); uint16_t 397 apps/hexagon_benchmarks/process.h uint16_t sobel_y_avg1 = sobel3(u16_in_bounded(x+1, y-1), u16_in_bounded(x+1, y), u16_in_bounded(x+1, y+1)); uint16_t 398 apps/hexagon_benchmarks/process.h uint16_t sobel_y = abs(sobel_y_avg0 - sobel_y_avg1); uint16_t 14 apps/hexagon_benchmarks/sobel_generator.cpp input_16(x, y) = cast<uint16_t>(bounded_input(x, y)); uint16_t 87 apps/local_laplacian/local_laplacian_generator.cpp output(x, y, c) = cast<uint16_t>(clamp(color(x, y, c), 0.0f, 1.0f) * 65535.0f); uint16_t 20 apps/local_laplacian/process.cpp Buffer<uint16_t> input = load_image(argv[1]); uint16_t 23 apps/local_laplacian/process.cpp Buffer<uint16_t> output(input.width(), input.height(), 3); uint16_t 81 apps/simd_op_check/driver.cpp make_buffer<uint16_t>(W, H), uint16_t 179 python_bindings/python/BoundaryConditions.cpp boost::uint8_t, boost::uint16_t, boost::uint32_t, uint16_t 196 python_bindings/python/BoundaryConditions.cpp boost::uint8_t, boost::uint16_t, boost::uint32_t, uint16_t 213 python_bindings/python/BoundaryConditions.cpp boost::uint8_t, boost::uint16_t, boost::uint32_t, uint16_t 231 python_bindings/python/BoundaryConditions.cpp boost::uint8_t, boost::uint16_t, boost::uint32_t, uint16_t 250 python_bindings/python/BoundaryConditions.cpp boost::uint8_t, boost::uint16_t, boost::uint32_t, uint16_t 288 python_bindings/python/Func.cpp .def("realize", &func_realize_into<h::Buffer<uint16_t>>, uint16_t 291 python_bindings/python/Func.cpp .def("realize", &func_realize_into<h::Buffer<uint16_t>, h::Target>, uint16_t 420 python_bindings/python/Image.cpp p::manage_new_object::apply<h::Buffer<uint16_t> *>::type converter; uint16_t 421 python_bindings/python/Image.cpp obj = converter(new h::Buffer<uint16_t>(im)); uint16_t 449 python_bindings/python/Image.cpp p::extract<h::Buffer<uint16_t>> buffer_extract_uint16(obj); uint16_t 483 python_bindings/python/Image.cpp if (t == h::UInt(16)) return bn::dtype::get_builtin<uint16_t>(); uint16_t 496 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<uint16_t>()) return h::UInt(16); uint16_t 560 python_bindings/python/Image.cpp if (t == h::UInt(16)) return create_buffer_object<uint16_t>(args...); uint16_t 602 python_bindings/python/Image.cpp defineBuffer_impl<uint16_t>("_uint16", h::UInt(16)); uint16_t 112 python_bindings/python/Param.cpp .def("set", &image_param_set<uint16_t>, p::args("self", "im"), uint16_t 384 python_bindings/python/Param.cpp add_operators_with<pc_t, Param<uint16_t>>(param_class); uint16_t 493 python_bindings/python/Param.cpp typedef boost::mpl::list<boost::uint8_t, boost::uint16_t, boost::uint32_t, uint16_t 565 python_bindings/python/Param.cpp boost::uint8_t, boost::uint16_t, boost::uint32_t, uint16_t 572 python_bindings/python/Param.cpp boost::uint8_t, boost::uint16_t, boost::uint32_t, uint16_t 598 python_bindings/python/Param.cpp defineParam_impl<uint16_t>("_uint16", h::UInt(16)); uint16_t 219 src/AssociativeOpsTable.cpp {cast<uint8_t>(min(cast<uint16_t>(x0 + y0), k0_uint16)), zero, true}, uint16_t 238 src/AssociativeOpsTable.cpp {cast<uint16_t>(min(cast<uint32_t>(x0 + y0), k0_uint32)), zero, true}, uint16_t 239 src/AssociativeOpsTable.cpp {cast<uint16_t>(min(cast<uint64_t>(x0 + y0), k0_uint64)), zero, true}, uint16_t 1498 src/Bounds.cpp check(scope, cast<uint16_t>(x / 2), make_const(UInt(16), 0), make_const(UInt(16), 5)); uint16_t 1499 src/Bounds.cpp check(scope, cast<uint16_t>((x + 10) / 2), make_const(UInt(16), 5), make_const(UInt(16), 10)); uint16_t 1531 src/Bounds.cpp cast<uint16_t>(clamp(cast<float>(x/y), 0.0f, 4095.0f)), uint16_t 1535 src/Bounds.cpp cast<uint8_t>(clamp(cast<uint16_t>(x/y), cast<uint16_t>(0), cast<uint16_t>(128))), uint16_t 1540 src/Bounds.cpp check(scope, cast<uint16_t>(u8_1) + cast<uint16_t>(u8_2), uint16_t 90 src/Elf.cpp uint16_t e_type; uint16_t 91 src/Elf.cpp uint16_t e_machine; uint16_t 97 src/Elf.cpp uint16_t e_ehsize; uint16_t 98 src/Elf.cpp uint16_t e_phentsize; uint16_t 99 src/Elf.cpp uint16_t e_phnum; uint16_t 100 src/Elf.cpp uint16_t e_shentsize; uint16_t 101 src/Elf.cpp uint16_t e_shnum; uint16_t 102 src/Elf.cpp uint16_t e_shstrndx; uint16_t 209 src/Elf.cpp uint16_t st_shndx; uint16_t 355 src/Elf.cpp for (uint16_t i = 0; i < header.e_shnum; i++) { uint16_t 375 src/Elf.cpp for (uint16_t i = 0; i < header.e_shnum; i++) { uint16_t 398 src/Elf.cpp for (uint16_t i = 0; i < header.e_shnum; i++) { uint16_t 558 src/Elf.cpp std::map<const Section *, uint16_t> section_idxs; uint16_t 588 src/Elf.cpp uint16_t shndx = safe_cast<uint16_t>(shdrs.size()); uint16_t 596 src/Elf.cpp uint16_t idx = section_idxs[&s]; uint16_t 730 src/Elf.cpp std::map<const Symbol *, uint16_t> symbol_idxs; uint16_t 760 src/Elf.cpp uint16_t symtab_idx = write_section(symtab, sizeof(syms[0])); uint16_t 767 src/Elf.cpp uint16_t dynsym_idx = write_section(dynsym, sizeof(syms[0])); uint16_t 789 src/Elf.cpp uint16_t hash_idx = write_section(hash, sizeof(hash_table[0])); uint16_t 857 src/Elf.cpp uint16_t shndx = safe_cast<uint16_t>(shdrs.size()); uint16_t 878 src/Elf.cpp uint16_t strtab_idx = write_section(strtab); uint16_t 930 src/Elf.cpp uint16_t dyn_idx = write_section(dynamic, sizeof(dyn[0])); uint16_t 331 src/Elf.h virtual uint16_t get_machine() = 0; uint16_t 361 src/Elf.h enum Type : uint16_t { uint16_t 386 src/Elf.h uint16_t machine = 0; uint16_t 398 src/Elf.h uint16_t get_machine() const { return machine; } uint16_t 407 src/Elf.h Object &set_machine(uint16_t machine) { uint16_t 279 src/Expr.h EXPORT explicit Expr(uint16_t x) : IRHandle(Internal::UIntImm::make(UInt(16), x)) {} uint16_t 47 src/FastIntegerDivide.cpp Buffer<uint16_t> integer_divide_table_u16() { uint16_t 51 src/FastIntegerDivide.cpp static Buffer<uint16_t> im(256, 2); uint16_t 64 src/FastIntegerDivide.cpp Buffer<uint16_t> integer_divide_table_s16() { uint16_t 68 src/FastIntegerDivide.cpp static Buffer<uint16_t> im(256, 2); uint16_t 144 src/FastIntegerDivide.cpp Buffer<uint16_t> table = IntegerDivideTable::integer_divide_table_u16(); uint16_t 186 src/FastIntegerDivide.cpp Buffer<uint16_t> table = IntegerDivideTable::integer_divide_table_s16(); uint16_t 15 src/FastIntegerDivide.h EXPORT Buffer<uint16_t> integer_divide_table_u16(); uint16_t 16 src/FastIntegerDivide.h EXPORT Buffer<uint16_t> integer_divide_table_s16(); uint16_t 32 src/Float16.cpp return float16_t::make_from_bits((uint16_t) bits); uint16_t 77 src/Float16.cpp uint16_t getBitsFrom(T value, RoundingMode roundingMode, const char *typeName) { uint16_t 93 src/Float16.cpp uint16_t getBitsFrom(const char *value, RoundingMode roundingMode, const char *typeName) { uint16_t 108 src/Float16.cpp uint16_t getBitsFrom(int64_t value, RoundingMode roundingMode, const char *typeName) { uint16_t 165 src/Float16.cpp float16_t float16_t::make_from_bits(uint16_t rawBits) { uint16_t 373 src/Float16.cpp uint16_t float16_t::to_bits() const { uint16_t 98 src/Float16.h EXPORT static float16_t make_from_bits(uint16_t bits); uint16_t 193 src/Float16.h EXPORT uint16_t to_bits() const; uint16_t 199 src/Float16.h uint16_t data; uint16_t 349 src/Generator.h HALIDE_GENERATOR_PARAM_TYPED_SETTER(uint16_t) uint16_t 433 src/Generator.h HALIDE_GENERATOR_PARAM_TYPED_SETTER(uint16_t) uint16_t 485 src/HexagonOffload.cpp uint16_t get_machine() override { return EM_HEXAGON; } uint16_t 87 src/IROperator.h inline Expr make_const(Type t, uint16_t val) {return make_const(t, (uint64_t)val);} uint16_t 1024 src/Introspection.cpp uint16_t dwarf_version = e.getU16(&off); uint16_t 1875 src/Introspection.cpp uint16_t version = e.getU16(&off); uint16_t 2062 src/Introspection.cpp uint16_t advance = e.getU16(&off); uint16_t 169 src/Parameter.cpp case 16: return Expr(get_scalar<uint16_t>()); uint16_t 60 src/ScheduleParam.h HALIDE_SCHEDULE_PARAM_TYPED_SETTER(uint16_t) uint16_t 211 src/ScheduleParam.h HALIDE_SCHEDULE_PARAM_TYPED_SETTER(uint16_t) uint16_t 6436 src/Simplify.cpp Expr one = cast<uint16_t>(1); uint16_t 6441 src/Simplify.cpp internal_assert(r1.type() == halide_type_of<uint16_t>()); uint16_t 6443 src/Simplify.cpp internal_assert(r2.type() == halide_type_of<uint16_t>()); uint16_t 6449 src/Simplify.cpp internal_assert(r1.type() == halide_type_of<uint16_t>()); uint16_t 6451 src/Simplify.cpp internal_assert(r2.type() == halide_type_of<uint16_t>()); uint16_t 141 src/Type.h HALIDE_DECLARE_EXTERN_SIMPLE_TYPE(uint16_t); uint16_t 311 src/Type.h : type(code, (uint8_t)bits, (uint16_t)lanes), handle_type(handle_type) { uint16_t 999 src/runtime/HalideBuffer.h using MemType = uint16_t; uint16_t 267 src/runtime/HalideRuntime.h HALIDE_ATTRIBUTE_ALIGN(2) uint16_t lanes; uint16_t 274 src/runtime/HalideRuntime.h HALIDE_ALWAYS_INLINE halide_type_t(halide_type_code_t code, uint8_t bits, uint16_t lanes = 1) uint16_t 810 src/runtime/HalideRuntime.h uint16_t lanes_given, uint16_t correct_lanes); uint16_t 1176 src/runtime/HalideRuntime.h uint16_t u16; uint16_t 1385 src/runtime/HalideRuntime.h extern float halide_float16_bits_to_float(uint16_t); uint16_t 1389 src/runtime/HalideRuntime.h extern double halide_float16_bits_to_double(uint16_t); uint16_t 1437 src/runtime/HalideRuntime.h HALIDE_ALWAYS_INLINE halide_type_t halide_type_of<uint16_t>() { uint16_t 95 src/runtime/buffer_t.cpp uint16_t _halide_buffer_get_type_lanes(const halide_buffer_t *buf) { uint16_t 33 src/runtime/errors.cpp uint16_t lanes_given, uint16_t correct_lanes) { uint16_t 6 src/runtime/float16_t.cpp WEAK float halide_float16_bits_to_float(uint16_t bits) { uint16_t 68 src/runtime/float16_t.cpp WEAK double halide_float16_bits_to_double(uint16_t bits) { uint16_t 334 src/runtime/hexagon_remote/bin/src/halide_hexagon_remote_skel.c const uint16_t* value16s; uint16_t 400 src/runtime/hexagon_remote/bin/src/halide_hexagon_remote_skel.c const uint16_t* methodStringArray; uint16_t 401 src/runtime/hexagon_remote/bin/src/halide_hexagon_remote_skel.c const uint16_t* methodStrings; uint16_t 429 src/runtime/hexagon_remote/bin/src/halide_hexagon_remote_skel.c static const uint16_t methodStrings[34] = {121,289,152,269,247,103,22,235,239,345,258,323,180,137,166,208,258,335,315,64,330,307,298,303,279,0,340,258,43,59,84,258,194,222}; uint16_t 430 src/runtime/hexagon_remote/bin/src/halide_hexagon_remote_skel.c static const uint16_t methodStringsArrays[10] = {25,15,33,32,9,30,22,19,28,0}; uint16_t 334 src/runtime/hexagon_remote/bin/src/halide_hexagon_remote_stub.c const uint16_t* value16s; uint16_t 400 src/runtime/hexagon_remote/bin/src/halide_hexagon_remote_stub.c const uint16_t* methodStringArray; uint16_t 401 src/runtime/hexagon_remote/bin/src/halide_hexagon_remote_stub.c const uint16_t* methodStrings; uint16_t 429 src/runtime/hexagon_remote/bin/src/halide_hexagon_remote_stub.c static const uint16_t methodStrings[34] = {121,289,152,269,247,103,22,235,239,345,258,323,180,137,166,208,258,335,315,64,330,307,298,303,279,0,340,258,43,59,84,258,194,222}; uint16_t 430 src/runtime/hexagon_remote/bin/src/halide_hexagon_remote_stub.c static const uint16_t methodStringsArrays[10] = {25,15,33,32,9,30,22,19,28,0}; uint16_t 23 src/runtime/hexagon_remote/dlib.cpp uint16_t e_type; uint16_t 24 src/runtime/hexagon_remote/dlib.cpp uint16_t e_machine; uint16_t 30 src/runtime/hexagon_remote/dlib.cpp uint16_t e_ehsize; uint16_t 31 src/runtime/hexagon_remote/dlib.cpp uint16_t e_phentsize; uint16_t 32 src/runtime/hexagon_remote/dlib.cpp uint16_t e_phnum; uint16_t 33 src/runtime/hexagon_remote/dlib.cpp uint16_t e_shentsize; uint16_t 34 src/runtime/hexagon_remote/dlib.cpp uint16_t e_shnum; uint16_t 35 src/runtime/hexagon_remote/dlib.cpp uint16_t e_shstrndx; uint16_t 70 src/runtime/hexagon_remote/dlib.cpp uint16_t st_shndx; uint16_t 354 src/runtime/matlab.cpp case 16: *reinterpret_cast<uint16_t *>(scalar) = static_cast<uint16_t>(value); return halide_error_code_success; uint16_t 22 src/runtime/old_buffer_t.cpp case 2: new_buf->type = halide_type_of<uint16_t>(); break; uint16_t 808 src/runtime/opengl.cpp } else if (buf->type == halide_type_of<uint16_t>()) { uint16_t 1229 src/runtime/opengl.cpp halide_to_interleaved<uint16_t>(buf, (uint16_t*)tmp.ptr); uint16_t 1376 src/runtime/opengl.cpp interleaved_to_halide<uint16_t>(user_context, (uint16_t*)tmp.ptr, texture_channels, buf); uint16_t 1578 src/runtime/opengl.cpp uniform_float[uniform_float_idx++] = *((uint16_t*)args[i]); uint16_t 86 src/runtime/printer.h Printer & write_float16_from_bits(const uint16_t arg) { uint16_t 129 src/runtime/tracing.cpp ss << ((uint16_t *)(e->value))[i]; uint16_t 140 src/runtime/tracing.cpp ss.write_float16_from_bits( ((uint16_t *)(e->value))[i]); uint16_t 238 src/runtime/tracing.cpp event.type.lanes = (uint16_t)type_lanes; uint16_t 30 src/runtime/write_debug_image.cpp uint16_t tag_code; uint16_t 39 src/runtime/write_debug_image.cpp void assign16(uint16_t tag_code, int32_t count, int16_t value) __attribute__((always_inline)) { uint16_t 46 src/runtime/write_debug_image.cpp void assign32(uint16_t tag_code, int32_t count, int32_t value) __attribute__((always_inline)) { uint16_t 53 src/runtime/write_debug_image.cpp void assign32(uint16_t tag_code, int16_t type_code, int32_t count, int32_t value) __attribute__((always_inline)) { uint16_t 136 test/correctness/bit_counting.cpp if (test_bit_counting<uint16_t>(target) != 0) return -1; uint16_t 26 test/correctness/bounds_of_cast.cpp Func f3 = lambda(x, input(cast<uint16_t>(x))); uint16_t 76 test/correctness/constant_expr.cpp test_expr_range<uint16_t>(); uint16_t 46 test/correctness/constant_type.cpp ok = ok && test_type<uint16_t>(); uint16_t 11 test/correctness/convolution.cpp Buffer<uint16_t> in(W, H); uint16_t 21 test/correctness/convolution.cpp Buffer<uint16_t> tent(3, 3); uint16_t 100 test/correctness/convolution.cpp Buffer<uint16_t> out1 = blur1.realize(W, H, target); uint16_t 101 test/correctness/convolution.cpp Buffer<uint16_t> out2 = blur2.realize(W, H, target); uint16_t 105 test/correctness/convolution.cpp uint16_t correct = (1*in(x-1, y-1) + 2*in(x, y-1) + 1*in(x+1, y-1) + uint16_t 11 test/correctness/convolution_multiple_kernels.cpp Buffer<uint16_t> in(W, H); uint16_t 27 test/correctness/convolution_multiple_kernels.cpp box1(x, y) = cast<uint16_t>(1); uint16_t 40 test/correctness/convolution_multiple_kernels.cpp + sum(cast<uint16_t>(box2(r.x, r.y)) * input(x + r.x, y + r.y)); uint16_t 52 test/correctness/convolution_multiple_kernels.cpp Buffer<uint16_t> out = blur.realize(W, H, target); uint16_t 56 test/correctness/convolution_multiple_kernels.cpp uint16_t correct = (in(x-1, y-1) + in(x, y-1) + in(x+1, y-1) + uint16_t 44 test/correctness/dilate3x3.cpp uint16_t correct = std::max({ std::max({ in(x-1, y-1), in(x, y-1), in(x+1, y-1) }), uint16_t 47 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&zeroP) == 0x0000, uint16_t 76 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&zeroN) == 0x8000, uint16_t 105 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&infinityP) == 0x7c00, uint16_t 134 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&infinityN) == 0xfc00, uint16_t 164 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&nanValue) == nanValue.to_bits(), uint16_t 184 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&largestNorm) == largestNorm.to_bits(), uint16_t 204 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&largestNorm) == largestNorm.to_bits(), uint16_t 222 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&smallestSubNorm) == smallestSubNorm.to_bits(), uint16_t 240 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&smallestSubNorm) == smallestSubNorm.to_bits(), uint16_t 273 test/correctness/float16_t_constants.cpp const float16_t noughtPointOneMakeFromBits = float16_t::make_from_bits((uint16_t)0x2e66); // Implicitly RNE uint16_t 9 test/correctness/gpu_mixed_shared_mem_types.cpp T correct = n_types * (static_cast<uint16_t>(x) / 16) + offset; uint16_t 11 test/correctness/gpu_reuse_shared_memory.cpp f3(x, y, z) = cast<uint16_t>(f2(x+1, y, z) + f2(x, y+1, z)); uint16_t 12 test/correctness/gpu_reuse_shared_memory.cpp f4(x, y, z) = cast<uint16_t>(f3(x+1, y, z) + f3(x, y+1, z)); uint16_t 390 test/correctness/interleave.cpp Buffer<uint16_t> result6(8, 8); uint16_t 391 test/correctness/interleave.cpp Buffer<uint16_t> result7(8, 8); uint16_t 51 test/correctness/interleave_rgb.cpp if (!test_interleave<uint16_t>()) return -1; uint16_t 11 test/correctness/interleave_x.cpp interleaved(x, y) = select(x%2 == 0, cast<uint16_t>(3), cast<uint16_t>(7)); uint16_t 24 test/correctness/interleave_x.cpp Buffer<uint16_t> out = interleaved.realize(128, 128, target); uint16_t 27 test/correctness/interleave_x.cpp uint16_t correct = x%2 == 0 ? 3 : 7; uint16_t 150 test/correctness/lerp.cpp check_range<uint16_t, uint16_t>(0, 65536, 0, 1, uint16_t 154 test/correctness/lerp.cpp check_range<uint16_t, uint16_t>(65535, 1, 0, 1, uint16_t 161 test/correctness/lerp.cpp check_range<uint16_t, uint8_t>(0, 1, 0, 1, uint16_t 165 test/correctness/lerp.cpp check_range<uint16_t, uint32_t>(0, 1, 0, 1, uint16_t 173 test/correctness/lerp.cpp check_range<uint32_t, uint16_t>(0, 1, 0, 1, uint16_t 179 test/correctness/lerp.cpp check_range<uint16_t, float>(0, 1, 0, 1, uint16_t 184 test/correctness/lerp.cpp check_range<int16_t, uint16_t>(0, 65536, -32768, 1, uint16_t 212 test/correctness/lerp.cpp check_range<float, uint16_t>(0, 100, -5, .1f, uint16_t 226 test/correctness/lerp.cpp uint32_t expected = evaluate<uint32_t>(cast<uint32_t>(lerp(0, cast<uint16_t>(1023), .5f))); uint16_t 11 test/correctness/logical.cpp return cast<uint16_t>(a); uint16_t 44 test/correctness/math.cpp uint16_t absd(int16_t a, int16_t b) { return a < b ? b - a : a - b; } uint16_t 47 test/correctness/math.cpp uint16_t absd(uint16_t a, uint16_t b) { return a < b ? b - a : a - b; } uint16_t 117 test/correctness/math.cpp fun_1(uint16_t, uint16_t, name, name) \ uint16_t 149 test/correctness/math.cpp fun_1(uint16_t, int16_t, abs, abs) uint16_t 154 test/correctness/math.cpp fun_2(uint16_t, int16_t, absd, absd) uint16_t 157 test/correctness/math.cpp fun_2(uint16_t, uint16_t, absd, absd) uint16_t 249 test/correctness/math.cpp const uint16_t uint16_min = std::numeric_limits<uint16_t>::min(); uint16_t 252 test/correctness/math.cpp const uint16_t uint16_max = std::numeric_limits<uint16_t>::max(); uint16_t 265 test/correctness/math.cpp call_2(uint16_t, absd, 256, uint16_min, uint16_max, uint16_min, uint16_max); uint16_t 49 test/correctness/mod.cpp test<uint16_t>() && uint16_t 509 test/correctness/mul_div_mod.cpp success &= mul<uint16_t, uint16_t, uint16_t, uint64_t>(vector_width, scheduling, target); uint16_t 516 test/correctness/mul_div_mod.cpp success &= mul<uint8_t, uint8_t, uint16_t, uint64_t>(vector_width, scheduling, target); uint16_t 517 test/correctness/mul_div_mod.cpp success &= mul<uint16_t, uint16_t, uint32_t, uint64_t>(vector_width, scheduling, target); uint16_t 524 test/correctness/mul_div_mod.cpp success &= mul<uint16_t, uint32_t, uint32_t, uint64_t>(vector_width, scheduling, target); uint16_t 526 test/correctness/mul_div_mod.cpp success &= mul<uint16_t, int32_t, int32_t, uint64_t>(vector_width, scheduling, target); uint16_t 535 test/correctness/mul_div_mod.cpp success &= div_mod<uint16_t, uint64_t>(vector_width, scheduling, target); uint16_t 227 test/correctness/saturating_casts.cpp test_saturating<source_t, uint16_t>(); uint16_t 248 test/correctness/saturating_casts.cpp test_concise<source_t, uint16_t>(u16, false); uint16_t 250 test/correctness/saturating_casts.cpp test_concise<source_t, uint16_t>(u16_sat, true); uint16_t 273 test/correctness/saturating_casts.cpp test_one_source<uint16_t>(); uint16_t 8 test/correctness/specialize.cpp uint16_t vector_store_lanes; uint16_t 16 test/correctness/vector_cast.cpp DECL_SOT(uint16_t); uint16_t 121 test/correctness/vector_cast.cpp success = success && test<A, uint16_t>(vec_width, target); uint16_t 152 test/correctness/vector_cast.cpp success = success && test_all<uint16_t>(vec_width, target); uint16_t 31 test/correctness/vector_math.cpp DECL_SOT(uint16_t); uint16_t 109 test/correctness/vector_math.cpp typedef uint16_t type; uint16_t 633 test/correctness/vector_math.cpp futures.push_back(pool.async(test<uint16_t>, 8)); uint16_t 10 test/error/lerp_mismatch.cpp f() = lerp(cast<uint16_t>(0), cast<uint8_t>(42), 0.5f); uint16_t 63 test/generator/cxx_mangling_aottest.cpp int16_t, uint16_t, uint16_t 28 test/generator/cxx_mangling_define_extern_aottest.cpp int cxx_mangling_1(void *ctx, halide_buffer_t *_input_buffer, int8_t _offset_i8, uint8_t _offset_u8, int16_t _offset_i16, uint16_t _offset_u16, int32_t _offset_i32, uint32_t _offset_u32, int64_t _offset_i64, uint64_t _offset_u64, bool _scale_direction, float _scale_f, double _scale_d, int32_t *_ptr, int32_t const *_const_ptr, void *_void_ptr, void const *_const_void_ptr, void *_string_ptr, void const *_const_string_ptr, halide_buffer_t *_f_buffer) { uint16_t 32 test/generator/cxx_mangling_define_extern_aottest.cpp int cxx_mangling_2(void *ctx, halide_buffer_t *_input_buffer, int8_t _offset_i8, uint8_t _offset_u8, int16_t _offset_i16, uint16_t _offset_u16, int32_t _offset_i32, uint32_t _offset_u32, int64_t _offset_i64, uint64_t _offset_u64, bool _scale_direction, float _scale_f, double _scale_d, int32_t *_ptr, int32_t const *_const_ptr, void *_void_ptr, void const *_const_void_ptr, void *_string_ptr, void const *_const_string_ptr, halide_buffer_t *_f_buffer) { uint16_t 36 test/generator/cxx_mangling_define_extern_aottest.cpp extern "C" int cxx_mangling_3(void *ctx, halide_buffer_t *_input_buffer, int8_t _offset_i8, uint8_t _offset_u8, int16_t _offset_i16, uint16_t _offset_u16, int32_t _offset_i32, uint32_t _offset_u32, int64_t _offset_i64, uint64_t _offset_u64, bool _scale_direction, float _scale_f, double _scale_d, int32_t *_ptr, int32_t const *_const_ptr, void *_void_ptr, void const *_const_void_ptr, void *_string_ptr, void const *_const_string_ptr, halide_buffer_t *_f_buffer) { uint16_t 30 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(cast<uint16_t>(4)); uint16_t 39 test/generator/cxx_mangling_generator.cpp Param<uint16_t> offset_u16{"offset_u16", 0}; uint16_t 33 test/generator/float16_t_aottest.cpp uint16_t inputs[] = { uint16_t 92 test/generator/float16_t_aottest.cpp h_assert(sizeof(inputs)/sizeof(uint16_t) == sizeof(expectedF)/sizeof(float), uint16_t 94 test/generator/float16_t_aottest.cpp h_assert(sizeof(inputs)/sizeof(uint16_t) == sizeof(expectedD)/sizeof(double), uint16_t 97 test/generator/float16_t_aottest.cpp for (unsigned int index=0; index < sizeof(inputs)/sizeof(uint16_t); ++index) { uint16_t 98 test/generator/float16_t_aottest.cpp uint16_t in = inputs[index]; uint16_t 134 test/generator/image_from_array_aottest.cpp test<uint16_t>(); uint16_t 217 test/generator/metadata_tester_aottest.cpp const halide_scalar_value_t *make_scalar(uint16_t v) { uint16_t 383 test/generator/metadata_tester_aottest.cpp make_scalar<uint16_t>(160), uint16_t 384 test/generator/metadata_tester_aottest.cpp make_scalar<uint16_t>(16), uint16_t 385 test/generator/metadata_tester_aottest.cpp make_scalar<uint16_t>(2550), uint16_t 21 test/generator/metadata_tester_generator.cpp Input<uint16_t> u16{ "u16", 160, 16, 2550 }; uint16_t 15 test/performance/block_transpose.cpp Buffer<uint16_t> test_transpose(int mode) { uint16_t 19 test/performance/block_transpose.cpp input(x, y) = cast<uint16_t>(x + y); uint16_t 52 test/performance/block_transpose.cpp Buffer<uint16_t> result(1024, 1024); uint16_t 67 test/performance/block_transpose.cpp Buffer<uint16_t> test_transpose_wrap(int mode) { uint16_t 71 test/performance/block_transpose.cpp input(x, y) = cast<uint16_t>(x + y); uint16_t 102 test/performance/block_transpose.cpp Buffer<uint16_t> result(1024, 1024); uint16_t 122 test/performance/block_transpose.cpp Buffer<uint16_t> im1 = test_transpose(vec_x_trans); uint16_t 123 test/performance/block_transpose.cpp Buffer<uint16_t> im2 = test_transpose_wrap(vec_x_trans); uint16_t 9 test/performance/clamped_vector_load.cpp Buffer<uint16_t> input; uint16_t 10 test/performance/clamped_vector_load.cpp Buffer<uint16_t> output; uint16_t 25 test/performance/clamped_vector_load.cpp uint16_t correct = input(ix1, y) * 3 + input(ix2, y); uint16_t 42 test/performance/clamped_vector_load.cpp input = Buffer<uint16_t>(1024+8, 320); uint16_t 50 test/performance/clamped_vector_load.cpp output = Buffer<uint16_t>(1024, 320); uint16_t 131 test/performance/clamped_vector_load.cpp input = Buffer<uint16_t>(); uint16_t 132 test/performance/clamped_vector_load.cpp output = Buffer<uint16_t>(); uint16_t 115 test/performance/const_division.cpp success = success && test<uint16_t>(1, i == 0); uint16_t 122 test/performance/const_division.cpp success = success && test<uint16_t>(16, i == 0); uint16_t 17 test/performance/vectorize.cpp DECL_SOT(uint16_t); uint16_t 103 test/performance/vectorize.cpp ok = ok && test<uint16_t>(8); uint16_t 48 tools/halide_image_io.h inline void convert(uint16_t in, uint8_t &out) {out = in >> 8;} uint16_t 57 tools/halide_image_io.h inline void convert(uint8_t in, uint16_t &out) {out = in << 8;} uint16_t 58 tools/halide_image_io.h inline void convert(uint16_t in, uint16_t &out) {out = in;} uint16_t 59 tools/halide_image_io.h inline void convert(uint32_t in, uint16_t &out) {out = in >> 16;} uint16_t 60 tools/halide_image_io.h inline void convert(int8_t in, uint16_t &out) {out = in << 8;} uint16_t 61 tools/halide_image_io.h inline void convert(int16_t in, uint16_t &out) {out = in;} uint16_t 62 tools/halide_image_io.h inline void convert(int32_t in, uint16_t &out) {out = in >> 16;} uint16_t 63 tools/halide_image_io.h inline void convert(float in, uint16_t &out) {out = (uint16_t)(in*65535.0f);} uint16_t 64 tools/halide_image_io.h inline void convert(double in, uint16_t &out) {out = (uint16_t)(in*65535.0f);} uint16_t 75 tools/halide_image_io.h inline void convert(uint16_t in, uint32_t &out) {out = in << 16;} uint16_t 76 tools/halide_image_io.h inline void convert(uint16_t in, int8_t &out) {out = in >> 8;} uint16_t 77 tools/halide_image_io.h inline void convert(uint16_t in, int16_t &out) {out = in;} uint16_t 78 tools/halide_image_io.h inline void convert(uint16_t in, int32_t &out) {out = in << 16;} uint16_t 79 tools/halide_image_io.h inline void convert(uint16_t in, float &out) {out = in/65535.0f;} uint16_t 80 tools/halide_image_io.h inline void convert(uint16_t in, double &out) {out = in/65535.0f;} uint16_t 96 tools/halide_image_io.h inline void swap_endian_16(bool little_endian, uint16_t &value) { uint16_t 224 tools/halide_image_io.h uint16_t hi = (*srcPtr++) << 8; uint16_t 225 tools/halide_image_io.h uint16_t lo = hi | (*srcPtr++); uint16_t 305 tools/halide_image_io.h uint16_t out; uint16_t 387 tools/halide_image_io.h std::vector<uint16_t> data(width*height); uint16_t 388 tools/halide_image_io.h if (!check(fread((void *) &data[0], sizeof(uint16_t), width*height, f.f) == (size_t) (width*height), "Could not read PGM 16-bit data\n")) return false; uint16_t 390 tools/halide_image_io.h uint16_t *p = &data[0]; uint16_t 393 tools/halide_image_io.h uint16_t value = *p++; uint16_t 431 tools/halide_image_io.h std::vector<uint16_t> data(width*height); uint16_t 432 tools/halide_image_io.h uint16_t *p = &data[0]; uint16_t 435 tools/halide_image_io.h uint16_t value; uint16_t 441 tools/halide_image_io.h if (!check(fwrite((void *) &data[0], sizeof(uint16_t), width*height, f.f) == (size_t) (width*height), "Could not write PGM 16-bit data\n")) return false; uint16_t 494 tools/halide_image_io.h std::vector<uint16_t> data(width*height*3); uint16_t 495 tools/halide_image_io.h if (!check(fread((void *) &data[0], sizeof(uint16_t), width*height*3, f.f) == (size_t) (width*height*3), "Could not read PPM 16-bit data\n")) return false; uint16_t 497 tools/halide_image_io.h uint16_t *row = &data[0]; uint16_t 500 tools/halide_image_io.h uint16_t value; uint16_t 556 tools/halide_image_io.h std::vector<uint16_t> data(width*height*3); uint16_t 557 tools/halide_image_io.h uint16_t *p = &data[0]; uint16_t 562 tools/halide_image_io.h uint16_t value0, value1, value2; uint16_t 578 tools/halide_image_io.h uint16_t value; uint16_t 586 tools/halide_image_io.h if (!check(fwrite((void *) &data[0], sizeof(uint16_t), width*height*3, f.f) == (size_t) (width*height*3), "Could not write PPM 16-bit data\n")) return false; uint16_t 38 tutorial/lesson_07_multi_stage_pipelines.cpp input_16(x, y, c) = cast<uint16_t>(input(x, y, c)); uint16_t 138 tutorial/lesson_07_multi_stage_pipelines.cpp input_16(x, y, c) = cast<uint16_t>(clamped(x, y, c)); uint16_t 54 tutorial/lesson_12_using_the_gpu.cpp padded16(x, y, c) = cast<uint16_t>(padded(x, y, c)); uint16_t 100 tutorial/lesson_14_types.cpp Expr u16 = cast<uint16_t>(x); uint16_t 179 tutorial/lesson_14_types.cpp uint16_t result16 = evaluate<uint16_t>(cast<uint16_t>(cast<int8_t>(-1))); uint16_t 67 util/HalideTraceViz.cpp return (T)(((const uint16_t *)value())[idx]);