Patching.

This commit is contained in:
Daniel Lemire 2020-06-21 20:14:00 -04:00
parent 066269153e
commit ad40e90790
2 changed files with 0 additions and 11 deletions

View File

@ -6,9 +6,6 @@ public:
really_inline size_t block_index();
really_inline bool has_full_block() const;
really_inline const uint8_t *full_block() const;
really_inline bool has_remainder() const {
return idx < len;
}
/**
* Get the last block, padded with spaces.
*

View File

@ -11,14 +11,6 @@ bool utf8_validate(const uint8_t * input, size_t length) {
c.check_next_input(in);
reader.advance();
}
if (likely(reader.has_remainder())) {
uint8_t block[64]{};
reader.get_remainder(block);
simd::simd8x64<uint8_t> in(block);
c.check_next_input(in);
reader.advance();
}
return c.errors() == error_code::SUCCESS;
}