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
599599namespace simdutf {
600600enum {
@@ -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+
685696namespace simdutf {
686697namespace 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-
730730static 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 */
23792379size_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