Skip to content

Instantly share code, notes, and snippets.

@irrationalRock
Created April 21, 2018 19:08
Show Gist options
  • Save irrationalRock/12a487231460d8e26b47a05c82b7acaf to your computer and use it in GitHub Desktop.
Save irrationalRock/12a487231460d8e26b47a05c82b7acaf to your computer and use it in GitHub Desktop.
non vectored method
static BROTLI_INLINE void FN(StoreRange)(HasherHandle handle,
const uint8_t* data, const size_t mask, const size_t ix_start,
const size_t ix_end) {
size_t i = ix_start;
size_t j = ix_start;
if (ix_start + 63 <= ix_end) {
i = ix_end - 63;
}
if (ix_start + 512 <= i) {
for (; j < i; j += 8) {
FN(Store)(handle, data, mask, j);
}
}
for (; i < ix_end; ++i) {
FN(Store)(handle, data, mask, i);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment