Changeset 5876154 for lib/hash_toeplitz.c
- Timestamp:
- 06/23/14 23:36:31 (8 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 10e183f
- Parents:
- 8c42377 (diff), 5ba34eb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/hash_toeplitz.c
r8c42377 r5ba34eb 70 70 } 71 71 72 inlinevoid toeplitz_init_config(toeplitz_conf_t *conf, bool bidirectional)72 void toeplitz_init_config(toeplitz_conf_t *conf, bool bidirectional) 73 73 { 74 74 if (bidirectional) { … … 83 83 * n is bits 84 84 */ 85 inlineuint32_t toeplitz_hash(const toeplitz_conf_t *tc, const uint8_t *data, size_t offset, size_t n, uint32_t result)85 uint32_t toeplitz_hash(const toeplitz_conf_t *tc, const uint8_t *data, size_t offset, size_t n, uint32_t result) 86 86 { 87 87 size_t byte; … … 97 97 } 98 98 99 inlineuint32_t toeplitz_first_hash(const toeplitz_conf_t *tc, const uint8_t *data, size_t n)99 uint32_t toeplitz_first_hash(const toeplitz_conf_t *tc, const uint8_t *data, size_t n) 100 100 { 101 101 return toeplitz_hash(tc, data, 0, n, 0); 102 102 } 103 103 104 inlineuint64_t toeplitz_hash_packet(const libtrace_packet_t * pkt, const toeplitz_conf_t *cnf) {104 uint64_t toeplitz_hash_packet(const libtrace_packet_t * pkt, const toeplitz_conf_t *cnf) { 105 105 uint8_t proto; 106 106 uint16_t eth_type;
Note: See TracChangeset
for help on using the changeset viewer.