Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

Commit

Permalink
common: note about unaligned load
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Jan 14, 2015
1 parent 88e01c2 commit e5e8953
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ static uint32_t bud_murmur3(const char* key, uint32_t len) {

hash = 0;

/* FIXME(indutny): this leads to unaligned loads for some keys */
chunks = (const uint32_t*) key;
chunk_count = len / 4;
for (i = 0; i < chunk_count; i++) {
Expand Down

0 comments on commit e5e8953

Please sign in to comment.