| 185 | using BulkFilterType = __m128i; |
| 186 | |
| 187 | BulkFilterType MakeFilter(const ParseOptions& options) { |
| 188 | // Make a SIMD word of the characters we want to match |
| 189 | const char cr = '\r'; |
| 190 | const char lf = '\n'; |
| 191 | const char delim = options.delimiter; |
| 192 | const char quote = SpecializedOptions::quoting ? options.quote_char : cr; |
| 193 | const char escape = SpecializedOptions::escaping ? options.escape_char : cr; |
| 194 | |
| 195 | return _mm_set_epi8(delim, quote, escape, lf, cr, cr, cr, cr, cr, cr, cr, cr, cr, cr, |
| 196 | cr, cr); |
| 197 | } |
| 198 | |
| 199 | const BulkFilterType filter_; |
| 200 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected