Searched refs:range (Results 1 - 25 of 53) sorted by relevance

123

/seL4-refos-master/libs/libmuslc/src/time/
H A Dstrptime.c11 int i, w, neg, adj, min, range, *dest, dummy; local
37 range = 7;
42 range = 12;
56 range = 31;
65 range = 24;
70 range = 12;
75 range = 366;
80 range = 12;
86 range = 60;
117 range
[all...]
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Dlight.c14 * Light sources are "things" that have a physical position and range.
59 new_light_source(x, y, range, type, id)
61 int range, type;
66 if (range > MAX_RADIUS || range < 1) {
67 impossible("new_light_source: illegal range %d", range);
76 ls->range = range;
156 if (at_hero_range >= ls->range)
[all...]
H A Ddothrow.c431 * argument to be a pointer to an integer -- the range -- which is
451 int ox, oy, *range = (int *)arg; local
462 } else if (*range == 0) {
477 losehp(rnd(2+*range), s, KILLED_BY);
482 losehp(rnd(2+*range), "crashing into iron bars", KILLED_BY);
487 losehp(rnd(2+*range), "bumping into a boulder", KILLED_BY);
493 losehp(rnd(2+*range), "touching the edge of the universe", KILLED_BY);
503 losehp(rnd(2+*range), "wedging into a narrow crevice", KILLED_BY);
549 *range = 0;
558 if (--*range <
866 register int range, urange; local
1695 int range, odx, ody; local
[all...]
H A Ddokick.c403 int range; local
450 /* range < 2 means the object will not move. */
452 range = (int)((ACURRSTR)/2 - kickobj->owt/40);
454 if(martial()) range += rnd(3);
457 /* you're in the water too; significantly reduce range */
458 range = range / 3 + 1; /* {1,2}=>1, {3,4,5}=>2, {6,7,8}=>3 */
460 if (is_ice(x, y)) range += rnd(3), slide = TRUE;
461 if (kickobj->greased) range += rnd(3), slide = TRUE;
465 if(kickobj->oartifact == ART_MJOLLNIR) range
756 int range; local
[all...]
H A Dvision.c41 /*135*/ 16 /* should be MAX_RADIUS+1; used to terminate range loops -dlc */
638 } else { /* range is 0 */
647 if (!u.nv_range) { /* range is 0 */
829 * was out of night-vision range of the hero. Suddenly the hero should
1657 char *limits; /* points at range limit for current row, or NULL */
1757 * Main loop. Within the range of sight of the previous row, mark all
2087 view_from(srow,scol,loc_cs_rows,left_most,right_most, range, func, arg)
2091 int range; /* 0 if unlimited */
2120 if(range) {
2121 if(range > MAX_RADIU
[all...]
H A Dmthrowu.c139 return 1 if the object has stopped moving (hit or its range used up) */
141 ohitmon(mtmp, otmp, range, verbose)
144 int range; /* how much farther will object travel if it misses */
162 if (!range) { /* Last position; object drops */
218 (otmp->otyp != BOULDER || range >= 0 || !otmp->otrapped))
235 if (!objgone && range == -1) { /* special case */
245 m_throw(mon, x, y, dx, dy, range, obj)
247 register int x,y,dx,dy,range; /* direction and range */
305 skipped when reaching them at point blank range */
[all...]
H A Dexplode.c389 int range; /* range of object */ member in struct:scatter_chain
478 stmp->range = rnd(tmp); /* anywhere up to that determ. by wt */
479 if (farthest < stmp->range) farthest = stmp->range;
491 if ((stmp->range-- > 0) && (!stmp->stopped)) {
506 stmp->range--;
523 stmp->range -= 3;
H A Dtimeout.c1259 * void save_timers(int fd, int mode, int range)
1260 * Save all timers of range 'range'. Range is either global
1265 * void restore_timers(int fd, int range, boolean ghostly, long adjust)
1266 * Restore timers of range 'range'. If from a ghost pile,
1720 maybe_write_timer(fd, range, write_it)
1721 int fd, range;
1728 if (range == RANGE_GLOBAL) {
1752 * Save part of the timer list. The parameter 'range' specifie
[all...]
H A Dteleport.c114 int x, y, range, i; local
127 range = 1;
130 * radius range. Stop when we find at least one valid position.
133 xmin = max(1, xx-range);
134 xmax = min(COLNO-1, xx+range);
135 ymin = max(0, yy-range);
136 ymax = min(ROWNO-1, yy+range);
166 range++;
169 if (range > ROWNO && range > COLN
[all...]
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Dlight.c14 * Light sources are "things" that have a physical position and range.
59 new_light_source(x, y, range, type, id)
61 int range, type;
66 if (range > MAX_RADIUS || range < 1) {
67 impossible("new_light_source: illegal range %d", range);
76 ls->range = range;
156 if (at_hero_range >= ls->range)
[all...]
H A Ddothrow.c431 * argument to be a pointer to an integer -- the range -- which is
451 int ox, oy, *range = (int *)arg; local
462 } else if (*range == 0) {
477 losehp(rnd(2+*range), s, KILLED_BY);
482 losehp(rnd(2+*range), "crashing into iron bars", KILLED_BY);
487 losehp(rnd(2+*range), "bumping into a boulder", KILLED_BY);
493 losehp(rnd(2+*range), "touching the edge of the universe", KILLED_BY);
503 losehp(rnd(2+*range), "wedging into a narrow crevice", KILLED_BY);
549 *range = 0;
558 if (--*range <
866 register int range, urange; local
1695 int range, odx, ody; local
[all...]
H A Ddokick.c403 int range; local
450 /* range < 2 means the object will not move. */
452 range = (int)((ACURRSTR)/2 - kickobj->owt/40);
454 if(martial()) range += rnd(3);
457 /* you're in the water too; significantly reduce range */
458 range = range / 3 + 1; /* {1,2}=>1, {3,4,5}=>2, {6,7,8}=>3 */
460 if (is_ice(x, y)) range += rnd(3), slide = TRUE;
461 if (kickobj->greased) range += rnd(3), slide = TRUE;
465 if(kickobj->oartifact == ART_MJOLLNIR) range
756 int range; local
[all...]
H A Dvision.c41 /*135*/ 16 /* should be MAX_RADIUS+1; used to terminate range loops -dlc */
638 } else { /* range is 0 */
647 if (!u.nv_range) { /* range is 0 */
829 * was out of night-vision range of the hero. Suddenly the hero should
1657 char *limits; /* points at range limit for current row, or NULL */
1757 * Main loop. Within the range of sight of the previous row, mark all
2087 view_from(srow,scol,loc_cs_rows,left_most,right_most, range, func, arg)
2091 int range; /* 0 if unlimited */
2120 if(range) {
2121 if(range > MAX_RADIU
[all...]
H A Dmthrowu.c139 return 1 if the object has stopped moving (hit or its range used up) */
141 ohitmon(mtmp, otmp, range, verbose)
144 int range; /* how much farther will object travel if it misses */
162 if (!range) { /* Last position; object drops */
218 (otmp->otyp != BOULDER || range >= 0 || !otmp->otrapped))
235 if (!objgone && range == -1) { /* special case */
245 m_throw(mon, x, y, dx, dy, range, obj)
247 register int x,y,dx,dy,range; /* direction and range */
305 skipped when reaching them at point blank range */
[all...]
H A Dexplode.c389 int range; /* range of object */ member in struct:scatter_chain
478 stmp->range = rnd(tmp); /* anywhere up to that determ. by wt */
479 if (farthest < stmp->range) farthest = stmp->range;
491 if ((stmp->range-- > 0) && (!stmp->stopped)) {
506 stmp->range--;
523 stmp->range -= 3;
H A Dtimeout.c1259 * void save_timers(int fd, int mode, int range)
1260 * Save all timers of range 'range'. Range is either global
1265 * void restore_timers(int fd, int range, boolean ghostly, long adjust)
1266 * Restore timers of range 'range'. If from a ghost pile,
1720 maybe_write_timer(fd, range, write_it)
1721 int fd, range;
1728 if (range == RANGE_GLOBAL) {
1752 * Save part of the timer list. The parameter 'range' specifie
[all...]
H A Dteleport.c114 int x, y, range, i; local
127 range = 1;
130 * radius range. Stop when we find at least one valid position.
133 xmin = max(1, xx-range);
134 xmax = min(COLNO-1, xx+range);
135 ymin = max(0, yy-range);
136 ymax = min(ROWNO-1, yy+range);
166 range++;
169 if (range > ROWNO && range > COLN
[all...]
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/include/
H A Dlev.h43 short range; /* source's current range */ member in struct:ls_t
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/include/
H A Dlev.h43 short range; /* source's current range */ member in struct:ls_t
/seL4-refos-master/kernel/tools/
H A Dreciprocal.py27 for p in range(0, 2*nbits + 1):
/seL4-refos-master/seL4_tools/cmake-tool/helpers/
H A Dplatform_sift.py149 for r in range(n):
160 for r in range(n):
/seL4-refos-master/kernel/manual/tools/libsel4_tools/
H A Dsyscall_stub_gen.py486 for i in range(num_words):
494 words = [[] for _ in range(num_mrs, MAX_MESSAGE_LENGTH)]
523 for x in range(num_bits // wordsize):
663 for i in range(num_mrs):
675 for i in range(len(cap_expressions)):
689 for i in range(num_mrs):
695 for i in range(num_mrs, len(input_expressions)):
709 ("&mr%d" % i) for i in range(num_mrs)))
722 for i in range(num_mrs):
740 for i in range(MAX_MESSAGE_LENGT
[all...]
/seL4-refos-master/kernel/libsel4/tools/
H A Dsyscall_stub_gen.py486 for i in range(num_words):
494 words = [[] for _ in range(num_mrs, MAX_MESSAGE_LENGTH)]
523 for x in range(num_bits // wordsize):
663 for i in range(num_mrs):
675 for i in range(len(cap_expressions)):
689 for i in range(num_mrs):
695 for i in range(num_mrs, len(input_expressions)):
709 ("&mr%d" % i) for i in range(num_mrs)))
722 for i in range(num_mrs):
740 for i in range(MAX_MESSAGE_LENGT
[all...]
/seL4-refos-master/libs/libsel4/tools/
H A Dsyscall_stub_gen.py486 for i in range(num_words):
494 words = [[] for _ in range(num_mrs, MAX_MESSAGE_LENGTH)]
523 for x in range(num_bits // wordsize):
663 for i in range(num_mrs):
675 for i in range(len(cap_expressions)):
689 for i in range(num_mrs):
695 for i in range(num_mrs, len(input_expressions)):
709 ("&mr%d" % i) for i in range(num_mrs)))
722 for i in range(num_mrs):
740 for i in range(MAX_MESSAGE_LENGT
[all...]
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/sys/share/
H A Dtclib.c433 tputs( string, range, output_func )
435 int range; /* number of lines affected, used for `*' delays */
452 ++p, num *= range;

Completed in 214 milliseconds

123