diff --git a/kitty/simd-string.h b/kitty/simd-string.h index d6cef5ec8..761205c4b 100644 --- a/kitty/simd-string.h +++ b/kitty/simd-string.h @@ -25,16 +25,11 @@ bool utf8_decode_to_esc(UTF8Decoder *d, const uint8_t *src, size_t src_sz); // Pass a PyModule PyObject* as the argument. Must be called once at application startup bool init_simd(void* module); -// Requires 7 bytes to the left of haystack to be readable. Returns pointer to +// Requires 31 bytes to the right of haystack to be readable. Returns pointer to // first position in haystack that contains either of the two chars or NULL if // not found. const uint8_t* find_either_of_two_bytes(const uint8_t *haystack, const size_t sz, const uint8_t a, const uint8_t b); -// Requires 7 bytes to the left of haystack to be readable. Returns pointer to -// first position in haystack that contains a char that is not in [a, b]. -// a must be <= b -const uint8_t* find_byte_not_in_range(const uint8_t *haystack, const size_t sz, const uint8_t a1, const uint8_t b); - // SIMD implementations, internal use bool utf8_decode_to_esc_128(UTF8Decoder *d, const uint8_t *src, size_t src_sz); bool utf8_decode_to_esc_256(UTF8Decoder *d, const uint8_t *src, size_t src_sz);