Home
last modified time | relevance | path

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

12345678910>>...16

/freebsd-13.1/contrib/bc/tests/bc/
H A Dabs.txt1 abs(0)
2 abs(1)
3 abs(.289365)
4 abs(289.82937658)
5 abs(-19)
6 abs(-.2098180)
7 abs(-198289.1098376)
H A Dassignments.txt64 abs(i--)
65 abs(--i)
66 abs(++i)
67 abs(i++)
H A Derrors.txt230 5 abs(-5)
241 abs("string")
242 abs(a[])
251 abs
254 abs(1
/freebsd-13.1/contrib/bc/gen/
H A Dlib2.bc45 p=abs(p)$
47 x=abs(x)
56 p=abs(p)$
58 x=abs(x)
65 n=abs(n)$
72 n=abs(n)$
73 k=abs(k)$
120 x=abs(x)
479 define bshl(a,b){return abs(a)$*2^abs(b)$}
480 define bshr(a,b){return (abs(a)$/2^abs(b)$)$}
[all …]
/freebsd-13.1/contrib/llvm-project/libcxx/include/
H A Dstdlib.h99 #undef abs
107 inline _LIBCPP_INLINE_VISIBILITY long abs(long __x) _NOEXCEPT { in abs() function
111 inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT { in abs() function
118 inline _LIBCPP_INLINE_VISIBILITY float abs(float __lcpp_x) _NOEXCEPT { in abs() function
122 inline _LIBCPP_INLINE_VISIBILITY double abs(double __lcpp_x) _NOEXCEPT { in abs() function
127 abs(long double __lcpp_x) _NOEXCEPT { in abs() function
/freebsd-13.1/contrib/llvm-project/lld/Common/
H A DReproduce.cpp25 SmallString<128> abs = path; in relativeToRoot() local
26 if (fs::make_absolute(abs)) in relativeToRoot()
28 path::remove_dots(abs, /*remove_dot_dot=*/true); in relativeToRoot()
34 StringRef root = path::root_name(abs); in relativeToRoot()
40 path::append(res, path::relative_path(abs)); in relativeToRoot()
/freebsd-13.1/lib/msun/tests/
H A Drem_test.c158 q = abs(q); in testl()
159 ATF_CHECK(q == (abs(expected_quo) & mask(q))); in testl()
180 q = abs(q); in testd()
181 ATF_CHECK(q == (abs(expected_quo) & mask(q))); in testd()
202 q = abs(q); in testf()
203 ATF_CHECK((q & mask(q)) == (abs(expected_quo) & mask(q))); in testf()
/freebsd-13.1/stand/mips/uboot/
H A DMakefile51 ldscript.abs:
57 ubldr: ${OBJS} ldscript.abs ${.CURDIR}/ldscript.${MACHINE_CPUARCH} ${DPADD}
58 ${CC} ${CFLAGS} -T ldscript.abs ${LDFLAGS} \
62 CLEANFILES+= ldscript.abs ldscript.pie ubldr ubldr.pie ubldr.bin
/freebsd-13.1/sys/dev/videomode/
H A Dpickmode.c82 diff = abs(mref - refresh); in pick_mode_by_ref()
172 rtemp = abs(refresh - in sort_modes()
182 if (abs(abest - atemp) > (abest / 8) && in sort_modes()
183 abs(aspect - atemp) < abs(aspect - abest)) { in sort_modes()
188 abs(abest - atemp) <= (abest / 8)) { in sort_modes()
/freebsd-13.1/contrib/netbsd-tests/lib/libm/
H A Dt_cabsl.cxx48 sum += std::abs(cld); in ATF_TEST_CASE_BODY()
51 sum += std::abs(cd); in ATF_TEST_CASE_BODY()
54 sum += std::abs(cf); in ATF_TEST_CASE_BODY()
/freebsd-13.1/stand/arm/uboot/
H A DMakefile49 ldscript.abs:
55 ubldr: ${OBJS} ldscript.abs ${.CURDIR}/ldscript.${MACHINE_CPUARCH} ${DPADD}
56 ${CC} ${CFLAGS} -T ldscript.abs ${LDFLAGS} \
66 CLEANFILES+= ldscript.abs ldscript.pie ubldr ubldr.pie ubldr.bin
/freebsd-13.1/contrib/nvi/ex/
H A Dex_z.c33 MARK abs; in ex_z() local
90 abs.lno = sp->lno; in ex_z()
91 abs.cno = sp->cno; in ex_z()
92 (void)mark_set(sp, ABSMARK1, &abs, 1); in ex_z()
H A Dex_global.c65 MARK abs; in ex_g_setup() local
151 abs.lno = sp->lno; in ex_g_setup()
152 abs.cno = sp->cno; in ex_g_setup()
153 if (mark_set(sp, ABSMARK1, &abs, 1)) in ex_g_setup()
/freebsd-13.1/contrib/llvm-project/clang/lib/Headers/openmp_wrappers/
H A Dcomplex_cmath.h60 return abs(__c.real()); in norm()
62 return abs(__c.imag()); in norm()
109 return std::complex<_Tp>(log(abs(__x)), arg(__x)); in log()
132 return polar(sqrt(abs(__x)), arg(__x) / _Tp(2)); in sqrt()
206 return std::complex<_Tp>(abs(__x.real()), __x.imag()); in acosh()
225 return std::complex<_Tp>(abs(__x.imag()), in acosh()
253 if (abs(__x.real()) == _Tp(1) && __x.imag() == _Tp(0)) { in atanh()
281 return std::complex<_Tp>(abs(__x.real()), _Tp(NAN)); in cosh()
287 return std::complex<_Tp>(abs(__x.real()), __x.imag()); in cosh()
352 return std::complex<_Tp>(abs(__z.imag()), abs(__z.real())); in acos()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Headers/
H A D__clang_cuda_math_forward_declares.h26 __DEVICE__ long abs(long);
27 __DEVICE__ long long abs(long long);
28 __DEVICE__ double abs(double);
29 __DEVICE__ float abs(float);
30 __DEVICE__ int abs(int);
200 using ::abs;
/freebsd-13.1/sys/tools/sound/
H A Dfeeder_rate_mkfilter.awk53 function abs(x) function
356 printf(" %s0x%08x,", (v < 0) ? "-" : " ", abs(v));
370 if (abs(v) > abs(largest_interp))
372 printf(" %s0x%08x,", (v < 0) ? "-" : " ", abs(v));
485 scale = sprintf("(v) << %d", abs(s1));
779 v = ((Z_ONE - 1) * abs(largest_interp)) / INT32_MAX;
809 v = (Z_ONE - 1) * abs(largest_interp);
815 abs(zinterpunshift));
823 abs(Z_INTERP_UNSHIFT));
891 v = shr(Z_ONE - 1, Z_UNSHIFT) * abs(largest_interp);
/freebsd-13.1/usr.bin/locate/locate/
H A Dutil.c248 MAXPATHLEN, abs(i) < abs(hi) ? i : hi);
274 MAXPATHLEN, abs(word) < abs(hword) ? word : hword);
/freebsd-13.1/sys/dev/usb/input/
H A Dwsp.c1072 abs(sc->pos_x[0] - sc->pos_x[1]), in wsp_intr_callback()
1073 abs(sc->pos_y[0] - sc->pos_y[1]))); in wsp_intr_callback()
1096 abs(sc->dy_sum) < 5) { in wsp_intr_callback()
1166 abs(sc->dx_sum) < 1 && abs(sc->dy_sum) < 1 ) in wsp_intr_callback()
1182 if ((abs(sc->index[0]->rel_x) + abs(sc->index[0]->rel_y)) < in wsp_intr_callback()
1183 (abs(sc->index[1]->rel_x) + abs(sc->index[1]->rel_y)) && in wsp_intr_callback()
1189 if ((abs(sc->index[0]->rel_x) + abs(sc->index[0]->rel_y)) >= in wsp_intr_callback()
1190 (abs(sc->index[1]->rel_x) + abs(sc->index[1]->rel_y)) && in wsp_intr_callback()
1220 abs(sc->dx_sum) + abs(sc->dy_sum) > tun.scr_hor_threshold) in wsp_intr_callback()
1221 sc->scr_mode = abs(sc->dx_sum) > in wsp_intr_callback()
[all …]
/freebsd-13.1/sys/dev/evdev/
H A Dinput.h103 #define EVIOCGABS(abs) _IOR(EVDEV_IOC_MAGIC, 0x40 + (abs), struct input_absinfo) /* get abs value/… argument
104 #define EVIOCSABS(abs) _IOW(EVDEV_IOC_MAGIC, 0xc0 + (abs), struct input_absinfo) /* set abs value/… argument
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/builtins/
H A Dfp_div_impl.inc107 // abs(x0(b) - 1/b) <= abs(x0(1) - 1/1) = 3/4 - 1/sqrt(2) = 0.04289...,
127 // abs(E_n) <= abs(e_n) + (1/b_hw - 1/b)
128 // = abs(e_n) + (b - b_hw) / (b*b_hw)
129 // <= abs(e_n) + 2 * 2^-HW
217 // abs(e_{n+1}) <= 2*abs(e_n)*U + max(2*e_n^2 + U, 2 * U)
220 // Let abs(e_n) <= u_n * U,
221 // then abs(e_{n+1}) <= 2 * u_n * U^2 + max(2 * u_n^2 * U^2 + U, 2 * U)
288 // abs(E_{N-1}) <= (u_{N-1} + 2 /* due to conversion e_n -> E_n */) * 2^-HW
290 // abs(E_{N-1}) <= (u_{N-1} + 3.01) * 2^-HW
295 // abs(E_N) <= 2^-W * [ 4 * abs(E_{N-1}) + max(2 * abs(E_{N-1})^2 * 2^W + 4, 8)) ]
[all …]
/freebsd-13.1/crypto/heimdal/lib/krb5/
H A Dtest_time.c57 diff2 = abs(sec - tv.tv_sec); in check_set_time()
61 abs(sec - tv.tv_sec)); in check_set_time()
/freebsd-13.1/sys/dev/qlnx/qlnxe/
H A Decore_l2.c267 p_cid->abs = p_cid->rel; in _ecore_eth_queue_to_cid()
281 &p_cid->abs.queue_id); in _ecore_eth_queue_to_cid()
290 &p_cid->abs.stats_id); in _ecore_eth_queue_to_cid()
294 p_cid->abs.stats_id = p_cid->rel.stats_id; in _ecore_eth_queue_to_cid()
313 p_cid->abs.queue_id, in _ecore_eth_queue_to_cid()
570 OSAL_CPU_TO_LE16(p_queue->abs.queue_id); in ecore_sp_vport_update_rss()
959 p_ramrod->vport_id = p_cid->abs.vport_id; in ecore_eth_rxq_start_ramrod()
1095 p_ramrod->vport_id = p_cid->abs.vport_id; in ecore_sp_eth_rx_queues_update()
1141 p_ramrod->vport_id = p_cid->abs.vport_id; in ecore_sp_eth_rx_queues_set_default()
1176 p_ramrod->vport_id = p_cid->abs.vport_id; in ecore_eth_pf_rx_queue_stop()
[all …]
/freebsd-13.1/contrib/ntp/sntp/libevent/test/
H A Dcheck-dumpevents.py37 if .9 < abs(t-T) < 1.1:
39 elif 2.4 < abs(t-T) < 2.6:
/freebsd-13.1/contrib/libevent/test/
H A Dcheck-dumpevents.py37 if .9 < abs(t-T) < 1.1:
39 elif 2.4 < abs(t-T) < 2.6:
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DFileUtilities.cpp146 if (AbsTolerance < std::abs(V1-V2)) { in CompareNumbers()
150 Diff = std::abs(V1/V2 - 1.0); in CompareNumbers()
152 Diff = std::abs(V2/V1 - 1.0); in CompareNumbers()
159 << "abs. diff = " << std::abs(V1-V2) << " rel.diff = " << Diff << '\n' in CompareNumbers()

12345678910>>...16