Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 25 of 158) sorted by relevance

1234567

/onnv-gate/usr/src/cmd/troff/troff.d/
H A Ddraw.c61 #define abs(n) ((n) >= 0 ? (n) : -(n)) macro
87 numdots = abs (yd);
99 numdots = abs (xd);
109 if (abs (xd) > abs (yd)) {
111 numdots = abs (xd);
120 numdots = abs (yd);
336 Xs = abs(ys); in conicarc()
337 Ys = abs(xs); in conicarc()
346 Xs = abs(xs); in conicarc()
347 Ys = abs(ys); in conicarc()
[all …]
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/ext/Time/HiRes/t/
H A DHiRes.t137 ok 9, abs($f - 5.4) < 0.001, $f;
190 ok 14, abs($s) / $n <= 1.0, "Time::HiRes::time() not close to time()";
227 print "# ", abs($ival/3 - 1), "\n";
233 if (abs($ival/3.3 - 1) < $limit) {
240 if (abs($ival/$exp - 1) > 3*$limit) {
241 my $ratio = abs($ival/$exp);
255 if (abs($ival/$exp - 1) > 3*$limit) {
256 my $ratio = abs($ival/$exp);
289 print "not " unless abs(getitimer(ITIMER_VIRTUAL) / 0.5) - 1 < $limit;
314 $a = abs(sleep($sleep) / $sleep - 1.0);
[all …]
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/t/op/
H A Darith.t26 my $error = abs ($_[1] - $_[2]) / $_[1];
46 try 5, abs( 13e21 % 4e21 - 1e21) < $limit;
47 try 6, abs(-13e21 % 4e21 - 3e21) < $limit;
48 try 7, abs( 13e21 % -4e21 - -3e21) < $limit;
49 try 8, abs(-13e21 % -4e21 - -1e21) < $limit;
277 try 133, abs($t1000 -1000 * $t) <= 2000;
H A Dalarm.t32 ok( abs($diff - 3) <= 1, " right time" );
50 ok( abs($diff - 3) <= 1, " right time (waited $diff secs for 3-sec alarm)" );
/onnv-gate/usr/src/lib/libc/i386/gen/
H A Dabs.s31 / abs(arg)
39 ENTRY(abs)
46 SET_SIZE(abs)
/onnv-gate/usr/src/lib/libplot/t300/common/
H A Dsubr.c135 i = abs(i); in movep()
138 i = abs(xg-xnow); in movep()
148 i = abs(i); in movep()
151 i = abs(yg - ynow); in movep()
H A Dline.c69 j = abs(j); in iline()
74 j = abs(j); in iline()
/onnv-gate/usr/src/lib/libplot/t450/common/
H A Dsubr.c138 i = abs(i); in movep()
141 i = abs(xg - xnow); in movep()
151 i = abs(i); in movep()
154 i = abs(yg - ynow); in movep()
H A Dline.c65 j = abs(j); in iline()
70 j = abs(j); in iline()
/onnv-gate/usr/src/cmd/fps/fptest/
H A Dlinpack.c216 REAL abs; in LINSUB() local
289 abs = (REAL)fabs((double)b[i]); in LINSUB()
290 *resid = (*resid > abs) ? *resid : abs; in LINSUB()
291 abs = (REAL)fabs((double)x[i]); in LINSUB()
292 normx = (normx > abs) ? normx : abs; in LINSUB()
422 REAL abs; in EPSLON() local
436 abs = (REAL)fabs((double)x); in EPSLON()
438 return (eps * abs); in EPSLON()
/onnv-gate/usr/src/lib/libc/sparc/gen/
H A Dabs.s37 ENTRY(abs)
44 SET_SIZE(abs)
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/
H A Dvmsish.t148 ok(abs($utctime - $vmstime + $offset) <= 10,"(time) UTC: $utctime VMS: $vmstime");
154 ok(abs($vmsval - $utcval + $offset) <= 10, "(localtime) UTC: $utcval VMS: $vmsval");
161 ok(abs($vmsval - $utcval + $offset) <= 10, "(gmtime) UTC: $utcval VMS: $vmsval");
164 ok(abs($utcmtime - $vmsmtime + $offset) <= 10,"(stat) UTC: $utcmtime VMS: $vmsmtime");
H A Dbigint.pl152 ($x, $y) = (&abs($x),&abs($y)); # make abs
/onnv-gate/usr/src/head/iso/
H A Dstdlib_iso.h124 extern int abs(int);
170 inline long abs(long _l) { return labs(_l); } in abs() function
178 extern int abs();
/onnv-gate/usr/src/cmd/bnu/
H A Duupick38 abs=""
122 then abs=`expr "$dir" : '/.*'`
123 if test $abs != 0
/onnv-gate/usr/src/lib/libc/sparcv9/gen/
H A Dabs.s34 ENTRY(abs)
41 SET_SIZE(abs)
/onnv-gate/usr/src/lib/libc/amd64/gen/
H A Dabs.s41 ENTRY(abs)
48 SET_SIZE(abs)
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Math/
H A DComplex.t87 $z->abs(3 * sqrt(2));
89 print 'not ' unless (abs($z) - 3 * sqrt(2)) < $eps and
103 (abs($z) - sqrt(2) ) < $eps and
432 $ex =~ s/\br\b/abs($target)/g;
453 (abs($got - $expected) < $eps)
538 &abs
/onnv-gate/usr/src/lib/libplot/t4014/common/
H A Dsubr.c69 n = (abs(hix - ohix) + abs(hiy - ohiy) + 6) / 12; in cont()
/onnv-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwinsdel.c67 if (w->_maxy < w->_cury + abs(n)) in winsdelln()
88 (void) __m_cc_erase(w, row, 0, row + abs(n) - 1, w->_maxx - 1); in winsdelln()
/onnv-gate/usr/src/lib/libplot/t300s/common/
H A Dline.c62 chx = abs(chx); in iline()
65 chy = abs(chy); in iline()
/onnv-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dwinsdel.c68 if (w->_maxy < w->_cury + abs(n))
93 (void) __m_cc_erase(w, row, 0, row + abs(n), w->_maxx-1);
/onnv-gate/usr/src/lib/libsqlite/test/
H A Dfunc.test154 # Test the abs() and round() functions.
163 catchsql {SELECT abs(a,b) FROM t1}
164 } {1 {wrong number of arguments to function abs()}}
166 catchsql {SELECT abs() FROM t1}
167 } {1 {wrong number of arguments to function abs()}}
169 catchsql {SELECT abs(b) FROM t1 ORDER BY a}
172 catchsql {SELECT abs(c) FROM t1 ORDER BY a}
175 execsql {SELECT abs(a) FROM t2}
178 execsql {SELECT abs(t1) FROM tbl1}
/onnv-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_timer.c743 int abs; in sctp_update_rtt() local
749 abs = fp->sf_srtt - rtt; in sctp_update_rtt()
750 abs = abs >= 0 ? abs : -abs; in sctp_update_rtt()
751 fp->sf_rttvar = (3 * fp->sf_rttvar + abs) >> 2; in sctp_update_rtt()
/onnv-gate/usr/src/uts/sun4u/io/
H A Dtodstarcat.c50 #define abs(x) ((x) < 0 ? -(x) : (x)) macro
200 if (abs(hrestime.tv_sec - ts.tv_sec) > TODSC_SET_THRESHOLD) { in todsc_set()

1234567