Patching.
This commit is contained in:
parent
066269153e
commit
ad40e90790
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue