Home | History | Annotate | Download | only in math

Lines Matching full:state

86   int state = 0;
91 * the state variable holds the number of bits in the
102 if (state > 0) {
105 state++;
108 if (state > 25) {
109 debug_print(mod_stat, ">25 runs: %d", state);
113 } else if (state < 0) {
116 if (state < -25) {
117 debug_print(mod_stat, ">25 gaps: %d", state);
120 if (state < -6) {
121 state = -6; /* group together gaps > 5 */
123 gaps[-1-state]++; /* increment gap count */
124 state = 1; /* set state at one set bit */
127 /* state is zero; this happens only at initialization */
128 state = 1;
133 if (state > 0) {
136 if (state > 25) {
137 debug_print(mod_stat, ">25 runs (2): %d", state);
140 if (state > 6) {
141 state = 6; /* group together runs > 5 */
143 runs[state-1]++; /* increment run count */
144 state = -1; /* set state at one zero bit */
145 } else if (state < 0) {
147 /* prefix is a gap, so increment gap-count (decrement state) */
148 state--;
151 if (state < -25) {
152 debug_print(mod_stat, ">25 gaps (2): %d", state);
158 /* state is zero; this happens only at initialization */
159 state = -1;
211 int state = 0;
248 if (state > 0) {
251 state++;
254 if (state > 25) {
255 debug_print(mod_stat, ">25 runs (3): %d", state);
259 } else if (state < 0) {
262 if (state < -25) {
263 debug_print(mod_stat, ">25 gaps (3): %d", state);
266 if (state < -6) {
267 state = -6; /* group together gaps > 5 */
269 gaps[-1-state]++; /* increment gap count */
270 state = 1; /* set state at one set bit */
273 /* state is zero; this happens only at initialization */
274 state = 1;
279 if (state > 0) {
282 if (state > 25) {
283 debug_print(mod_stat, ">25 runs (4): %d", state);
286 if (state > 6) {
287 state = 6; /* group together runs > 5 */
289 runs[state-1]++; /* increment run count */
290 state = -1; /* set state at one zero bit */
291 } else if (state < 0) {
293 /* prefix is a gap, so increment gap-count (decrement state) */
294 state--;
297 if (state < -25) {
298 debug_print(mod_stat, ">25 gaps (4): %d", state);
304 /* state is zero; this happens only at initialization */
305 state = -1;