mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
deps: update simdutf to 5.6.2
PR-URL: https://github.com/nodejs/node/pull/55889 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
parent
64c647e342
commit
d1830685b4
34
deps/simdutf/simdutf.cpp
vendored
34
deps/simdutf/simdutf.cpp
vendored
@ -1,4 +1,4 @@
|
|||||||
/* auto-generated on 2024-11-12 20:00:19 -0500. Do not edit! */
|
/* auto-generated on 2024-11-14 14:52:31 -0500. Do not edit! */
|
||||||
/* begin file src/simdutf.cpp */
|
/* begin file src/simdutf.cpp */
|
||||||
#include "simdutf.h"
|
#include "simdutf.h"
|
||||||
// We include base64_tables once.
|
// We include base64_tables once.
|
||||||
@ -7229,6 +7229,11 @@ template <class char_type> bool is_ascii_white_space(char_type c) {
|
|||||||
return c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '\f';
|
return c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '\f';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <class char_type> bool is_ascii_white_space_or_padding(char_type c) {
|
||||||
|
return c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '\f' ||
|
||||||
|
c == '=';
|
||||||
|
}
|
||||||
|
|
||||||
template <class char_type> bool is_eight_byte(char_type c) {
|
template <class char_type> bool is_eight_byte(char_type c) {
|
||||||
if (sizeof(char_type) == 1) {
|
if (sizeof(char_type) == 1) {
|
||||||
return true;
|
return true;
|
||||||
@ -9491,6 +9496,21 @@ simdutf_warn_unused result base64_to_binary_safe_impl(
|
|||||||
if (r.error != error_code::INVALID_BASE64_CHARACTER &&
|
if (r.error != error_code::INVALID_BASE64_CHARACTER &&
|
||||||
r.error != error_code::BASE64_EXTRA_BITS) {
|
r.error != error_code::BASE64_EXTRA_BITS) {
|
||||||
outlen = r.output_count;
|
outlen = r.output_count;
|
||||||
|
if (last_chunk_handling_options == stop_before_partial) {
|
||||||
|
if ((r.output_count % 3) != 0) {
|
||||||
|
bool empty_trail = true;
|
||||||
|
for (size_t i = r.input_count; i < length; i++) {
|
||||||
|
if (!scalar::base64::is_ascii_white_space_or_padding(input[i])) {
|
||||||
|
empty_trail = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (empty_trail) {
|
||||||
|
r.input_count = length;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return {r.error, r.input_count};
|
||||||
|
}
|
||||||
return {r.error, length};
|
return {r.error, length};
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
@ -9557,7 +9577,11 @@ simdutf_warn_unused result base64_to_binary_safe_impl(
|
|||||||
}
|
}
|
||||||
if (rr.error == error_code::SUCCESS &&
|
if (rr.error == error_code::SUCCESS &&
|
||||||
last_chunk_handling_options == stop_before_partial) {
|
last_chunk_handling_options == stop_before_partial) {
|
||||||
|
if (tail_input > input + input_index) {
|
||||||
rr.count = tail_input - input;
|
rr.count = tail_input - input;
|
||||||
|
} else if (r.input_count > 0) {
|
||||||
|
rr.count = r.input_count + rr.count;
|
||||||
|
}
|
||||||
return rr;
|
return rr;
|
||||||
}
|
}
|
||||||
rr.count += input_index;
|
rr.count += input_index;
|
||||||
@ -15891,9 +15915,9 @@ compress_decode_base64(char *dst, const char_type *src, size_t srclen,
|
|||||||
if (src < srcend + equalsigns) {
|
if (src < srcend + equalsigns) {
|
||||||
full_result r = scalar::base64::base64_tail_decode(
|
full_result r = scalar::base64::base64_tail_decode(
|
||||||
dst, src, srcend - src, equalsigns, options, last_chunk_options);
|
dst, src, srcend - src, equalsigns, options, last_chunk_options);
|
||||||
|
r.input_count += size_t(src - srcinit);
|
||||||
if (r.error == error_code::INVALID_BASE64_CHARACTER ||
|
if (r.error == error_code::INVALID_BASE64_CHARACTER ||
|
||||||
r.error == error_code::BASE64_EXTRA_BITS) {
|
r.error == error_code::BASE64_EXTRA_BITS) {
|
||||||
r.input_count += size_t(src - srcinit);
|
|
||||||
return r;
|
return r;
|
||||||
} else {
|
} else {
|
||||||
r.output_count += size_t(dst - dstinit);
|
r.output_count += size_t(dst - dstinit);
|
||||||
@ -23716,9 +23740,9 @@ compress_decode_base64(char *dst, const chartype *src, size_t srclen,
|
|||||||
if (src < srcend + equalsigns) {
|
if (src < srcend + equalsigns) {
|
||||||
full_result r = scalar::base64::base64_tail_decode(
|
full_result r = scalar::base64::base64_tail_decode(
|
||||||
dst, src, srcend - src, equalsigns, options, last_chunk_options);
|
dst, src, srcend - src, equalsigns, options, last_chunk_options);
|
||||||
|
r.input_count += size_t(src - srcinit);
|
||||||
if (r.error == error_code::INVALID_BASE64_CHARACTER ||
|
if (r.error == error_code::INVALID_BASE64_CHARACTER ||
|
||||||
r.error == error_code::BASE64_EXTRA_BITS) {
|
r.error == error_code::BASE64_EXTRA_BITS) {
|
||||||
r.input_count += size_t(src - srcinit);
|
|
||||||
return r;
|
return r;
|
||||||
} else {
|
} else {
|
||||||
r.output_count += size_t(dst - dstinit);
|
r.output_count += size_t(dst - dstinit);
|
||||||
@ -28552,9 +28576,9 @@ compress_decode_base64(char *dst, const chartype *src, size_t srclen,
|
|||||||
if (src < srcend + equalsigns) {
|
if (src < srcend + equalsigns) {
|
||||||
full_result r = scalar::base64::base64_tail_decode(
|
full_result r = scalar::base64::base64_tail_decode(
|
||||||
dst, src, srcend - src, equalsigns, options, last_chunk_options);
|
dst, src, srcend - src, equalsigns, options, last_chunk_options);
|
||||||
|
r.input_count += size_t(src - srcinit);
|
||||||
if (r.error == error_code::INVALID_BASE64_CHARACTER ||
|
if (r.error == error_code::INVALID_BASE64_CHARACTER ||
|
||||||
r.error == error_code::BASE64_EXTRA_BITS) {
|
r.error == error_code::BASE64_EXTRA_BITS) {
|
||||||
r.input_count += size_t(src - srcinit);
|
|
||||||
return r;
|
return r;
|
||||||
} else {
|
} else {
|
||||||
r.output_count += size_t(dst - dstinit);
|
r.output_count += size_t(dst - dstinit);
|
||||||
@ -38307,9 +38331,9 @@ compress_decode_base64(char *dst, const chartype *src, size_t srclen,
|
|||||||
if (src < srcend + equalsigns) {
|
if (src < srcend + equalsigns) {
|
||||||
full_result r = scalar::base64::base64_tail_decode(
|
full_result r = scalar::base64::base64_tail_decode(
|
||||||
dst, src, srcend - src, equalsigns, options, last_chunk_options);
|
dst, src, srcend - src, equalsigns, options, last_chunk_options);
|
||||||
|
r.input_count += size_t(src - srcinit);
|
||||||
if (r.error == error_code::INVALID_BASE64_CHARACTER ||
|
if (r.error == error_code::INVALID_BASE64_CHARACTER ||
|
||||||
r.error == error_code::BASE64_EXTRA_BITS) {
|
r.error == error_code::BASE64_EXTRA_BITS) {
|
||||||
r.input_count += size_t(src - srcinit);
|
|
||||||
return r;
|
return r;
|
||||||
} else {
|
} else {
|
||||||
r.output_count += size_t(dst - dstinit);
|
r.output_count += size_t(dst - dstinit);
|
||||||
|
6
deps/simdutf/simdutf.h
vendored
6
deps/simdutf/simdutf.h
vendored
@ -1,4 +1,4 @@
|
|||||||
/* auto-generated on 2024-11-12 20:00:19 -0500. Do not edit! */
|
/* auto-generated on 2024-11-14 14:52:31 -0500. Do not edit! */
|
||||||
/* begin file include/simdutf.h */
|
/* begin file include/simdutf.h */
|
||||||
#ifndef SIMDUTF_H
|
#ifndef SIMDUTF_H
|
||||||
#define SIMDUTF_H
|
#define SIMDUTF_H
|
||||||
@ -670,7 +670,7 @@ SIMDUTF_DISABLE_UNDESIRED_WARNINGS
|
|||||||
#define SIMDUTF_SIMDUTF_VERSION_H
|
#define SIMDUTF_SIMDUTF_VERSION_H
|
||||||
|
|
||||||
/** The version of simdutf being used (major.minor.revision) */
|
/** The version of simdutf being used (major.minor.revision) */
|
||||||
#define SIMDUTF_VERSION "5.6.1"
|
#define SIMDUTF_VERSION "5.6.2"
|
||||||
|
|
||||||
namespace simdutf {
|
namespace simdutf {
|
||||||
enum {
|
enum {
|
||||||
@ -685,7 +685,7 @@ enum {
|
|||||||
/**
|
/**
|
||||||
* The revision (major.minor.REVISION) of simdutf being used.
|
* The revision (major.minor.REVISION) of simdutf being used.
|
||||||
*/
|
*/
|
||||||
SIMDUTF_VERSION_REVISION = 1
|
SIMDUTF_VERSION_REVISION = 2
|
||||||
};
|
};
|
||||||
} // namespace simdutf
|
} // namespace simdutf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user