| 218 | escape_(vdup_n_u8(SpecializedOptions::escaping ? options.escape_char : '\n')) {} |
| 219 | |
| 220 | bool Matches(WordType w) const { |
| 221 | uint8x8_t v; |
| 222 | v = vceq_u8(w, vdup_n_u8('\r')); |
| 223 | v = vorr_u8(v, vceq_u8(w, vdup_n_u8('\n'))); |
| 224 | v = vorr_u8(v, vceq_u8(w, delim_)); |
| 225 | if (SpecializedOptions::quoting) { |
| 226 | v = vorr_u8(v, vceq_u8(w, quote_)); |
| 227 | } |
| 228 | if (SpecializedOptions::escaping) { |
| 229 | v = vorr_u8(v, vceq_u8(w, escape_)); |
| 230 | } |
| 231 | uint64_t r; |
| 232 | vst1_u64(&r, vreinterpret_u64_u8(v)); |
| 233 | return r != 0; |
| 234 | } |
| 235 | |
| 236 | // NEON compares each byte independently (no implicit-length scanning), so |
| 237 | // an embedded NUL byte doesn't affect correctness here. |
no outgoing calls
no test coverage detected