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

Function ink_code_incr_MMH_init

src/tscore/MMH.cc:85–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 0x55e9920f, 0x0e4f77b2, 0x6700ec53, 0x268837c0, 0x554ce08b, 0x4284e695, 0x2127e806, 0x384cb53b, 0x51076b2f, 0x23f9eb15};
84
85int
86ink_code_incr_MMH_init(MMH_CTX *ctx)
87{
88 ctx->buffer_size = 0;
89 ctx->blocks = 0;
90 ctx->state[0] = (MMH_x[MMH_X_SIZE + 0] << 32) + MMH_x[MMH_X_SIZE + 1];
91 ctx->state[1] = (MMH_x[MMH_X_SIZE + 2] << 32) + MMH_x[MMH_X_SIZE + 3];
92 ctx->state[2] = (MMH_x[MMH_X_SIZE + 4] << 32) + MMH_x[MMH_X_SIZE + 5];
93 ctx->state[3] = (MMH_x[MMH_X_SIZE + 6] << 32) + MMH_x[MMH_X_SIZE + 7];
94 return 0;
95}
96
97int
98ink_code_MMH(unsigned char *input, int len, unsigned char *sixteen_byte_hash)

Callers 3

ink_code_MMHFunction · 0.85
MMHContextMethod · 0.85
test_MMH.ccFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected