Searched refs:den (Results 1 - 18 of 18) sorted by relevance

/freebsd-current/contrib/less/
H A Dos.c398 public uintmax muldiv(uintmax val, uintmax num, uintmax den) argument
401 * Like round(val * (double) num / den), but without rounding error.
404 uintmax q = val / den;
405 uintmax r = val % den;
408 uintmax quot = qnum + rnum / den;
409 uintmax rem = rnum % den;
410 return quot + (den / 2 < rem + (quot & ~den & 1));
417 public int percentage(POSITION num, POSITION den) argument
419 return (int) muldiv(num, (POSITION) 100, den);
[all...]
H A Dfuncs.h303 public uintmax muldiv(uintmax val, uintmax num, uintmax den);
304 public int percentage(POSITION num, POSITION den);
/freebsd-current/stand/ficl/
H A Dmath64.c91 INTQR m64FlooredDivI(DPINT num, FICL_INT den) argument
104 if (den < 0)
106 den = -den;
111 uqr = ficlLongDiv(m64CastIU(num), (FICL_UNS)den);
119 qr.rem = den - qr.rem;
260 INTQR m64SymmetricDivI(DPINT num, FICL_INT den) argument
274 if (den < 0)
276 den = -den;
[all...]
H A Dmath64.h56 INTQR m64FlooredDivI(DPINT num, FICL_INT den);
61 INTQR m64SymmetricDivI(DPINT num, FICL_INT den);
/freebsd-current/contrib/llvm-project/libcxx/include/__chrono/
H A Dhh_mm_ss.h50 __width(__CommonType::period::den) < 19 ? __width(__CommonType::period::den) : 6u;
H A Dduration.h68 bool = _Period::den == 1>
83 static_cast<typename _ToDuration::rep>(static_cast<_Ct>(__fd.count()) / static_cast<_Ct>(_Period::den)));
101 static_cast<_Ct>(__fd.count()) * static_cast<_Ct>(_Period::num) / static_cast<_Ct>(_Period::den)));
169 static const intmax_t __gcd_d1_d2 = __static_gcd<_R1::den, _R2::den>::value;
171 static const intmax_t __d1 = _R1::den / __gcd_d1_d2;
173 static const intmax_t __d2 = _R2::den / __gcd_d1_d2;
216 (__no_overflow<_Period2, period>::type::den == 1 &&
H A Dostream.h117 else if constexpr (_Period::den == 1)
120 return std::format(_LIBCPP_STATICALLY_WIDEN(_CharT, "[{}/{}]s"), _Period::num, _Period::den);
/freebsd-current/contrib/llvm-project/libcxx/src/
H A Dchrono.cpp188 auto dur = seconds * nano::den + fractions * nano::den / freq.QuadPart;
/freebsd-current/contrib/llvm-project/libcxx/include/__random/
H A Dshuffle_order_engine.h49 static _LIBCPP_CONSTEXPR const uint64_t den = _Dp / __gcd; member in class:__uratio
51 typedef __uratio<num, den> type;
153 return __evalf<__uratio<_Np, _Dp>::num, __uratio<_Np, _Dp>::den>();
160 const size_t __j = static_cast<size_t>(__uratio<_Np, _Dp>::num * (__y_ - _Min) / __uratio<_Np, _Dp>::den);
/freebsd-current/usr.bin/units/
H A Dunits.c445 char **den, **num; local
448 den = theunit->denominator;
451 while (*num && *den) {
452 comp = strcmp(*den, *num);
454 /* if (*den!=NULLUNIT) free(*den);
456 *den++ = NULLUNIT;
460 den++;
/freebsd-current/contrib/llvm-project/libcxx/include/__condition_variable/
H A Dcondition_variable.h100 _Rep __result_float = __d.count() * __ratio::num / __ratio::den;
134 __ns_rep __result = __d.count() * __ratio::num / __ratio::den;
/freebsd-current/sys/dev/bwn/
H A Dif_bwnvar.h59 #define BWN_TSSI2DBM(num, den) \
60 ((int32_t)((num < 0) ? num / den : (num + den / 2) / den))
/freebsd-current/contrib/bmake/
H A Ddir.c1576 percentage(int num, int den) argument
1578 return den != 0 ? num * 100 / den : 0;
/freebsd-current/sys/dev/bwi/
H A Dbwirf.c1032 _bwi_adjust_devide(int32_t num, int32_t den) argument
1035 return (num / den);
1037 return (num + den / 2) / den;
/freebsd-current/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_atomic.h59 type_rhs den = c * c + d * d; local
62 std::complex<type_lhs> ret(r / den, i / den);
/freebsd-current/crypto/openssh/
H A Ded25519.c1788 fe25519 t, chk, num, den, den2, den4, den6; local
1793 fe25519_mul(&den, &num, &ge25519_ecd); /* den = dy^2 */
1795 fe25519_add(&den, &r->z, &den); /* den = dy^2+1 */
1797 /* Computation of sqrt(num/den) */
1798 /* 1.: computation of num^((p-5)/8)*den^((7p-35)/8) = (num*den^7)^((p-5)/8) */
1799 fe25519_square(&den2, &den);
[all...]
/freebsd-current/sys/gnu/dev/bwn/phy_n/
H A Dif_bwn_phy_n_core.c4221 int32_t num, den, pwr; local
4383 den = 32768 + a1[c] * i;
4384 pwr = max((4 * num + den / 2) / den, -8);
/freebsd-current/contrib/bsnmp/tests/
H A Dcatch.hpp2042 << Ratio::den << ']';

Completed in 280 milliseconds