MCPcopy Create free account
hub / github.com/apache/trafficserver / MMH_update

Function MMH_update

src/tscore/MMH.cc:107–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107static inline void
108MMH_update(MMH_CTX *ctx, unsigned char *ab)
109{
110 uint32_t *b = reinterpret_cast<uint32_t *>(ab);
111 ctx->state[0] += b[0] * MMH_x[(ctx->blocks + 0) % MMH_X_SIZE];
112 ctx->state[1] += b[1] * MMH_x[(ctx->blocks + 1) % MMH_X_SIZE];
113 ctx->state[2] += b[2] * MMH_x[(ctx->blocks + 2) % MMH_X_SIZE];
114 ctx->state[3] += b[3] * MMH_x[(ctx->blocks + 3) % MMH_X_SIZE];
115 ctx->blocks += 4;
116}
117
118static inline void
119MMH_updateb1(MMH_CTX *ctx, unsigned char *ab)

Callers 2

ink_code_incr_MMH_updateFunction · 0.85
ink_code_incr_MMH_finalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected