Searched refs:pidshift (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmktemp.c102 static int pidshift = 0; local
137 /* for all possible values of pid, 0 <= pid < (1 << pidshift) */
138 if (pidshift == 0) /* one-time initialization */
139 pidshift = fls((uint_t)MAXPID); /* high bit number */
156 if ((tryshift = xcnt * 6 - pidshift) < 0) {
179 xpid >>= (previous_xcnt * 6 - pidshift);
180 xpid &= ((1 << pidshift) - 1);

Completed in 55 milliseconds