-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redis protocol: tokenizer, hash and zset (#146)
* update osx entries in travis * compose/parse commands * Squashed 'deps/ccommon/' changes from bb298bc..ce0b9ea ce0b9ea allow printing negative integers in cc_print (#141) ab0edc8 add metrics to track buf_sock objects (#138) ae02038 add travis ci (copied from pelikan) (#139) 964645a Merge pull request #135 from paegun/fix_cmake_install 70710c2 fixed and re-added cmake install instructions, w/ following notes: include directory made proper relative; opened pattern match b/c include directory should only contain files meant for inclusion. 5b095bc Merge pull request #126 from kevyang/kevyang/120 426d56a return NULL when cc_alloc/cc_realloc is called with size == 0 ad271d4 Merge pull request #133 from kevyang/132 47dbdba suppress unused parameter warning in debug_log_flush 648d19e Merge pull request #127 from kevyang/56 780941a Merge pull request #130 from kevyang/129 b8af6c0 Merge pull request #131 from kevyang/128 6ecc318 fix duplicate symbols in cc_signal 080c41d cc_array - stop doing arithmetic on void * d526f7a add debug oriented memory management a4fb927 Update bool member rules in style guide 05c6e1e explicitly make ccommon a C project to avoid checking for CXX related variables git-subtree-dir: deps/ccommon git-subtree-split: ce0b9ea * use new macro imported from ccommon * more tests * modify response for redis * add response check * add response parse/compose * Squashed 'deps/ccommon/' changes from ce0b9ea..b1babb2 b1babb2 change wheel's sleep timer to make it less flaky (#143) git-subtree-dir: deps/ccommon git-subtree-split: b1babb2 * grep for error in unittest logs * change nelem type in token_array_nelem * changes reflected Kevin's review on Mar 22 * address most comments * Squashed 'deps/ccommon/' changes from b1babb2..9264bbb 9264bbb Zero byte (#147) (emergency fix needed for pelikan) d4002d7 simplify cc_print_int64 (#146) b164fcf Clean-up hash functions and introduce MurmurHash3 (#145) git-subtree-dir: deps/ccommon git-subtree-split: 9264bbb * changes needed to use new hash function names * add more tests and fix corresponding bugs * temporarily disable flaky build * feedback from seppo0010 * adding comment to token.h
- Loading branch information
Yao Yue
authored
Apr 4, 2017
1 parent
524922d
commit 8a7e319
Showing
39 changed files
with
2,717 additions
and
557 deletions.
There are no files selected for viewing
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* ccommon - a cache common library. | ||
* Copyright (C) 2013 Twitter, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* The cc_murmur3.[ch] are adapated from the canonical implementation of | ||
* MurmurHash3 by Austin Appleby, released as part of SMHasher: | ||
* https://github.com/aappleby/smhasher | ||
* | ||
* Changes include renaming fuctions, removing MSVC-related code, adding "static" | ||
* keyword to local-scope functions according to C language spec (original code is | ||
* in C++), to better fit them into the scope and style of ccommon | ||
* | ||
* The actual implementation is untouched. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <stdint.h> | ||
|
||
|
||
void hash_murmur3_32 ( const void * key, int len, uint32_t seed, void * out ); | ||
|
||
void hash_murmur3_128_x86 ( const void * key, int len, uint32_t seed, void * out ); | ||
|
||
void hash_murmur3_128_x64 ( const void * key, int len, uint32_t seed, void * out ); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
set(SOURCE | ||
${SOURCE} | ||
hash/cc_hash.c | ||
hash/cc_lookup3.c | ||
hash/cc_murmur3.c | ||
PARENT_SCOPE) |
Oops, something went wrong.