Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos #63

Merged
merged 1 commit into from
May 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/streamvbyte_x64_encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ STREAMVBYTE_UNTARGET_REGION

STREAMVBYTE_TARGET_SSE41
static size_t streamvbyte_encode_SSE41 (const uint32_t* in, uint32_t count, uint8_t* out) {
uint32_t keyLen = (count >> 2) + (((count & 3) + 3) >> 2); // 2-bits per each rounded up to byte boundry
uint32_t keyLen = (count >> 2) + (((count & 3) + 3) >> 2); // 2-bits per each rounded up to byte boundary
uint8_t *restrict keyPtr = &out[0];
uint8_t *restrict dataPtr = &out[keyLen]; // variable length data after keys

Expand Down
2 changes: 1 addition & 1 deletion src/streamvbytedelta_x64_encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ STREAMVBYTE_UNTARGET_REGION
STREAMVBYTE_TARGET_SSE41
static size_t streamvbyte_encode_SSE41_d1_init (const uint32_t* in, uint32_t count, uint8_t* out, uint32_t prev) {
__m128i Prev = _mm_set1_epi32((int32_t)prev);
uint32_t keyLen = (count >> 2) + (((count & 3) + 3) >> 2); // 2-bits per each rounded up to byte boundry
uint32_t keyLen = (count >> 2) + (((count & 3) + 3) >> 2); // 2-bits per each rounded up to byte boundary
uint8_t *restrict keyPtr = &out[0];
uint8_t *restrict dataPtr = &out[keyLen]; // variable length data after keys

Expand Down