| 165 | explicit SSE42Filter(const ParseOptions& options) : filter_(MakeFilter(options)) {} |
| 166 | |
| 167 | bool Matches(WordType w) const { |
| 168 | // Look up every byte in `w` in the SIMD filter. |
| 169 | return _mm_cmpistrc(_mm_set1_epi64x(w), filter_, |
| 170 | _SIDD_UBYTE_OPS | _SIDD_CMP_EQUAL_ANY); |
| 171 | } |
| 172 | |
| 173 | // _mm_cmpistrc is an implicit-length compare: it treats a NUL byte as a |
| 174 | // terminator and can miss a real delimiter/quote/newline sharing an 8-byte |
nothing calls this directly
no outgoing calls
no test coverage detected