File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -510,10 +510,6 @@ static inline TARGET_SSE2 FORCE_INLINE unsigned char search_escape_basic_sse2(se
510
510
continue ;
511
511
}
512
512
513
- if (popcount32 (needs_escape_mask ) >= sizeof (__m128i )/2 ) {
514
- return sizeof (__m128i );
515
- }
516
-
517
513
search -> has_matches = 1 ;
518
514
search -> matches_mask = needs_escape_mask ;
519
515
search -> chunk_base = search -> ptr ;
@@ -539,10 +535,6 @@ static inline TARGET_SSE2 FORCE_INLINE unsigned char search_escape_basic_sse2(se
539
535
return 0 ;
540
536
}
541
537
542
- if (popcount32 (needs_escape_mask ) >= sizeof (__m128i )/2 ) {
543
- return remaining ;
544
- }
545
-
546
538
search -> has_matches = 1 ;
547
539
search -> matches_mask = needs_escape_mask ;
548
540
search -> chunk_base = search -> ptr ;
Original file line number Diff line number Diff line change @@ -48,20 +48,6 @@ static inline int trailing_zeros(int input) {
48
48
#endif
49
49
}
50
50
51
- uint32_t popcount32 (uint32_t x ) {
52
- #if defined(__GNUC__ ) || defined(__clang__ )
53
- return __builtin_popcount (x );
54
- #elif defined(__ARM_NEON )
55
- #include <arm_neon.h>
56
- return vaddv_u8 (vcnt_u8 (vcreate_u8 ((uint64_t )x ))) & 0xFF ;
57
- #else
58
- x = x - ((x >> 1 ) & 0x55555555 );
59
- x = (x & 0x33333333 ) + ((x >> 2 ) & 0x33333333 );
60
- x = (x + (x >> 4 )) & 0x0F0F0F0F ;
61
- return (x * 0x01010101 ) >> 24 ;
62
- #endif
63
- }
64
-
65
51
#define SIMD_MINIMUM_THRESHOLD 6
66
52
67
53
#if defined(__ARM_NEON ) || defined(__ARM_NEON__ ) || defined(__aarch64__ ) || defined(_M_ARM64 )
You can’t perform that action at this time.
0 commit comments