Searched refs:abs (Results 76 - 100 of 382) sorted by relevance

1234567891011>>

/openbsd-current/games/trek/
H A Dtorped.c230 if (abs(d) > 12)
239 damage(TORPED, 0.2 * abs(d) * (franf() + 1.0));
/openbsd-current/games/battlestar/
H A Dfly.c266 row += (rnd(9) - 4) % (4 - abs(row - MIDR));
267 column += (rnd(9) - 4) % (4 - abs(column - MIDC));
/openbsd-current/gnu/usr.bin/perl/t/op/
H A Doverride.t46 ok( abs($r - 5.006) < 0.001 && $r eq "\x05\x06" );
/openbsd-current/gnu/usr.bin/perl/ext/POSIX/t/
H A Dusage.t18 [qw(abs alarm assert chdir closedir cos exit exp fabs fstat getc
H A Dwrappers.t42 is(POSIX::abs(-42), 42, 'abs');
43 is(POSIX::abs(-3.14), 3.14, 'abs');
44 is(POSIX::abs(POSIX::exp(1)), CORE::exp(1), 'abs');
/openbsd-current/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonBranchRelaxation.cpp174 Distance = std::abs((long long)InstOffset - BlockToInstOffset[TBB])
187 Distance = std::abs((long long)InstOffset - BlockToInstOffset[FBB])
/openbsd-current/sys/lib/libkern/
H A Dlibkern.h54 LIBKERN_INLINE int abs(int);
99 abs(int j) function
/openbsd-current/gnu/usr.bin/perl/dist/threads-shared/
H A Dshared.xs624 S_abs_2_rel_milli(double abs)
637 rel = (abs * 1000.) - (((double)now.i64 / 10000.) - EPOCH_BIAS);
646 # define ABS2RELMILLI(abs) \
648 abs -= (double)time(NULL); \
649 if (abs > 0) { abs *= 1000; } \
650 else { abs = 0; } \
658 Perl_sharedsv_cond_timedwait(perl_cond *cond, perl_mutex *mut, double abs)
669 switch (WaitForSingleObject(cond->sem, S_abs_2_rel_milli(abs))) {
685 ABS2RELMILLI(abs);
[all...]
/openbsd-current/games/hack/
H A Dhack.vault.c201 if(abs(gx-x) >= abs(gy-y))
295 if(abs(gx-x) >= abs(gy-y)) nx += dx; else ny += dy;
/openbsd-current/gnu/usr.bin/perl/dist/Storable/
H A Dstacksize81 my $j = $i + abs(int(($bad - $i) / 2));
92 my $j = $i - abs(int(($i - $good) / 2));
/openbsd-current/sys/dev/isa/
H A Dspkr.c260 if (abs(pitch - lastpitch) >
261 abs(pitch + OCTAVE_NOTES - lastpitch)) {
266 if (abs(pitch - lastpitch) >
267 abs(pitch - OCTAVE_NOTES - lastpitch)) {
/openbsd-current/gnu/llvm/llvm/lib/Support/
H A DFileUtilities.cpp144 if (AbsTolerance < std::abs(V1-V2)) {
148 Diff = std::abs(V1/V2 - 1.0);
150 Diff = std::abs(V2/V1 - 1.0);
157 << "abs. diff = " << std::abs(V1-V2) << " rel.diff = " << Diff << '\n'
158 << "Out of tolerance: rel/abs: " << RelTolerance << '/'
/openbsd-current/gnu/usr.bin/gcc/gcc/config/xtensa/
H A Dlib1funcs.asm75 abs a3, a3
76 abs a2, a2
271 abs a6, a2 # udividend = abs(dividend)
272 abs a3, a3 # udivisor = abs(divisor)
400 abs a2, a2 # udividend = abs(dividend)
401 abs a3, a3 # udivisor = abs(diviso
[all...]
/openbsd-current/sys/dev/wscons/
H A Dwstpad.c289 rdy = abs(dy) * ratio;
290 if (abs(dx) * TAN_DEG_60 < rdy)
292 else if (abs(dx) * TAN_DEG_30 < rdy)
307 int diff = abs(dir1 - dir2);
369 h = abs(dx) * input->filter.h.mag_scale;
370 v = abs(dy) * input->filter.v.mag_scale;
651 dx = abs(t->x - tp->t->x) << 12;
652 dy = abs(t->y - tp->t->y) * tp->ratio;
711 dx = abs(t->x - t->orig.x) << 12;
712 dy = abs(
[all...]
/openbsd-current/gnu/usr.bin/perl/dist/Storable/t/
H A Dhugeids.t313 my $abs = File::Spec->catfile($dir, $exe);
314 -x $abs
315 and return $abs;
/openbsd-current/gnu/usr.bin/perl/lib/
H A Doverload64.t49 is(abs($oo), $ii, '0+ overload with abs()');
98 is(abs($oo), $ii, '0+ overload with abs()');
137 'abs' => sub { ${$_[0]} += 1; $ii },
180 is(abs($oo), $ii, 'abs() overload');
233 '(abs(%53m)+1) - $a53 == 1', # pp_abs
/openbsd-current/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64ConditionOptimizer.cpp258 const int NewImm = std::abs(OldImm + Correction);
400 std::abs(TrueImm - HeadImm) == 2) {
421 std::abs(TrueImm - HeadImm) == 1) {
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Dbuiltin-abs-2.c1 /* Test for builtin abs, labs, llabs, imaxabs. Test for __builtin versions. */
123 abs (int x) function
/openbsd-current/gnu/usr.bin/perl/dist/IO/t/
H A Dio_udp.t28 abs(length($a) - length ($b)),
/openbsd-current/gnu/llvm/llvm/include/llvm/Support/
H A DCFGUpdate.h87 assert(std::abs(NumInsertions) <= 1 && "Unbalanced operations!");
/openbsd-current/gnu/usr.bin/perl/ext/XS-APItest/t/
H A Dgrok.t27 is($value, abs $string, "value is correct");
47 is($value, abs $string, "value is correct");
/openbsd-current/gnu/llvm/clang/lib/AST/
H A DCommentCommandTraits.cpp62 unsigned MinPossibleEditDistance = abs((int)Name.size() - (int)Typo.size());
/openbsd-current/gnu/llvm/llvm/utils/
H A Drelative_lines.py67 if args.near > 0 and abs(target - line) > args.near:
/openbsd-current/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/
H A Dcommon_test.cpp88 EXPECT_LE(std::abs(Rss - AllocSize - Prev), Error);
/openbsd-current/gnu/usr.bin/texinfo/util/
H A Dtexi2dvi459 abs=`cd "$dir" && pwd` && TEXINPUTS=$TEXINPUTS$path_sep$abs
475 abs=`cd "$dir" && pwd` && INDEXSTYLE=$INDEXSTYLE$path_sep$abs

Completed in 369 milliseconds

1234567891011>>