Lines Matching refs:s
90 isaac_refill (struct isaac_state *s, isaac_word result[ISAAC_WORDS]) in isaac_refill() argument
93 isaac_word a = s->a; in isaac_refill()
94 isaac_word b = s->b + (++s->c); in isaac_refill()
97 isaac_word *m = s->m; in isaac_refill()
112 m[i] = y = ind (s->m, x) + a + b; \ in isaac_refill()
113 r[i] = b = just (ind (s->m, y >> ISAAC_WORDS_LOG) + x); \ in isaac_refill()
124 while ((m += 4) < s->m + HALF); in isaac_refill()
134 while ((m += 4) < s->m + ISAAC_WORDS); in isaac_refill()
136 s->a = a; in isaac_refill()
137 s->b = b; in isaac_refill()
173 #define ISAAC_MIX(s, a, b, c, d, e, f, g, h, seed) \ argument
188 s->m[i] = a; \
189 s->m[i + 1] = b; \
190 s->m[i + 2] = c; \
191 s->m[i + 3] = d; \
192 s->m[i + 4] = e; \
193 s->m[i + 5] = f; \
194 s->m[i + 6] = g; \
195 s->m[i + 7] = h; \
210 isaac_init (struct isaac_state *s, isaac_word const *seed, size_t seedsize)
218 s->a = s->b = s->c = 0;
223 ISAAC_MIX (s, a, b, c, d, e, f, g, h, seed);
229 s->m[i] += seed[i];
230 ISAAC_MIX (s, a, b, c, d, e, f, g, h, s->m);
237 s->m[i] = 0;
241 ISAAC_MIX (s, a, b, c, d, e, f, g, h, s->m);
248 isaac_seed (struct isaac_state *s) in isaac_seed() argument
269 ISAAC_MIX (s, a, b, c, d, e, f, g, h, s->m); in isaac_seed()
270 ISAAC_MIX (s, a, b, c, d, e, f, g, h, s->m); in isaac_seed()
272 s->a = s->b = s->c = 0; in isaac_seed()