Fixes for gcc 15

This commit is contained in:
2025-11-06 12:49:38 -05:00
parent 5fc823b392
commit 995ddf329f
3 changed files with 6 additions and 4 deletions

View File

@@ -214,7 +214,7 @@ inline PRESERVE_NONE WeaselJsonStatus scan_string_impl(Parser3 *self,
} }
auto v = V{(int8_t *)buf}; auto v = V{(int8_t *)buf};
int normal = int normal =
(v != V::splat('"') & v != V::splat('\\') & v >= V::splat(0x20)) ((v != V::splat('"')) & (v != V::splat('\\')) & (v >= V::splat(0x20)))
.count_leading_nonzero_lanes(); .count_leading_nonzero_lanes();
buf += normal; buf += normal;
if (normal < V::lanes) { if (normal < V::lanes) {

View File

@@ -558,7 +558,7 @@ template <std::integral T, int kLanes> struct simd<T, kLanes, Simd_x86_SSE> {
for (; i + 16 / sizeof(T) <= kLanes; i += 16 / sizeof(T)) { for (; i + 16 / sizeof(T) <= kLanes; i += 16 / sizeof(T)) {
__m128i v0; __m128i v0;
memcpy(&v0, &x[i], 16); memcpy(&v0, &x[i], 16);
v0 = _mm_xor_si128(v0, _mm_set1_epi8(0xff)); v0 = _mm_xor_si128(v0, _mm_set1_epi8((char)0xff));
memcpy(&result.x[i], &v0, 16); memcpy(&result.x[i], &v0, 16);
} }
for (; i < kLanes; ++i) { for (; i < kLanes; ++i) {
@@ -1702,13 +1702,13 @@ template <std::integral T, int kLanes> struct simd<T, kLanes, Simd_x86_AVX2> {
for (; i + 32 / sizeof(T) <= kLanes; i += 32 / sizeof(T)) { for (; i + 32 / sizeof(T) <= kLanes; i += 32 / sizeof(T)) {
__m256i v0; __m256i v0;
memcpy(&v0, &x[i], 32); memcpy(&v0, &x[i], 32);
v0 = _mm256_xor_si256(v0, _mm256_set1_epi8(0xff)); v0 = _mm256_xor_si256(v0, _mm256_set1_epi8((char)0xff));
memcpy(&result.x[i], &v0, 32); memcpy(&result.x[i], &v0, 32);
} }
for (; i + 16 / sizeof(T) <= kLanes; i += 16 / sizeof(T)) { for (; i + 16 / sizeof(T) <= kLanes; i += 16 / sizeof(T)) {
__m128i v0; __m128i v0;
memcpy(&v0, &x[i], 16); memcpy(&v0, &x[i], 16);
v0 = _mm_xor_si128(v0, _mm_set1_epi8(0xff)); v0 = _mm_xor_si128(v0, _mm_set1_epi8((char)0xff));
memcpy(&result.x[i], &v0, 16); memcpy(&result.x[i], &v0, 16);
} }
for (; i < kLanes; ++i) { for (; i < kLanes; ++i) {

View File

@@ -1,5 +1,7 @@
_GLOBAL_OFFSET_TABLE_
__cpu_indicator_init __cpu_indicator_init
__cpu_model __cpu_model
__stack_chk_fail@GLIBC_2.4
free@GLIBC_2.2.5 free@GLIBC_2.2.5
malloc@GLIBC_2.2.5 malloc@GLIBC_2.2.5
memmove@GLIBC_2.2.5 memmove@GLIBC_2.2.5