Home | History | Annotate | Download | only in worms

Lines Matching defs:ul

213 	unsigned long ul, up;
227 ul = up = 0;
256 if (ul >= 100000) /* 1/10 second, in us */
258 ul *= 10;
259 ul += (ch - '0');
263 if (up == 1 && ul <= 1000)
264 ul *= 1000;
272 delay = ul;
281 ul = strtoul(optarg, &ep, 10);
294 * if ul >= INT_MAX/1000 we don't need the *1000,
299 if (*ep != 'u' && ul < INT_MAX / 1000)
300 ul *= 1000; /* ms -> us */
301 if (ul > 1000*1000) {
306 delay = (unsigned int)ul;
318 up = ul = strtoul(optarg, &ep, 10);
326 ul < 2 || up < ul || up > 1024) {
330 minlength = (int)ul;
334 ul = strtoul(optarg, &ep, 10);
336 ul < 1 || ul > INT_MAX / 10 ) {
341 number = (int)ul;
348 ul = strtoul(optarg, &ep, 0);
350 ul > UINT_MAX ) {
353 seed = (unsigned int)ul;
410 ul = (unsigned long)CO * LI;
411 if ((unsigned long)maxlength > ul / 20) {
414 maxlength, ul / 20);
417 ul /= maxlength * 3; /* no more than 33% arena occupancy */
419 if ((unsigned long)(unsigned)number > ul && maxlength > minlength) {
423 ul = (CO * LI) / ((minlength + maxlength)/2 * 3);;
426 if ((unsigned long)(unsigned)number > ul) {
428 errx(1, "-n: too many worms (%d) max: %lu", number, ul);