Lines Matching +full:y +full:- +full:max
6 * C program (compile with -lm)
16 double y; variable
23 /* To silence -Wunused-but-set-variable warnings. */ in calc_runnable_avg_yN_inv()
26 x = ((1UL<<32)-1)*pow(y, i); in calc_runnable_avg_yN_inv()
43 sum *= y; in calc_runnable_avg_yN_sum()
45 sum = sum*y + 1024*y; in calc_runnable_avg_yN_sum()
55 int n = -1;
57 long max = 1024; variable
61 long last = 0, y_inv = ((1UL<<32)-1)*y; in calc_converged_max()
64 if (n > -1) in calc_converged_max()
65 max = ((max*y_inv)>>SHIFT) + 1024; in calc_converged_max()
68 * max = max*y + 1024; in calc_converged_max()
71 if (last == max) in calc_converged_max()
74 last = max; in calc_converged_max()
76 n--; in calc_converged_max()
78 printf("#define LOAD_AVG_MAX %ld\n", max); in calc_converged_max()
101 printf("/* Generated by Documentation/scheduler/sched-pelt; do not modify. */\n\n"); in main()
103 y = pow(0.5, 1/(double)HALFLIFE); in main()