Lines Matching defs:output

125   void change_endianness_utf16(const char16_t * buf, size_t length, char16_t * output) const noexcept final;
1325 void change_endianness_utf16(const char16_t * buf, size_t length, char16_t * output) const noexcept final;
1532 void change_endianness_utf16(const char16_t * buf, size_t length, char16_t * output) const noexcept final;
2463 void change_endianness_utf16(const char16_t * buf, size_t length, char16_t * output) const noexcept final;
3388 void change_endianness_utf16(const char16_t * buf, size_t length, char16_t * output) const noexcept final;
4061 void change_endianness_utf16(const char16_t * buf, size_t length, char16_t * output) const noexcept final;
4431 uint16_t * output = reinterpret_cast<uint16_t *>(out);
4433 *output++ = uint16_t(input[i] >> 8 | input[i] << 8);
4768 void change_endianness_utf16(const char16_t * buf, size_t len, char16_t * output) const noexcept final override {
4769 set_best()->change_endianness_utf16(buf, len, output);
5528 void change_endianness_utf16(const char16_t * input, size_t length, char16_t * output) noexcept {
5529 get_active_implementation()->change_endianness_utf16(input, length, output);
13110 // expected output : [1100|00aa|10bb|bbbb] x 8
13783 and the number of output bytes in the compressed vector register.
13801 and the number of output bytes in the compressed vector register.
13854 // expected output : [110a|aaaa|10bb|bbbb] x 8
14108 // expected output : [110a|aaaa|10bb|bbbb] x 8
14335 and the number of output bytes in the compressed vector register.
14353 and the number of output bytes in the compressed vector register.
14563 // expected output : [110a|aaaa|10bb|bbbb] x 8
14796 // expected output : [110a|aaaa|10bb|bbbb] x 8
16337 simdutf_really_inline void change_endianness_utf16(const char16_t* in, size_t size, char16_t* output) {
16343 input.store(reinterpret_cast<uint16_t *>(output));
16345 output += 32;
16348 scalar::utf16::change_endianness_utf16(in + pos, size - pos, output);
17291 void implementation::change_endianness_utf16(const char16_t * input, size_t length, char16_t * output) const noexcept {
17292 utf16::change_endianness_utf16(input, length, output);
17687 void implementation::change_endianness_utf16(const char16_t * input, size_t length, char16_t * output) const noexcept {
17688 scalar::utf16::change_endianness_utf16(input, length, output);
17941 __mmask64 mprocessed = (tail == SIMDUTF_FULL) ? _pdep_u64(0xFFFFFFFF, mend) : _pdep_u64(0xFFFFFFFF, _kand_mask64(mend, b)); // we adjust mend at the end of the output.
18014 __mmask64 mprocessed = (tail == SIMDUTF_FULL) ? _pdep_u64(Mout, mend) : _pdep_u64(Mout, _kand_mask64(mend, b)); // we adjust mend at the end of the output.
18127 simdutf_really_inline size_t utf32_to_utf16_masked(const __m512i byteflip, __m512i utf32, unsigned int count, char16_t* output) {
18136 _mm256_mask_storeu_epi16((__m256i*)output, valid, _mm256_shuffle_epi8(_mm512_cvtepi32_epi16(utf32), _mm512_castsi512_si256(byteflip)));
18139 _mm256_mask_storeu_epi16((__m256i*)output, valid, _mm512_cvtepi32_epi16(utf32));
18174 _mm512_mask_storeu_epi16(output, (1<<(count + static_cast<unsigned int>(count_ones(sp_mask)))) - 1, compressed);
18175 //_mm512_mask_compressstoreu_epi16(output, nonzero_masked, t5);
18202 simdutf_really_inline size_t utf32_to_utf16(const __m512i byteflip, __m512i utf32, unsigned int count, char16_t* output) {
18210 _mm256_storeu_si256((__m256i*)output, _mm256_shuffle_epi8(_mm512_cvtepi32_epi16(utf32),_mm512_castsi512_si256(byteflip)));
18212 _mm256_storeu_si256((__m256i*)output, _mm512_cvtepi32_epi16(utf32));
18243 _mm512_mask_storeu_epi16(output, (1<<(count + static_cast<unsigned int>(count_ones(sp_mask)))) - 1, compressed);
18244 //_mm512_mask_compressstoreu_epi16(output, nonzero, t5);
18533 _mm512_mask_storeu_epi32((__m512i*)output, valid, out); \
18535 _mm512_storeu_si512((__m512i*)output, out); \
18537 output += valid_count; \
18540 output += utf32_to_utf16_masked<big_endian>(byteflip, out, valid_count, reinterpret_cast<char16_t *>(output)); \
18542 output += utf32_to_utf16<big_endian>(byteflip, out, valid_count, reinterpret_cast<char16_t *>(output)); \
18552 _mm512_mask_storeu_epi32((__m512i*)output, valid_mask, INPUT); \
18554 _mm512_storeu_si512((__m512i*)output, INPUT); \
18556 output += VALID_COUNT; \
18559 output += utf32_to_utf16_masked<big_endian>(byteflip, INPUT, VALID_COUNT, reinterpret_cast<char16_t *>(output)); \
18561 output += utf32_to_utf16<big_endian>(byteflip, INPUT, VALID_COUNT, reinterpret_cast<char16_t *>(output)); \
18567 #define SIMDUTF_ICELAKE_STORE_ASCII(UTF32, utf8, output) \
18573 _mm512_storeu_si512((__m512i*)(output + 0*16), _mm512_cvtepu8_epi32(t0)); \
18574 _mm512_storeu_si512((__m512i*)(output + 1*16), _mm512_cvtepu8_epi32(t1)); \
18575 _mm512_storeu_si512((__m512i*)(output + 2*16), _mm512_cvtepu8_epi32(t2)); \
18576 _mm512_storeu_si512((__m512i*)(output + 3*16), _mm512_cvtepu8_epi32(t3)); \
18581 _mm512_storeu_si512((__m512i*)(output + 0*16), _mm512_shuffle_epi8(_mm512_cvtepu8_epi16(h0), byteflip)); \
18582 _mm512_storeu_si512((__m512i*)(output + 2*16), _mm512_shuffle_epi8(_mm512_cvtepu8_epi16(h1), byteflip)); \
18584 _mm512_storeu_si512((__m512i*)(output + 0*16), _mm512_cvtepu8_epi16(h0)); \
18585 _mm512_storeu_si512((__m512i*)(output + 2*16), _mm512_cvtepu8_epi16(h1)); \
18603 - out_buffer - output buffer
18607 - pair.second - the first unprocessed output word
18613 static_assert(UTF32 or UTF16, "output type has to be uint32_t (for UTF-32) or char16_t (for UTF-16)");
18629 OUTPUT* output = dwords;
18641 SIMDUTF_ICELAKE_STORE_ASCII(UTF32, utf8, output)
18642 output += 64;
18692 SIMDUTF_ICELAKE_STORE_ASCII(UTF32, utf8, output)
18693 output += 64;
18721 return {ptr, output};
18864 * Returns the position of the input and output after the processing is
18865 * completed. Upon error, the output is set to null.
18912 static_assert(UTF32 or UTF16, "output type has to be uint32_t (for UTF-32) or char16_t (for UTF-16)");
18927 OUTPUT* output = dwords;
18938 SIMDUTF_ICELAKE_STORE_ASCII(UTF32, utf8, output)
18939 output += 64;
18989 SIMDUTF_ICELAKE_STORE_ASCII(UTF32, utf8, output)
18990 output += 64;
19027 return {ptr, output};
19035 static_assert(UTF32 or UTF16, "output type has to be uint32_t (for UTF-32) or char16_t (for UTF-16)");
19050 OUTPUT* output = dwords;
19061 SIMDUTF_ICELAKE_STORE_ASCII(UTF32, utf8, output)
19062 output += 64;
19067 return {ptr, output, false}; // We found an error.
19115 SIMDUTF_ICELAKE_STORE_ASCII(UTF32, utf8, output)
19116 output += 64;
19119 return {ptr, output, false}; // We found an error.
19153 return {ptr, output, false}; // We found an error.
19155 return {ptr, output, true};
19205 __m512i output = _mm512_maskz_compress_epi8(retain, input);
19213 // _mm512_mask_storeu_epi8((__m512i *)latin_output, store_mask, output) :
19214 // _mm512_storeu_si512((__m512i *)latin_output, output); I tried using
19219 _mm512_mask_storeu_epi8((__m512i *)latin_output, store_mask, output);
19291 __m512i output = _mm512_maskz_compress_epi8(retain, input);
19295 _mm512_mask_storeu_epi8((__m512i *)latin_output, store_mask, output);
19863 // expected output : [110a|aaaa|10bb|bbbb] x 8
20108 // expected output : [110a|aaaa|10bb|bbbb] x 8
20570 // if there's at least 128 bytes remaining, we don't need to mask the output
20575 // in the last 128 bytes, the first 64 may require masking the output
21127 // Initialize output length and input length counters
21140 // the input buffer, length, and output buffer, and returns a result object with an error code
21616 void implementation::change_endianness_utf16(const char16_t * input, size_t length, char16_t * output) const noexcept {
21631 _mm512_storeu_si512(output + pos, utf16);
21638 _mm512_mask_storeu_epi16(output + pos, m, utf16);
22517 // expected output : [1100|00aa|10bb|bbbb] x 8
22598 // Store the contents of xmm1 into the address pointed by (output + i)
22601 // Store the contents of xmm0 into the address pointed by (output + i + 8)
23051 and the number of output bytes in the compressed vector register.
23069 and the number of output bytes in the compressed vector register.
23121 // expected output : [110a|aaaa|10bb|bbbb] x 8
23364 // expected output : [110a|aaaa|10bb|bbbb] x 8
23583 and the number of output bytes in the compressed vector register.
23601 and the number of output bytes in the compressed vector register.
23882 // expected output : [110a|aaaa|10bb|bbbb] x 8
24127 // expected output : [110a|aaaa|10bb|bbbb] x 8
25748 simdutf_really_inline void change_endianness_utf16(const char16_t* in, size_t size, char16_t* output) {
25754 input.store(reinterpret_cast<uint16_t *>(output));
25756 output += 32;
25759 scalar::utf16::change_endianness_utf16(in + pos, size - pos, output);
26695 void implementation::change_endianness_utf16(const char16_t * input, size_t length, char16_t * output) const noexcept {
26696 utf16::change_endianness_utf16(input, length, output);
28120 simdutf_really_inline void change_endianness_utf16(const char16_t* in, size_t size, char16_t* output) {
28126 input.store(reinterpret_cast<uint16_t *>(output));
28128 output += 32;
28131 scalar::utf16::change_endianness_utf16(in + pos, size - pos, output);
28322 void implementation::change_endianness_utf16(const char16_t * input, size_t length, char16_t * output) const noexcept {
28323 scalar::utf16::change_endianness_utf16(input, length, output);
28443 // expected output : [110a|aaaa|10bb|bbbb] x 8
29005 // by reserving 8 extra input bytes, we expect the output to have 8-16 bytes free
29562 and the number of output bytes in the compressed vector register.
29580 and the number of output bytes in the compressed vector register.
30017 and the number of output bytes in the compressed vector register.
30035 and the number of output bytes in the compressed vector register.
30305 _mm_storeu_si128((__m128i*)utf8_output, utf8_packed); //put them into the output
30308 utf8_output += 8; //same with output, e.g. lift the first two blocks alone.
30342 // expected output : [110a|aaaa|10bb|bbbb] x 8
30598 // expected output : [110a|aaaa|10bb|bbbb] x 8
32127 simdutf_really_inline void change_endianness_utf16(const char16_t* in, size_t size, char16_t* output) {
32133 input.store(reinterpret_cast<uint16_t *>(output));
32135 output += 32;
32138 scalar::utf16::change_endianness_utf16(in + pos, size - pos, output);
33084 void implementation::change_endianness_utf16(const char16_t * input, size_t length, char16_t * output) const noexcept {
33085 utf16::change_endianness_utf16(input, length, output);