Searched refs:abs (Results 26 - 50 of 382) sorted by relevance

1234567891011>>

/openbsd-current/gnu/gcc/libstdc++-v3/include/c/
H A Dstd_cmath.h44 #undef abs macro
85 abs(double __x) function in namespace:std
89 abs(float __x) function in namespace:std
93 abs(long double __x) function in namespace:std
/openbsd-current/gnu/lib/libstdc++/libstdc++/include/c/
H A Dstd_cmath.h44 #undef abs macro
85 abs(double __x) function in namespace:std
89 abs(float __x) function in namespace:std
93 abs(long double __x) function in namespace:std
/openbsd-current/gnu/usr.bin/perl/t/op/
H A Dalarm.t34 ok( abs($diff - 3) <= 1, " right time (waited $diff secs for 3-sec alarm)" );
54 ok( abs($diff - 3) <= 1, " right time (waited $diff secs for 3-sec alarm)" );
H A Dexp.t97 cmp_ok(abs(sin($pi_2) - 1), '<', 1e-9, 'sin(pi/2) == 1');
98 cmp_ok(abs(sin(-1 * $pi_2) - -1), '<', 1e-9, 'sin(-pi/2) == -1');
104 cmp_ok(abs(cos($pi_2)), '<', 1e-9, 'cos(pi/2) == 0');
105 cmp_ok(abs(cos(-1 * $pi_2)), '<', 1e-9, 'cos(-pi/2) == 0');
/openbsd-current/lib/libc/thread/
H A Drthread_cond.c72 const struct timespec *abs)
106 error = _twait(&cond->seq, seq, clock, abs);
134 const struct timespec *abs)
145 if (abs == NULL || abs->tv_nsec < 0 || abs->tv_nsec >= 1000000000)
148 return (_rthread_cond_timedwait(cond, mutexp, abs));
71 _rthread_cond_timedwait(pthread_cond_t cond, pthread_mutex_t *mutexp, const struct timespec *abs) argument
133 pthread_cond_timedwait(pthread_cond_t *condp, pthread_mutex_t *mutexp, const struct timespec *abs) argument
H A Drthread_mutex.c97 const struct timespec *abs)
116 if (type == PTHREAD_MUTEX_STRICT_NP && abs == NULL)
121 abs) != ETIMEDOUT)
137 const struct timespec *abs, int timed)
167 error = _rthread_mutex_trylock(mutex, trywait, abs);
192 error = _twait(&mutex->lock, CONTENDED, CLOCK_REALTIME, abs);
214 pthread_mutex_timedlock(pthread_mutex_t *mutexp, const struct timespec *abs) argument
216 return (_rthread_mutex_timedlock(mutexp, 0, abs, 1));
96 _rthread_mutex_trylock(pthread_mutex_t mutex, int trywait, const struct timespec *abs) argument
136 _rthread_mutex_timedlock(pthread_mutex_t *mutexp, int trywait, const struct timespec *abs, int timed) argument
/openbsd-current/games/backgammon/common_source/
H A Dodds.c85 place = abs(25 - b - i);
86 menstuck = abs(board[b]);
89 diff = abs(j - i);
/openbsd-current/gnu/llvm/clang/lib/Headers/
H A D__clang_hip_stdlib.h26 int abs(int __x) { function
/openbsd-current/lib/librthread/
H A Drthread_rwlock.c116 const struct timespec *abs, int timed)
151 abs);
169 const struct timespec *abs)
171 return (_rthread_rwlock_timedrdlock(rwlockp, 0, abs, 1));
193 const struct timespec *abs, int timed)
228 abs);
245 const struct timespec *abs)
247 return (_rthread_rwlock_timedwrlock(rwlockp, 0, abs, 1));
115 _rthread_rwlock_timedrdlock(pthread_rwlock_t *rwlockp, int trywait, const struct timespec *abs, int timed) argument
168 pthread_rwlock_timedrdlock(pthread_rwlock_t *rwlockp, const struct timespec *abs) argument
192 _rthread_rwlock_timedwrlock(pthread_rwlock_t *rwlockp, int trywait, const struct timespec *abs, int timed) argument
244 pthread_rwlock_timedwrlock(pthread_rwlock_t *rwlockp, const struct timespec *abs) argument
/openbsd-current/games/sail/
H A Dmisc.c46 #define distance(x,y) (abs(x) >= abs(y) ? abs(x) + abs(y)/2 : abs(y) + abs(x)/2)
116 dr = abs(dr);
117 dc = abs(dc);
/openbsd-current/gnu/llvm/compiler-rt/lib/builtins/hexagon/
H A Ddivdi3.S28 r1:0 = abs(r1:0)
29 r3:2 = abs(r3:2)
H A Dmoddi3.S27 r1:0 = abs(r1:0)
28 r3:2 = abs(r3:2)
H A Dmodsi3.S27 r2 = abs(r0)
28 r1 = abs(r1)
/openbsd-current/lib/libc/stdlib/
H A DMakefile.inc20 SRCS+= abs.S div.S labs.S ldiv.S
23 SRCS+= abs.c div.c labs.c ldiv.c
25 SRCS+= abs.c div.c labs.c ldiv.c
28 MAN+= a64l.3 abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 atoll.3 \
/openbsd-current/gnu/gcc/libstdc++-v3/include/c_std/
H A Dstd_cstdlib.h76 #undef abs
110 using ::abs;
143 abs(long __i) { return labs(__i); }
174 abs(long long __x) { return __x >= 0 ? __x : -__x; }
209 using ::__gnu_cxx::abs;
/openbsd-current/gnu/lib/libstdc++/libstdc++/include/c_std/
H A Dstd_cstdlib.h56 #undef abs macro
90 using ::abs;
119 abs(long __i) { return labs(__i); } function in namespace:std
149 abs(long long __x) { return __x >= 0 ? __x : -__x; } function in namespace:__gnu_cxx
186 using __gnu_cxx::abs;
/openbsd-current/games/backgammon/backgammon/
H A Dextra.c185 odds(abs(b - i), 0, abs(board[b]));
186 if (abs(board[b]) == 1)
201 c = abs(i - l);
211 ct += abs(board[i]) * (36 - count());
/openbsd-current/games/hack/
H A Dhack.wizard.c161 if((!tx && abs(ty) < BOLT_LIM) || (!ty && abs(tx) < BOLT_LIM)
162 || (abs(tx) == abs(ty) && abs(tx) < BOLT_LIM)){
H A Dhack.termcap.c171 if(abs(cury-y) <= 3 && abs(curx-x) <= 3)
173 else if((x <= 3 && abs(cury-y)<= 3) || (!CM && x<abs(curx-x))) {
/openbsd-current/include/
H A Dstdlib.h88 * Some header files may define an abs macro.
91 #ifdef abs
92 #undef abs macro
93 #warning abs macro collides with abs() prototype, undefining
98 int abs(int);
/openbsd-current/gnu/usr.bin/binutils/opcodes/
H A Dh8500-dis.c118 int abs = 0; local
176 abs =
183 abs = (buffer[byte] << 8) | (buffer[byte + 1]);
186 abs = (buffer[byte]);
295 func (stream, "@0x%0x:24", abs);
298 func (stream, "@0x%0x:16", abs & 0xffff);
301 func (stream, "@0x%0x:8", abs & 0xff);
/openbsd-current/gnu/usr.bin/binutils-2.17/opcodes/
H A Dh8500-dis.c98 int abs = 0; local
155 abs =
162 abs = (buffer[byte] << 8) | (buffer[byte + 1]);
165 abs = (buffer[byte]);
266 func (stream, "@0x%0x:24", abs);
269 func (stream, "@0x%0x:16", abs & 0xffff);
272 func (stream, "@0x%0x:8", abs & 0xff);
/openbsd-current/gnu/gcc/fixincludes/tests/base/
H A Dmath.h61 extern "C" int abs(int);
/openbsd-current/gnu/lib/libstdc++/libstdc++/testsuite/26_numerics/
H A Dcomplex_value.cc43 double d6 = abs(c);
/openbsd-current/gnu/llvm/clang/lib/Basic/
H A DStack.cpp55 size_t StackUsage = (size_t)std::abs(StackDiff);

Completed in 355 milliseconds

1234567891011>>