add: i = Page_size; while(i>1024){ i >>= 1; page_to_kb_shift++; }
context: static void before (char *me){   int i;      /* setup our program name -- big! */   Myname = strrchr(me, '/');   if (Myname) ++Myname; else Myname = me;      /* establish cpu particulars -- even bigger! */   Cpu_tot = smp_num_cpus;   Cpu_map = alloc_r(NULL, sizeof(int) * Cpu_tot);   for (i = 0; i < Cpu_tot; i++)      Cpu_map[i] = i;   if (linux_version_code > LINUX_VERSION(2, 5, 41))      States_fmts = STATES_line2x5;      /* get virtual page size -- nearing huge! */   Page_size = getpagesize();}