Searched refs:abs (Results 1 - 25 of 382) sorted by relevance

1234567891011>>

/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/
H A Dloverload4.C4 inline char abs (char x) { return 0; } function
7 inline int abs (int x) { return 1; } function
H A Dc-inline.C6 inline double abs (double) { return 0.0; } function
7 inline short abs (short) { return 0; } function
10 inline int abs (int) { return 0; } // causes segfault - function
H A Doverload22.C5 inline double abs (double x) { return x;} function
6 inline int abs (int i) { return i; } function
16 abs(fn(f)); // gets bogus warning
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.other/
H A Dinline2.C10 if (std::abs (0.5-std::abs (foo-0.5)) < 1e-10) foo+=1;
/openbsd-current/lib/libc/stdlib/
H A Dabs.c1 /* $OpenBSD: abs.c,v 1.6 2015/09/13 08:31:47 guenther Exp $ */
34 abs(int j) function
38 DEF_STRONG(abs); variable
/openbsd-current/lib/libc/arch/i386/stdlib/
H A Dabs.S35 ENTRY(abs)
41 END_STRONG(abs)
/openbsd-current/lib/libc/arch/sparc64/stdlib/
H A Dabs.S1 /* $OpenBSD: abs.S,v 1.5 2015/09/13 16:27:59 guenther Exp $ */
2 /* $NetBSD: abs.S,v 1.1 1998/09/11 04:56:32 eeh Exp $ */
36 * from: Header: abs.s,v 1.1 91/07/06 18:01:57 torek Exp
41 /* abs - int absolute value */
44 ENTRY(abs)
48 END_STRONG(abs)
H A DMakefile.inc3 SRCS+= abs.c div.c labs.c ldiv.c llabs.c
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/
H A Dno-builtin-1.c4 /* { dg-options "-fno-builtin-abs" } */
6 /* GCC normally handles abs and labs as built-in functions even without
7 optimization. So test that with -fno-builtin-abs, labs is so handled
8 but abs isn't. */
12 extern int abs (int);
22 if (abs (0) != 0)
29 /* The labs call above should have been optimized, but the abs call
33 abs (int x) function
/openbsd-current/gnu/llvm/libcxx/include/
H A Dstdlib.h66 int abs( int j);
67 long abs( long j);
68 long long abs(long long j); // C++0X
99 // abs
101 #ifdef abs
102 # undef abs macro
113 _LIBCPP_NODISCARD_EXT inline _LIBCPP_INLINE_VISIBILITY long abs(long __x) _NOEXCEPT {
116 _LIBCPP_NODISCARD_EXT inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {
122 _LIBCPP_NODISCARD_EXT inline _LIBCPP_INLINE_VISIBILITY float abs(float __lcpp_x) _NOEXCEPT {
126 _LIBCPP_NODISCARD_EXT inline _LIBCPP_INLINE_VISIBILITY double abs(doubl
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Dbuiltin-abs-1.c1 /* Test for builtin abs, labs, llabs, imaxabs. */
19 extern int abs (int);
39 if (abs (i0) != 0)
41 if (abs (0) != 0)
43 if (abs (i1) != 1)
45 if (abs (1) != 1)
47 if (abs (im1) != 1)
49 if (abs (-1) != 1)
51 if (abs (imin) != INT_MAX)
53 if (abs (
127 abs (int x) function
[all...]
/openbsd-current/gnu/lib/libstdc++/libstdc++/testsuite/17_intro/
H A Dheader_cstdlib.cc28 long a = std::abs(1L);
/openbsd-current/gnu/lib/libstdc++/libstdc++/testsuite/26_numerics/
H A Dvalarray.cc40 double m = std::abs(b - c).max();
/openbsd-current/gnu/usr.bin/binutils-2.17/ld/emulparams/
H A Darmsymbian.sh8 TARGET2_TYPE=abs
/openbsd-current/lib/libc/arch/mips64/gen/
H A Dfabs.S45 abs.d $f0, $f12 # compute absolute value of x
/openbsd-current/gnu/llvm/lld/Common/
H A DReproduce.cpp25 SmallString<128> abs = path; local
26 if (fs::make_absolute(abs))
28 path::remove_dots(abs, /*remove_dot_dot=*/true);
34 StringRef root = path::root_name(abs);
40 path::append(res, path::relative_path(abs));
/openbsd-current/lib/libcrypto/asn1/
H A Da_bitstr.c92 asn1_abs_clear_unused_bits(ASN1_BIT_STRING *abs) argument
94 abs->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07);
98 asn1_abs_set_unused_bits(ASN1_BIT_STRING *abs, uint8_t unused_bits) argument
103 asn1_abs_clear_unused_bits(abs);
105 abs->flags |= ASN1_STRING_FLAG_BITS_LEFT | unused_bits;
245 ASN1_BIT_STRING *abs = NULL; local
269 if ((abs = ASN1_BIT_STRING_new()) == NULL)
272 abs->data = data;
273 abs->length = (int)data_len;
280 if (!asn1_abs_set_unused_bits(abs, unused_bit
302 ASN1_BIT_STRING *abs = NULL; local
[all...]
/openbsd-current/lib/librthread/
H A Dsynch.h29 _twait(volatile uint32_t *p, int val, clockid_t clockid, const struct timespec *abs) argument
35 if (abs == NULL) {
44 if (!timespecisvalid(abs) || clock_gettime(clockid, &now))
47 if (timespeccmp(abs, &now, <=))
49 timespecsub(abs, &now, &rel);
/openbsd-current/lib/libc/thread/
H A Dsynch.h29 _twait(volatile uint32_t *p, int val, clockid_t clockid, const struct timespec *abs) argument
35 if (abs == NULL) {
44 if (!timespecisvalid(abs) || WRAP(clock_gettime)(clockid, &now))
47 if (timespeccmp(abs, &now, <=))
49 timespecsub(abs, &now, &rel);
/openbsd-current/gnu/llvm/clang/lib/Headers/hlsl/
H A Dhlsl_intrinsics.h18 // abs builtins
21 int16_t abs(int16_t);
23 int16_t2 abs(int16_t2);
25 int16_t3 abs(int16_t3);
27 int16_t4 abs(int16_t4);
28 __attribute__((clang_builtin_alias(__builtin_elementwise_abs))) half abs(half);
30 half2 abs(half2);
32 half3 abs(half3);
34 half4 abs(half4);
37 __attribute__((clang_builtin_alias(__builtin_elementwise_abs))) int abs(in
[all...]
/openbsd-current/games/backgammon/common_source/
H A Done.c41 n = abs(g[i] - p[i]);
65 if (abs(bar - g[i]) < 7) {
72 if (abs(home - g[i]) < 7 && abs(home - p[i]) > 6) {
114 return(abs(home - i));
133 if (abs(g[i] - home) < 7 && abs(p[i] - home) > 6) {
145 if (abs(bar - g[i]) < 7) {
H A Dfancy.c129 n = abs(b); /* initialize n and pc */
232 ov = abs(old);
233 nv = abs(new);
245 fixcol(r + inc * (nv - n * 5), nc, abs(ov - nv), ' ', inc);
247 fixcol(r + inc * (ov - o * 5), nc, abs(ov - nv), col, inc);
253 fixcol(r, c, abs(nv - 5), col, inc);
255 fixcol(r+inc*ov, c+1, abs(ov-5), col, inc);
257 fixcol(r, c, abs(ov - 5), ' ', inc);
259 fixcol(r+inc*nv, c+1, abs(nv-5), ' ', inc);
265 fixcol(r+inc*(ov-5), c, abs(o
[all...]
/openbsd-current/gnu/gcc/libstdc++-v3/include/tr1/
H A Dstdlib.h47 using std::tr1::abs;
/openbsd-current/gnu/usr.bin/perl/t/opbasic/
H A Darith.t26 my $error = abs (($_[1] - $_[2]) / $_[1]);
48 # Give abs() a good work-out before using it in anger
49 tryeq $T++, abs(0), 0, 'abs(): 0 0';
50 tryeq $T++, abs(1), 1, 'abs(): 1 1';
51 tryeq $T++, abs(-1), 1, 'abs(): -1 1';
52 tryeq $T++, abs(2147483647), 2147483647, 'abs()
[all...]
/openbsd-current/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/
H A Dcp.t28 cmp_ok( abs($mtime - $now), '<=', 1, 'cp updated mtime' );

Completed in 284 milliseconds

1234567891011>>