Lines Matching refs:h

46 			ctx->h = (uint32_t)Z_LVAL_P(seed);  in PHP_MURMUR3AInit()
48 ctx->h = 0; in PHP_MURMUR3AInit()
51 ctx->h = 0; in PHP_MURMUR3AInit()
60 PMurHash32_Process(&ctx->h, &ctx->carry, in, len); in PHP_MURMUR3AUpdate()
65 ctx->h = PMurHash32_Result(ctx->h, ctx->carry, ctx->len); in PHP_MURMUR3AFinal()
67 digest[0] = (unsigned char)((ctx->h >> 24) & 0xff); in PHP_MURMUR3AFinal()
68 digest[1] = (unsigned char)((ctx->h >> 16) & 0xff); in PHP_MURMUR3AFinal()
69 digest[2] = (unsigned char)((ctx->h >> 8) & 0xff); in PHP_MURMUR3AFinal()
70 digest[3] = (unsigned char)(ctx->h & 0xff); in PHP_MURMUR3AFinal()
75 copy_context->h = orig_context->h; in PHP_MURMUR3ACopy()
104 ctx->h[0] = _seed; in PHP_MURMUR3CInit()
105 ctx->h[1] = _seed; in PHP_MURMUR3CInit()
106 ctx->h[2] = _seed; in PHP_MURMUR3CInit()
107 ctx->h[3] = _seed; in PHP_MURMUR3CInit()
109 memset(&ctx->h, 0, sizeof ctx->h); in PHP_MURMUR3CInit()
112 memset(&ctx->h, 0, sizeof ctx->h); in PHP_MURMUR3CInit()
121 PMurHash128x86_Process(ctx->h, ctx->carry, in, len); in PHP_MURMUR3CUpdate()
126 uint32_t h[4] = {0, 0, 0, 0}; in PHP_MURMUR3CFinal() local
127 PMurHash128x86_Result(ctx->h, ctx->carry, ctx->len, h); in PHP_MURMUR3CFinal()
129 digest[0] = (unsigned char)((h[0] >> 24) & 0xff); in PHP_MURMUR3CFinal()
130 digest[1] = (unsigned char)((h[0] >> 16) & 0xff); in PHP_MURMUR3CFinal()
131 digest[2] = (unsigned char)((h[0] >> 8) & 0xff); in PHP_MURMUR3CFinal()
132 digest[3] = (unsigned char)(h[0] & 0xff); in PHP_MURMUR3CFinal()
133 digest[4] = (unsigned char)((h[1] >> 24) & 0xff); in PHP_MURMUR3CFinal()
134 digest[5] = (unsigned char)((h[1] >> 16) & 0xff); in PHP_MURMUR3CFinal()
135 digest[6] = (unsigned char)((h[1] >> 8) & 0xff); in PHP_MURMUR3CFinal()
136 digest[7] = (unsigned char)(h[1] & 0xff); in PHP_MURMUR3CFinal()
137 digest[8] = (unsigned char)((h[2] >> 24) & 0xff); in PHP_MURMUR3CFinal()
138 digest[9] = (unsigned char)((h[2] >> 16) & 0xff); in PHP_MURMUR3CFinal()
139 digest[10] = (unsigned char)((h[2] >> 8) & 0xff); in PHP_MURMUR3CFinal()
140 digest[11] = (unsigned char)(h[2] & 0xff); in PHP_MURMUR3CFinal()
141 digest[12] = (unsigned char)((h[3] >> 24) & 0xff); in PHP_MURMUR3CFinal()
142 digest[13] = (unsigned char)((h[3] >> 16) & 0xff); in PHP_MURMUR3CFinal()
143 digest[14] = (unsigned char)((h[3] >> 8) & 0xff); in PHP_MURMUR3CFinal()
144 digest[15] = (unsigned char)(h[3] & 0xff); in PHP_MURMUR3CFinal()
149 memcpy(&copy_context->h, &orig_context->h, sizeof orig_context->h); in PHP_MURMUR3CCopy()
178 ctx->h[0] = _seed; in PHP_MURMUR3FInit()
179 ctx->h[1] = _seed; in PHP_MURMUR3FInit()
181 memset(&ctx->h, 0, sizeof ctx->h); in PHP_MURMUR3FInit()
184 memset(&ctx->h, 0, sizeof ctx->h); in PHP_MURMUR3FInit()
193 PMurHash128x64_Process(ctx->h, ctx->carry, in, len); in PHP_MURMUR3FUpdate()
198 uint64_t h[2] = {0, 0}; in PHP_MURMUR3FFinal() local
199 PMurHash128x64_Result(ctx->h, ctx->carry, ctx->len, h); in PHP_MURMUR3FFinal()
201 digest[0] = (unsigned char)((h[0] >> 56) & 0xff); in PHP_MURMUR3FFinal()
202 digest[1] = (unsigned char)((h[0] >> 48) & 0xff); in PHP_MURMUR3FFinal()
203 digest[2] = (unsigned char)((h[0] >> 40) & 0xff); in PHP_MURMUR3FFinal()
204 digest[3] = (unsigned char)((h[0] >> 32) & 0xff); in PHP_MURMUR3FFinal()
205 digest[4] = (unsigned char)((h[0] >> 24) & 0xff); in PHP_MURMUR3FFinal()
206 digest[5] = (unsigned char)((h[0] >> 16) & 0xff); in PHP_MURMUR3FFinal()
207 digest[6] = (unsigned char)((h[0] >> 8) & 0xff); in PHP_MURMUR3FFinal()
208 digest[7] = (unsigned char)(h[0] & 0xff); in PHP_MURMUR3FFinal()
209 digest[8] = (unsigned char)((h[1] >> 56) & 0xff); in PHP_MURMUR3FFinal()
210 digest[9] = (unsigned char)((h[1] >> 48) & 0xff); in PHP_MURMUR3FFinal()
211 digest[10] = (unsigned char)((h[1] >> 40) & 0xff); in PHP_MURMUR3FFinal()
212 digest[11] = (unsigned char)((h[1] >> 32) & 0xff); in PHP_MURMUR3FFinal()
213 digest[12] = (unsigned char)((h[1] >> 24) & 0xff); in PHP_MURMUR3FFinal()
214 digest[13] = (unsigned char)((h[1] >> 16) & 0xff); in PHP_MURMUR3FFinal()
215 digest[14] = (unsigned char)((h[1] >> 8) & 0xff); in PHP_MURMUR3FFinal()
216 digest[15] = (unsigned char)(h[1] & 0xff); in PHP_MURMUR3FFinal()
221 memcpy(&copy_context->h, &orig_context->h, sizeof orig_context->h); in PHP_MURMUR3FCopy()