/src/simdutf/src/haswell/avx2_validate_utf16.cpp
Line | Count | Source |
1 | | template <endianness big_endian> |
2 | | simd8<uint8_t> utf16_gather_high_bytes(const simd16<uint16_t> &in0, |
3 | 0 | const simd16<uint16_t> &in1) { |
4 | 0 | if (big_endian) { |
5 | | // we want lower bytes |
6 | 0 | const auto mask = simd16<uint16_t>(0x00ff); |
7 | 0 | const auto t0 = in0 & mask; |
8 | 0 | const auto t1 = in1 & mask; |
9 | |
|
10 | 0 | return simd16<uint16_t>::pack(t0, t1); |
11 | 0 | } else { |
12 | 0 | const auto t0 = in0.shr<8>(); |
13 | 0 | const auto t1 = in1.shr<8>(); |
14 | |
|
15 | 0 | return simd16<uint16_t>::pack(t0, t1); |
16 | 0 | } |
17 | 0 | } Unexecuted instantiation: simdutf.cpp:simdutf::haswell::(anonymous namespace)::simd::simd8<unsigned char> simdutf::haswell::(anonymous namespace)::utf16::utf16_gather_high_bytes<(simdutf::endianness)0>(simdutf::haswell::(anonymous namespace)::simd::simd16<unsigned short> const&, simdutf::haswell::(anonymous namespace)::simd::simd16<unsigned short> const&) Unexecuted instantiation: simdutf.cpp:simdutf::haswell::(anonymous namespace)::simd::simd8<unsigned char> simdutf::haswell::(anonymous namespace)::utf16::utf16_gather_high_bytes<(simdutf::endianness)1>(simdutf::haswell::(anonymous namespace)::simd::simd16<unsigned short> const&, simdutf::haswell::(anonymous namespace)::simd::simd16<unsigned short> const&) |