Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fc568b4

Browse filesBrowse files
nodejs-github-bottargos
authored andcommitted
deps: update simdutf to 5.2.8
PR-URL: #52727 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent e399360 commit fc568b4
Copy full SHA for fc568b4

File tree

Expand file treeCollapse file tree

2 files changed

+29
-29
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+29
-29
lines changed
Open diff view settings
Collapse file

‎deps/simdutf/simdutf.cpp‎

Copy file name to clipboardExpand all lines: deps/simdutf/simdutf.cpp
+13-13Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on 2024-04-24 01:28:18 -0400. Do not edit! */
1+
/* auto-generated on 2024-05-07 22:33:11 -0400. Do not edit! */
22
/* begin file src/simdutf.cpp */
33
#include "simdutf.h"
44
// We include base64_tables once.
@@ -1031,9 +1031,9 @@ namespace {
10311031
return vget_lane_u64(vreinterpret_u64_u8(vshrn_n_u16(vreinterpretq_u16_u8(*this), 4)), 0);
10321032
}
10331033

1034-
simdutf_really_inline bool any() const { return vmaxvq_u8(*this) != 0; }
1035-
simdutf_really_inline bool none() const { return vmaxvq_u8(*this) == 0; }
1036-
simdutf_really_inline bool all() const { return vminvq_u8(*this) == 0xFF; }
1034+
simdutf_really_inline bool any() const { return vmaxvq_u32(vreinterpretq_u32_u8(*this)) != 0; }
1035+
simdutf_really_inline bool none() const { return vmaxvq_u32(vreinterpretq_u32_u8(*this)) == 0; }
1036+
simdutf_really_inline bool all() const { return vminvq_u32(vreinterpretq_u32_u8(*this)) == 0xFFFFF; }
10371037

10381038

10391039
};
@@ -2481,10 +2481,10 @@ namespace simd {
24812481
struct simd8<bool>: base8<bool> {
24822482
static simdutf_really_inline simd8<bool> splat(bool _value) { return _mm256_set1_epi8(uint8_t(-(!!_value))); }
24832483

2484-
simdutf_really_inline simd8<bool>() : base8() {}
2485-
simdutf_really_inline simd8<bool>(const __m256i _value) : base8<bool>(_value) {}
2484+
simdutf_really_inline simd8() : base8() {}
2485+
simdutf_really_inline simd8(const __m256i _value) : base8<bool>(_value) {}
24862486
// Splat constructor
2487-
simdutf_really_inline simd8<bool>(bool _value) : base8<bool>(splat(_value)) {}
2487+
simdutf_really_inline simd8(bool _value) : base8<bool>(splat(_value)) {}
24882488

24892489
simdutf_really_inline uint32_t to_bitmask() const { return uint32_t(_mm256_movemask_epi8(*this)); }
24902490
simdutf_really_inline bool any() const { return !_mm256_testz_si256(*this, *this); }
@@ -3409,10 +3409,10 @@ namespace simd {
34093409
struct simd8<bool>: base8<bool> {
34103410
static simdutf_really_inline simd8<bool> splat(bool _value) { return _mm_set1_epi8(uint8_t(-(!!_value))); }
34113411

3412-
simdutf_really_inline simd8<bool>() : base8() {}
3413-
simdutf_really_inline simd8<bool>(const __m128i _value) : base8<bool>(_value) {}
3412+
simdutf_really_inline simd8() : base8() {}
3413+
simdutf_really_inline simd8(const __m128i _value) : base8<bool>(_value) {}
34143414
// Splat constructor
3415-
simdutf_really_inline simd8<bool>(bool _value) : base8<bool>(splat(_value)) {}
3415+
simdutf_really_inline simd8(bool _value) : base8<bool>(splat(_value)) {}
34163416

34173417
simdutf_really_inline int to_bitmask() const { return _mm_movemask_epi8(*this); }
34183418
simdutf_really_inline bool any() const { return !_mm_testz_si128(*this, *this); }
@@ -4319,11 +4319,11 @@ template <> struct simd8<bool> : base8<bool> {
43194319
return (__m128i)vec_splats((unsigned char)(-(!!_value)));
43204320
}
43214321

4322-
simdutf_really_inline simd8<bool>() : base8() {}
4323-
simdutf_really_inline simd8<bool>(const __m128i _value)
4322+
simdutf_really_inline simd8() : base8() {}
4323+
simdutf_really_inline simd8(const __m128i _value)
43244324
: base8<bool>(_value) {}
43254325
// Splat constructor
4326-
simdutf_really_inline simd8<bool>(bool _value)
4326+
simdutf_really_inline simd8(bool _value)
43274327
: base8<bool>(splat(_value)) {}
43284328

43294329
simdutf_really_inline int to_bitmask() const {
Collapse file

‎deps/simdutf/simdutf.h‎

Copy file name to clipboardExpand all lines: deps/simdutf/simdutf.h
+16-16Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on 2024-04-24 01:28:18 -0400. Do not edit! */
1+
/* auto-generated on 2024-05-07 22:33:11 -0400. Do not edit! */
22
/* begin file include/simdutf.h */
33
#ifndef SIMDUTF_H
44
#define SIMDUTF_H
@@ -594,7 +594,7 @@ SIMDUTF_DISABLE_UNDESIRED_WARNINGS
594594
#define SIMDUTF_SIMDUTF_VERSION_H
595595

596596
/** The version of simdutf being used (major.minor.revision) */
597-
#define SIMDUTF_VERSION "5.2.6"
597+
#define SIMDUTF_VERSION "5.2.8"
598598

599599
namespace simdutf {
600600
enum {
@@ -609,7 +609,7 @@ enum {
609609
/**
610610
* The revision (major.minor.REVISION) of simdutf being used.
611611
*/
612-
SIMDUTF_VERSION_REVISION = 6
612+
SIMDUTF_VERSION_REVISION = 8
613613
};
614614
} // namespace simdutf
615615

@@ -682,6 +682,17 @@ POSSIBILITY OF SUCH DAMAGE.
682682
#endif
683683

684684

685+
// RISC-V ISA detection utilities
686+
#if SIMDUTF_IS_RISCV64 && defined(__linux__)
687+
#include <unistd.h> // for syscall
688+
// We define these ourselves, for backwards compatibility
689+
struct simdutf_riscv_hwprobe { int64_t key; uint64_t value; };
690+
#define simdutf_riscv_hwprobe(...) syscall(258, __VA_ARGS__)
691+
#define SIMDUTF_RISCV_HWPROBE_KEY_IMA_EXT_0 4
692+
#define SIMDUTF_RISCV_HWPROBE_IMA_V (1 << 2)
693+
#define SIMDUTF_RISCV_HWPROBE_EXT_ZVBB (1 << 17)
694+
#endif // SIMDUTF_IS_RISCV64 && defined(__linux__)
695+
685696
namespace simdutf {
686697
namespace internal {
687698

@@ -716,17 +727,6 @@ static inline uint32_t detect_supported_architectures() {
716727

717728
#elif SIMDUTF_IS_RISCV64
718729

719-
#if defined(__linux__)
720-
721-
#include <unistd.h>
722-
// We define these our selfs, for backwards compatibility
723-
struct simdutf_riscv_hwprobe { int64_t key; uint64_t value; };
724-
#define simdutf_riscv_hwprobe(...) syscall(258, __VA_ARGS__)
725-
#define SIMDUTF_RISCV_HWPROBE_KEY_IMA_EXT_0 4
726-
#define SIMDUTF_RISCV_HWPROBE_IMA_V (1 << 2)
727-
#define SIMDUTF_RISCV_HWPROBE_EXT_ZVBB (1 << 17)
728-
#endif
729-
730730
static inline uint32_t detect_supported_architectures() {
731731
uint32_t host_isa = instruction_set::DEFAULT;
732732
#if SIMDUTF_IS_RVV
@@ -2374,7 +2374,7 @@ simdutf_warn_unused size_t base64_length_from_binary(size_t length, base64_optio
23742374
* @param length the length of the input in bytes
23752375
* @param output the pointer to buffer that can hold the conversion result (should be at least base64_length_from_binary(length) bytes long)
23762376
* @param options the base64 options to use, can be base64_default or base64_url, is base64_default by default.
2377-
* @return number of written bytes, will be equal to base64_length_from_binary(length)
2377+
* @return number of written bytes, will be equal to base64_length_from_binary(length, options)
23782378
*/
23792379
size_t binary_to_base64(const char * input, size_t length, char* output, base64_options options = base64_default) noexcept;
23802380

@@ -3599,7 +3599,7 @@ class implementation {
35993599
* @param length the length of the input in bytes
36003600
* @param output the pointer to buffer that can hold the conversion result (should be at least base64_length_from_binary(length) bytes long)
36013601
* @param options the base64 options to use, can be base64_default or base64_url, is base64_default by default.
3602-
* @return number of written bytes, will be equal to base64_length_from_binary(length)
3602+
* @return number of written bytes, will be equal to base64_length_from_binary(length, options)
36033603
*/
36043604
virtual size_t binary_to_base64(const char * input, size_t length, char* output, base64_options options = base64_default) const noexcept = 0;
36053605

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.