teptris 0.3.29.0 → 0.3.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/teptris_ext/engine/README.md +1 -1
- data/ext/teptris_ext/engine/src/include/teptris/version.h +1 -1
- data/ext/teptris_ext/engine/src/teptris/common/ryu/s2d.c +14 -0
- data/ext/teptris_ext/engine/src/teptris/schema/formats.c +1118 -119
- data/ext/teptris_ext/engine/src/teptris/schema/idna_tables.h +14070 -0
- data/ext/teptris_ext/engine/src/teptris/schema/regex.c +5 -0
- data/lib/teptris/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 365ca15a277393ea594ea52949bab9075f796fe72472788ad1eb4a72632adf6a
|
|
4
|
+
data.tar.gz: 59d3318d84146a3de0cb4bf8b20c8e403e0c0a5f2ed1f678e526c9e5aacb3916
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 288f43bca616128043523343cfcd3c36765776c4f386f8114a63bdf1fde5b597523a04e4ac09933960c86f0ad3d97cdfd9a6e965bb15305c2fa5b66ed3f7ddff
|
|
7
|
+
data.tar.gz: ca775a1d6bbad4b27cedd9a507d3f66bb3bf6a98369cbfbfb27cb344e242c43c19cab00768dfede43aac614aeaee309d99ba37b8b6beae3d0b340205ae79878e
|
|
@@ -44,10 +44,24 @@
|
|
|
44
44
|
#if defined(_MSC_VER)
|
|
45
45
|
#include <intrin.h>
|
|
46
46
|
|
|
47
|
+
#if defined(_WIN64)
|
|
47
48
|
static inline uint32_t floor_log2(const uint64_t value) {
|
|
48
49
|
long index;
|
|
49
50
|
return _BitScanReverse64(&index, value) ? index : 64;
|
|
50
51
|
}
|
|
52
|
+
#else
|
|
53
|
+
/* x86 MSVC has no 64-bit bit-scan intrinsic - split the halves */
|
|
54
|
+
static inline uint32_t floor_log2(const uint64_t value) {
|
|
55
|
+
long index;
|
|
56
|
+
if (value == 0) return 64;
|
|
57
|
+
if (value >> 32) {
|
|
58
|
+
_BitScanReverse(&index, (unsigned long)(value >> 32));
|
|
59
|
+
return (uint32_t)index + 32;
|
|
60
|
+
}
|
|
61
|
+
_BitScanReverse(&index, (unsigned long)(value & 0xFFFFFFFFu));
|
|
62
|
+
return (uint32_t)index;
|
|
63
|
+
}
|
|
64
|
+
#endif
|
|
51
65
|
|
|
52
66
|
#else
|
|
53
67
|
|