Code to easily compare SIMD and scalar decode in a live instance

Also remove -mtune=intel as it fails with clang
This commit is contained in:
Kovid Goyal
2024-02-02 11:35:51 +05:30
parent 561712090d
commit f1fe0bf40a
4 changed files with 26 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ find_either_of_two_bytes(const uint8_t *haystack, const size_t sz, const uint8_t
// UTF-8 {{{
static bool
bool
utf8_decode_to_esc_scalar(UTF8Decoder *d, const uint8_t *src, const size_t src_sz) {
d->output.pos = 0; d->num_consumed = 0;
utf8_decoder_ensure_capacity(d, src_sz);