Skip to content

Commit

Permalink
fix gcc-14 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
huangminghuang committed Sep 28, 2024
1 parent ecaad18 commit ac06008
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/is_utf8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2568,11 +2568,11 @@ template <> struct simd8<bool> : base8<bool> {
return _mm256_set1_epi8(uint8_t(-(!!_value)));
}

is_utf8_really_inline simd8<bool>() : base8() {}
is_utf8_really_inline simd8<bool>(const __m256i _value)
is_utf8_really_inline simd8() : base8() {}
is_utf8_really_inline simd8(const __m256i _value)
: base8<bool>(_value) {}
// Splat constructor
is_utf8_really_inline simd8<bool>(bool _value) : base8<bool>(splat(_value)) {}
is_utf8_really_inline simd8(bool _value) : base8<bool>(splat(_value)) {}

is_utf8_really_inline uint32_t to_bitmask() const {
return uint32_t(_mm256_movemask_epi8(*this));
Expand Down Expand Up @@ -2998,11 +2998,11 @@ template <> struct simd16<bool> : base16<bool> {
return _mm256_set1_epi16(uint16_t(-(!!_value)));
}

is_utf8_really_inline simd16<bool>() : base16() {}
is_utf8_really_inline simd16<bool>(const __m256i _value)
is_utf8_really_inline simd16() : base16() {}
is_utf8_really_inline simd16(const __m256i _value)
: base16<bool>(_value) {}
// Splat constructor
is_utf8_really_inline simd16<bool>(bool _value)
is_utf8_really_inline simd16(bool _value)
: base16<bool>(splat(_value)) {}

is_utf8_really_inline bitmask_type to_bitmask() const {
Expand Down Expand Up @@ -3549,11 +3549,11 @@ template <> struct simd8<bool> : base8<bool> {
return _mm_set1_epi8(uint8_t(-(!!_value)));
}

is_utf8_really_inline simd8<bool>() : base8() {}
is_utf8_really_inline simd8<bool>(const __m128i _value)
is_utf8_really_inline simd8() : base8() {}
is_utf8_really_inline simd8(const __m128i _value)
: base8<bool>(_value) {}
// Splat constructor
is_utf8_really_inline simd8<bool>(bool _value) : base8<bool>(splat(_value)) {}
is_utf8_really_inline simd8(bool _value) : base8<bool>(splat(_value)) {}

is_utf8_really_inline int to_bitmask() const {
return _mm_movemask_epi8(*this);
Expand Down Expand Up @@ -4065,11 +4065,11 @@ template <> struct simd16<bool> : base16<bool> {
return _mm_set1_epi16(uint16_t(-(!!_value)));
}

is_utf8_really_inline simd16<bool>() : base16() {}
is_utf8_really_inline simd16<bool>(const __m128i _value)
is_utf8_really_inline simd16() : base16() {}
is_utf8_really_inline simd16(const __m128i _value)
: base16<bool>(_value) {}
// Splat constructor
is_utf8_really_inline simd16<bool>(bool _value)
is_utf8_really_inline simd16(bool _value)
: base16<bool>(splat(_value)) {}

is_utf8_really_inline int to_bitmask() const {
Expand Down

0 comments on commit ac06008

Please sign in to comment.