Lines Matching refs:sum
56 register Prng_t* sum; in prng_open() local
62 if (sum = newof(0, Prng_t, 1, 0)) in prng_open()
64 sum->method = (Method_t*)method; in prng_open()
65 sum->name = name; in prng_open()
75 sum->mpy = strtoul(t, NiL, 0); in prng_open()
77 sum->add = v ? strtoul(v + 1, NiL, 0) : ~sum->add; in prng_open()
79 sum->init = v ? strtoul(v + 1, NiL, 0) : ~sum->init; in prng_open()
83 if (!sum->mpy) in prng_open()
85 sum->mpy = FNV_MULT; in prng_open()
86 if (!sum->init) in prng_open()
87 sum->init = FNV_INIT; in prng_open()
89 return (Sum_t*)sum; in prng_open()
95 Prng_t* sum = (Prng_t*)p; in prng_init() local
97 sum->sum = sum->init; in prng_init()
104 Prng_t* sum = (Prng_t*)p; in prng_block() local
105 register Prngnum_t c = sum->sum; in prng_block()
110 c = c * sum->mpy + sum->add + *b++; in prng_block()
111 sum->sum = c; in prng_block()