Created
April 21, 2018 19:08
-
-
Save irrationalRock/12a487231460d8e26b47a05c82b7acaf to your computer and use it in GitHub Desktop.
non vectored method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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