|
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! */ |
2 | 2 | // dofile: invoked with prepath=/Users/dlemire/CVS/github/simdutf/src, filename=simdutf.cpp
|
3 | 3 | /* begin file src/simdutf.cpp */
|
4 | 4 | #include "simdutf.h"
|
@@ -17218,7 +17218,7 @@ std::pair<const char32_t*, char*> avx512_convert_utf32_to_utf8(const char32_t* b
|
17218 | 17218 | __m256i running_max = _mm256_setzero_si256();
|
17219 | 17219 | __m256i forbidden_bytemask = _mm256_setzero_si256();
|
17220 | 17220 |
|
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 |
17222 | 17222 |
|
17223 | 17223 | while (buf + 16 + safety_margin <= end) {
|
17224 | 17224 | __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
|
17459 | 17459 | const __m256i v_7fffffff = _mm256_set1_epi32((uint32_t)0x7fffffff);
|
17460 | 17460 | const __m256i v_10ffff = _mm256_set1_epi32((uint32_t)0x10ffff);
|
17461 | 17461 |
|
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 |
17463 | 17463 |
|
17464 | 17464 | while (buf + 16 + safety_margin <= end) {
|
17465 | 17465 | __m256i in = _mm256_loadu_si256((__m256i*)buf);
|
@@ -17697,7 +17697,7 @@ template <endianness big_endian>
|
17697 | 17697 | std::pair<const char32_t*, char16_t*> avx512_convert_utf32_to_utf16(const char32_t* buf, size_t len, char16_t* utf16_output) {
|
17698 | 17698 | const char32_t* end = buf + len;
|
17699 | 17699 |
|
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 |
17701 | 17701 | __m256i forbidden_bytemask = _mm256_setzero_si256();
|
17702 | 17702 |
|
17703 | 17703 |
|
@@ -17764,7 +17764,7 @@ std::pair<result, char16_t*> avx512_convert_utf32_to_utf16_with_errors(const cha
|
17764 | 17764 | const char32_t* start = buf;
|
17765 | 17765 | const char32_t* end = buf + len;
|
17766 | 17766 |
|
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 |
17768 | 17768 |
|
17769 | 17769 | while (buf + 8 + safety_margin <= end) {
|
17770 | 17770 | __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
|
20064 | 20064 | const __m256i v_f800 = _mm256_set1_epi16((int16_t)0xf800);
|
20065 | 20065 | const __m256i v_d800 = _mm256_set1_epi16((int16_t)0xd800);
|
20066 | 20066 | 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 |
20068 | 20068 |
|
20069 | 20069 | while (buf + 16 + safety_margin <= end) {
|
20070 | 20070 | __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*
|
20307 | 20307 | const __m256i v_f800 = _mm256_set1_epi16((int16_t)0xf800);
|
20308 | 20308 | const __m256i v_d800 = _mm256_set1_epi16((int16_t)0xd800);
|
20309 | 20309 | 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 |
20311 | 20311 |
|
20312 | 20312 | while (buf + 16 + safety_margin <= end) {
|
20313 | 20313 | __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
|
20732 | 20732 | __m256i running_max = _mm256_setzero_si256();
|
20733 | 20733 | __m256i forbidden_bytemask = _mm256_setzero_si256();
|
20734 | 20734 |
|
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 |
20736 | 20736 |
|
20737 | 20737 | while (buf + 16 + safety_margin <= end) {
|
20738 | 20738 | __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*
|
20973 | 20973 | const __m256i v_7fffffff = _mm256_set1_epi32((uint32_t)0x7fffffff);
|
20974 | 20974 | const __m256i v_10ffff = _mm256_set1_epi32((uint32_t)0x10ffff);
|
20975 | 20975 |
|
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 |
20977 | 20977 |
|
20978 | 20978 | while (buf + 16 + safety_margin <= end) {
|
20979 | 20979 | __m256i in = _mm256_loadu_si256((__m256i*)buf);
|
@@ -21208,7 +21208,7 @@ template <endianness big_endian>
|
21208 | 21208 | std::pair<const char32_t*, char16_t*> avx2_convert_utf32_to_utf16(const char32_t* buf, size_t len, char16_t* utf16_output) {
|
21209 | 21209 | const char32_t* end = buf + len;
|
21210 | 21210 |
|
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 |
21212 | 21212 | __m256i forbidden_bytemask = _mm256_setzero_si256();
|
21213 | 21213 |
|
21214 | 21214 |
|
@@ -21275,7 +21275,7 @@ std::pair<result, char16_t*> avx2_convert_utf32_to_utf16_with_errors(const char3
|
21275 | 21275 | const char32_t* start = buf;
|
21276 | 21276 | const char32_t* end = buf + len;
|
21277 | 21277 |
|
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 |
21279 | 21279 |
|
21280 | 21280 | while (buf + 8 + safety_margin <= end) {
|
21281 | 21281 | __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,
|
25394 | 25394 | const __m128i v_f800 = _mm_set1_epi16((int16_t)0xf800);
|
25395 | 25395 | const __m128i v_d800 = _mm_set1_epi16((int16_t)0xd800);
|
25396 | 25396 | 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 |
25398 | 25398 |
|
25399 | 25399 | while (buf + 16 + safety_margin <= end) {
|
25400 | 25400 | __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
|
25634 | 25634 | const __m128i v_f800 = _mm_set1_epi16((int16_t)0xf800);
|
25635 | 25635 | const __m128i v_d800 = _mm_set1_epi16((int16_t)0xd800);
|
25636 | 25636 | 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 |
25638 | 25638 |
|
25639 | 25639 | while (buf + 16 + safety_margin <= end) {
|
25640 | 25640 | __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,
|
26056 | 26056 | const __m128i v_7fffffff = _mm_set1_epi32((uint32_t)0x7fffffff);
|
26057 | 26057 | __m128i running_max = _mm_setzero_si128();
|
26058 | 26058 | __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 |
26060 | 26060 |
|
26061 | 26061 | while (buf + 16 + safety_margin <= end) {
|
26062 | 26062 | __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
|
26297 | 26297 | const __m128i v_7fffffff = _mm_set1_epi32((uint32_t)0x7fffffff);
|
26298 | 26298 | const __m128i v_10ffff = _mm_set1_epi32((uint32_t)0x10ffff);
|
26299 | 26299 |
|
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 |
26301 | 26301 |
|
26302 | 26302 | while (buf + 16 + safety_margin <= end) {
|
26303 | 26303 | __m128i in = _mm_loadu_si128((__m128i*)buf);
|
|
0 commit comments