Lines Matching refs:ctx

39 PHP_HASH_API void PHP_MURMUR3AInit(PHP_MURMUR3A_CTX *ctx, HashTable *args)  in PHP_MURMUR3AInit()  argument
47 ctx->h = (uint32_t) Z_LVAL_P(seed); in PHP_MURMUR3AInit()
50 ctx->h = 0; in PHP_MURMUR3AInit()
53 ctx->h = 0; in PHP_MURMUR3AInit()
56 ctx->h = 0; in PHP_MURMUR3AInit()
58 ctx->carry = 0; in PHP_MURMUR3AInit()
59 ctx->len = 0; in PHP_MURMUR3AInit()
62 PHP_HASH_API void PHP_MURMUR3AUpdate(PHP_MURMUR3A_CTX *ctx, const unsigned char *in, size_t len) in PHP_MURMUR3AUpdate() argument
64 ctx->len += len; in PHP_MURMUR3AUpdate()
65 PMurHash32_Process(&ctx->h, &ctx->carry, in, len); in PHP_MURMUR3AUpdate()
68 PHP_HASH_API void PHP_MURMUR3AFinal(unsigned char digest[4], PHP_MURMUR3A_CTX *ctx) in PHP_MURMUR3AFinal() argument
70 ctx->h = PMurHash32_Result(ctx->h, ctx->carry, ctx->len); in PHP_MURMUR3AFinal()
72 digest[0] = (unsigned char)((ctx->h >> 24) & 0xff); in PHP_MURMUR3AFinal()
73 digest[1] = (unsigned char)((ctx->h >> 16) & 0xff); in PHP_MURMUR3AFinal()
74 digest[2] = (unsigned char)((ctx->h >> 8) & 0xff); in PHP_MURMUR3AFinal()
75 digest[3] = (unsigned char)(ctx->h & 0xff); in PHP_MURMUR3AFinal()
101 PHP_HASH_API void PHP_MURMUR3CInit(PHP_MURMUR3C_CTX *ctx, HashTable *args) in PHP_MURMUR3CInit() argument
110 ctx->h[0] = _seed; in PHP_MURMUR3CInit()
111 ctx->h[1] = _seed; in PHP_MURMUR3CInit()
112 ctx->h[2] = _seed; in PHP_MURMUR3CInit()
113 ctx->h[3] = _seed; in PHP_MURMUR3CInit()
116 memset(&ctx->h, 0, sizeof ctx->h); in PHP_MURMUR3CInit()
119 memset(&ctx->h, 0, sizeof ctx->h); in PHP_MURMUR3CInit()
122 memset(&ctx->h, 0, sizeof ctx->h); in PHP_MURMUR3CInit()
124 memset(&ctx->carry, 0, sizeof ctx->carry); in PHP_MURMUR3CInit()
125 ctx->len = 0; in PHP_MURMUR3CInit()
128 PHP_HASH_API void PHP_MURMUR3CUpdate(PHP_MURMUR3C_CTX *ctx, const unsigned char *in, size_t len) in PHP_MURMUR3CUpdate() argument
130 ctx->len += len; in PHP_MURMUR3CUpdate()
131 PMurHash128x86_Process(ctx->h, ctx->carry, in, len); in PHP_MURMUR3CUpdate()
134 PHP_HASH_API void PHP_MURMUR3CFinal(unsigned char digest[16], PHP_MURMUR3C_CTX *ctx) in PHP_MURMUR3CFinal() argument
137 PMurHash128x86_Result(ctx->h, ctx->carry, ctx->len, h); in PHP_MURMUR3CFinal()
180 PHP_HASH_API void PHP_MURMUR3FInit(PHP_MURMUR3F_CTX *ctx, HashTable *args) in PHP_MURMUR3FInit() argument
189 ctx->h[0] = _seed; in PHP_MURMUR3FInit()
190 ctx->h[1] = _seed; in PHP_MURMUR3FInit()
193 memset(&ctx->h, 0, sizeof ctx->h); in PHP_MURMUR3FInit()
196 memset(&ctx->h, 0, sizeof ctx->h); in PHP_MURMUR3FInit()
199 memset(&ctx->h, 0, sizeof ctx->h); in PHP_MURMUR3FInit()
201 memset(&ctx->carry, 0, sizeof ctx->carry); in PHP_MURMUR3FInit()
202 ctx->len = 0; in PHP_MURMUR3FInit()
205 PHP_HASH_API void PHP_MURMUR3FUpdate(PHP_MURMUR3F_CTX *ctx, const unsigned char *in, size_t len) in PHP_MURMUR3FUpdate() argument
207 ctx->len += len; in PHP_MURMUR3FUpdate()
208 PMurHash128x64_Process(ctx->h, ctx->carry, in, len); in PHP_MURMUR3FUpdate()
211 PHP_HASH_API void PHP_MURMUR3FFinal(unsigned char digest[16], PHP_MURMUR3F_CTX *ctx) in PHP_MURMUR3FFinal() argument
214 PMurHash128x64_Result(ctx->h, ctx->carry, ctx->len, h); in PHP_MURMUR3FFinal()