1- /* auto-generated on 2023-02-24 17:01:43 -0500 . Do not edit! */
1+ /* auto-generated on 2023-03-30 20:31:03 -0400 . Do not edit! */
22// dofile: invoked with prepath=/Users/dlemire/CVS/github/simdutf/src, filename=simdutf.cpp
33/* begin file src/simdutf.cpp */
44#include "simdutf.h"
@@ -17218,7 +17218,7 @@ std::pair<const char32_t*, char*> avx512_convert_utf32_to_utf8(const char32_t* b
1721817218 __m256i running_max = _mm256_setzero_si256();
1721917219 __m256i forbidden_bytemask = _mm256_setzero_si256();
1722017220
17221- const size_t safety_margin = 11 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
17221+ const size_t safety_margin = 12 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
1722217222
1722317223 while (buf + 16 + safety_margin <= end) {
1722417224 __m256i in = _mm256_loadu_si256((__m256i*)buf);
@@ -17459,7 +17459,7 @@ std::pair<result, char*> avx512_convert_utf32_to_utf8_with_errors(const char32_t
1745917459 const __m256i v_7fffffff = _mm256_set1_epi32((uint32_t)0x7fffffff);
1746017460 const __m256i v_10ffff = _mm256_set1_epi32((uint32_t)0x10ffff);
1746117461
17462- const size_t safety_margin = 11 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
17462+ const size_t safety_margin = 12 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
1746317463
1746417464 while (buf + 16 + safety_margin <= end) {
1746517465 __m256i in = _mm256_loadu_si256((__m256i*)buf);
@@ -17697,7 +17697,7 @@ template <endianness big_endian>
1769717697std::pair<const char32_t*, char16_t*> avx512_convert_utf32_to_utf16(const char32_t* buf, size_t len, char16_t* utf16_output) {
1769817698 const char32_t* end = buf + len;
1769917699
17700- const size_t safety_margin = 11 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
17700+ const size_t safety_margin = 12 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
1770117701 __m256i forbidden_bytemask = _mm256_setzero_si256();
1770217702
1770317703
@@ -17764,7 +17764,7 @@ std::pair<result, char16_t*> avx512_convert_utf32_to_utf16_with_errors(const cha
1776417764 const char32_t* start = buf;
1776517765 const char32_t* end = buf + len;
1776617766
17767- const size_t safety_margin = 11 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
17767+ const size_t safety_margin = 12 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
1776817768
1776917769 while (buf + 8 + safety_margin <= end) {
1777017770 __m256i in = _mm256_loadu_si256((__m256i*)buf);
@@ -20064,7 +20064,7 @@ std::pair<const char16_t*, char*> avx2_convert_utf16_to_utf8(const char16_t* buf
2006420064 const __m256i v_f800 = _mm256_set1_epi16((int16_t)0xf800);
2006520065 const __m256i v_d800 = _mm256_set1_epi16((int16_t)0xd800);
2006620066 const __m256i v_c080 = _mm256_set1_epi16((int16_t)0xc080);
20067- const size_t safety_margin = 11 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
20067+ const size_t safety_margin = 12 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
2006820068
2006920069 while (buf + 16 + safety_margin <= end) {
2007020070 __m256i in = _mm256_loadu_si256((__m256i*)buf);
@@ -20307,7 +20307,7 @@ std::pair<result, char*> avx2_convert_utf16_to_utf8_with_errors(const char16_t*
2030720307 const __m256i v_f800 = _mm256_set1_epi16((int16_t)0xf800);
2030820308 const __m256i v_d800 = _mm256_set1_epi16((int16_t)0xd800);
2030920309 const __m256i v_c080 = _mm256_set1_epi16((int16_t)0xc080);
20310- const size_t safety_margin = 11 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
20310+ const size_t safety_margin = 12 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
2031120311
2031220312 while (buf + 16 + safety_margin <= end) {
2031320313 __m256i in = _mm256_loadu_si256((__m256i*)buf);
@@ -20732,7 +20732,7 @@ std::pair<const char32_t*, char*> avx2_convert_utf32_to_utf8(const char32_t* buf
2073220732 __m256i running_max = _mm256_setzero_si256();
2073320733 __m256i forbidden_bytemask = _mm256_setzero_si256();
2073420734
20735- const size_t safety_margin = 11 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
20735+ const size_t safety_margin = 12 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
2073620736
2073720737 while (buf + 16 + safety_margin <= end) {
2073820738 __m256i in = _mm256_loadu_si256((__m256i*)buf);
@@ -20973,7 +20973,7 @@ std::pair<result, char*> avx2_convert_utf32_to_utf8_with_errors(const char32_t*
2097320973 const __m256i v_7fffffff = _mm256_set1_epi32((uint32_t)0x7fffffff);
2097420974 const __m256i v_10ffff = _mm256_set1_epi32((uint32_t)0x10ffff);
2097520975
20976- const size_t safety_margin = 11 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
20976+ const size_t safety_margin = 12 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
2097720977
2097820978 while (buf + 16 + safety_margin <= end) {
2097920979 __m256i in = _mm256_loadu_si256((__m256i*)buf);
@@ -21208,7 +21208,7 @@ template <endianness big_endian>
2120821208std::pair<const char32_t*, char16_t*> avx2_convert_utf32_to_utf16(const char32_t* buf, size_t len, char16_t* utf16_output) {
2120921209 const char32_t* end = buf + len;
2121021210
21211- const size_t safety_margin = 11 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
21211+ const size_t safety_margin = 12 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
2121221212 __m256i forbidden_bytemask = _mm256_setzero_si256();
2121321213
2121421214
@@ -21275,7 +21275,7 @@ std::pair<result, char16_t*> avx2_convert_utf32_to_utf16_with_errors(const char3
2127521275 const char32_t* start = buf;
2127621276 const char32_t* end = buf + len;
2127721277
21278- const size_t safety_margin = 11 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
21278+ const size_t safety_margin = 12 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
2127921279
2128021280 while (buf + 8 + safety_margin <= end) {
2128121281 __m256i in = _mm256_loadu_si256((__m256i*)buf);
@@ -25394,7 +25394,7 @@ std::pair<const char16_t*, char*> sse_convert_utf16_to_utf8(const char16_t* buf,
2539425394 const __m128i v_f800 = _mm_set1_epi16((int16_t)0xf800);
2539525395 const __m128i v_d800 = _mm_set1_epi16((int16_t)0xd800);
2539625396 const __m128i v_c080 = _mm_set1_epi16((int16_t)0xc080);
25397- const size_t safety_margin = 11 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
25397+ const size_t safety_margin = 12 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
2539825398
2539925399 while (buf + 16 + safety_margin <= end) {
2540025400 __m128i in = _mm_loadu_si128((__m128i*)buf);
@@ -25634,7 +25634,7 @@ std::pair<result, char*> sse_convert_utf16_to_utf8_with_errors(const char16_t* b
2563425634 const __m128i v_f800 = _mm_set1_epi16((int16_t)0xf800);
2563525635 const __m128i v_d800 = _mm_set1_epi16((int16_t)0xd800);
2563625636 const __m128i v_c080 = _mm_set1_epi16((int16_t)0xc080);
25637- const size_t safety_margin = 11 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
25637+ const size_t safety_margin = 12 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
2563825638
2563925639 while (buf + 16 + safety_margin <= end) {
2564025640 __m128i in = _mm_loadu_si128((__m128i*)buf);
@@ -26056,7 +26056,7 @@ std::pair<const char32_t*, char*> sse_convert_utf32_to_utf8(const char32_t* buf,
2605626056 const __m128i v_7fffffff = _mm_set1_epi32((uint32_t)0x7fffffff);
2605726057 __m128i running_max = _mm_setzero_si128();
2605826058 __m128i forbidden_bytemask = _mm_setzero_si128();
26059- const size_t safety_margin = 11 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
26059+ const size_t safety_margin = 12 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
2606026060
2606126061 while (buf + 16 + safety_margin <= end) {
2606226062 __m128i in = _mm_loadu_si128((__m128i*)buf);
@@ -26297,7 +26297,7 @@ std::pair<result, char*> sse_convert_utf32_to_utf8_with_errors(const char32_t* b
2629726297 const __m128i v_7fffffff = _mm_set1_epi32((uint32_t)0x7fffffff);
2629826298 const __m128i v_10ffff = _mm_set1_epi32((uint32_t)0x10ffff);
2629926299
26300- const size_t safety_margin = 11 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
26300+ const size_t safety_margin = 12 ; // to avoid overruns, see issue https://github.com/simdutf/simdutf/issues/92
2630126301
2630226302 while (buf + 16 + safety_margin <= end) {
2630326303 __m128i in = _mm_loadu_si128((__m128i*)buf);
0 commit comments