Home
last modified time | relevance | path

Searched refs:quotient (Results 1 – 25 of 34) sorted by relevance

12

/trueos/lib/libutil/
HDhumanize_number.c49 humanize_number(char *buf, size_t len, int64_t quotient, in humanize_number() argument
114 if (quotient < 0) { in humanize_number()
116 quotient = -quotient; in humanize_number()
145 (quotient >= max || (quotient == max - 1 && in humanize_number()
147 remainder = quotient % divisor; in humanize_number()
148 quotient /= divisor; in humanize_number()
155 remainder = quotient % divisor; in humanize_number()
156 quotient /= divisor; in humanize_number()
165 if (((quotient == 9 && remainder < divisordeccut) || quotient < 9) && in humanize_number()
167 s1 = (int)quotient + ((remainder * 10 + divisor / 2) / in humanize_number()
[all …]
/trueos/contrib/gcc/config/arm/
HDbpabi.c44 long long quotient; in __gnu_ldivmod_helper() local
46 quotient = __divdi3 (a, b); in __gnu_ldivmod_helper()
47 *remainder = a - b * quotient; in __gnu_ldivmod_helper()
48 return quotient; in __gnu_ldivmod_helper()
56 unsigned long long quotient; in __gnu_uldivmod_helper() local
58 quotient = __udivdi3 (a, b); in __gnu_uldivmod_helper()
59 *remainder = a - b * quotient; in __gnu_uldivmod_helper()
60 return quotient; in __gnu_uldivmod_helper()
/trueos/contrib/compiler-rt/lib/
HDdivdf3.c134 rep_t quotient, quotientLo; in ARM_EABI_FNALIAS() local
135 wideMultiply(aSignificand << 2, reciprocal, &quotient, &quotientLo); in ARM_EABI_FNALIAS()
151 if (quotient < (implicitBit << 1)) { in ARM_EABI_FNALIAS()
152 residual = (aSignificand << 53) - quotient * bSignificand; in ARM_EABI_FNALIAS()
155 quotient >>= 1; in ARM_EABI_FNALIAS()
156 residual = (aSignificand << 52) - quotient * bSignificand; in ARM_EABI_FNALIAS()
175 rep_t absResult = quotient & significandMask; in ARM_EABI_FNALIAS()
HDdivsf3.c120 rep_t quotient = (uint64_t)reciprocal*(aSignificand << 1) >> 32; in ARM_EABI_FNALIAS() local
136 if (quotient < (implicitBit << 1)) { in ARM_EABI_FNALIAS()
137 residual = (aSignificand << 24) - quotient * bSignificand; in ARM_EABI_FNALIAS()
140 quotient >>= 1; in ARM_EABI_FNALIAS()
141 residual = (aSignificand << 23) - quotient * bSignificand; in ARM_EABI_FNALIAS()
160 rep_t absResult = quotient & significandMask; in ARM_EABI_FNALIAS()
/trueos/contrib/compiler-rt/lib/sparc64/
HDdivmod.m420 * Q -- the partial quotient under development -- initially 0
23 * be required. Equal to CEIL( lg2(quotient)/N )
24 * Note that this is log_base_(2ˆN) of the quotient.
28 * CEIL( lg2(quotient) / N ) x ( 10 + 7N/2 ) + C
30 * different path, as the upper bits of the quotient must be developed
45 * This is the recursive definition of how we develop quotient digits.
48 * $2 -- the current accumulation of quotient bits
50 * We add a new bit to $2 and either recurse or insert the bits in the quotient.
53 * Q -- current quotient
83 ifelse( ANSWER, `quotient', `
[all …]
HDgenerate.sh4 m4 -DANSWER=quotient divmod.m4 | sed -e 's/[[:space:]]*$//' | grep -v '^$' > divsi3.S
HDdivsi3.S71 ! Compute size of quotient, scale comparand.
330 mov %o2,%o0 ! quotient <- %o2
HDmodsi3.S71 ! Compute size of quotient, scale comparand.
/trueos/contrib/gcc/
HDexpmed.c3820 rtx quotient = 0, remainder = 0; in expand_divmod() local
4035 quotient = expand_shift (RSHIFT_EXPR, compute_mode, op0, in expand_divmod()
4046 quotient = emit_store_flag (tquotient, GEU, op0, op1, in expand_divmod()
4048 if (quotient == 0) in expand_divmod()
4099 quotient = expand_shift in expand_divmod()
4124 quotient = expand_shift in expand_divmod()
4137 && SET_DEST (set) == quotient) in expand_divmod()
4158 quotient = op0; in expand_divmod()
4160 quotient = expand_unop (compute_mode, neg_optab, op0, in expand_divmod()
4165 quotient = emit_store_flag (tquotient, EQ, op0, op1, in expand_divmod()
[all …]
HDtree.def617 /* Division for integer result that rounds the quotient toward zero. */
620 /* Division for integer result that rounds the quotient toward infinity. */
/trueos/sys/boot/ficl/
HDmath64.c524 DPUNS quotient; in ficlLongDiv() local
528 quotient.lo = 0; in ficlLongDiv()
529 quotient.hi = 0; in ficlLongDiv()
549 quotient = m64Or(quotient, mask); in ficlLongDiv()
555 result.quot = quotient.lo; in ficlLongDiv()
/trueos/contrib/gcc/config/
HDfp-bit.c975 fractype quotient;
1025 quotient = 0;
1031 quotient |= bit;
1038 if (!ROUND_TOWARDS_ZERO && (quotient & GARDMASK) == GARDMSB)
1040 if (quotient & (1 << NGARDS))
1053 quotient += GARDROUND + 1;
1056 quotient &= ~(fractype) GARDMASK;
1060 a->fraction.ll = quotient;
/trueos/crypto/openssl/doc/crypto/
HDBN_mod_mul_reciprocal.pod44 BN_div_recp() divides B<a> by B<m> using B<recp>. It places the quotient
/trueos/contrib/gcc/doc/
HDlibgcc.texi71 These functions return the quotient of the signed division of @var{a} and
103 These functions return the quotient of the unsigned division of @var{a}
109 These functions calculate both the quotient and remainder of the unsigned
110 division of @var{a} and @var{b}. The return value is the quotient, and
267 These functions return the quotient of @var{a} and @var{b}; that is,
489 These functions return the quotient of @math{@var{a} + i@var{b}} and
527 These functions return the quotient of @var{a} and @var{b}; that is,
HDrtl.texi1920 @cindex quotient
1922 Represents the quotient in signed division of @var{x} by @var{y},
1924 mode, it represents the exact quotient; otherwise, the integerized
1925 quotient.
1928 quotient widths are not all the same; you should represent
1948 the quotient.
/trueos/lib/libc/softfloat/bits32/
HDsoftfloat-macros480 Returns an approximation to the 32-bit integer quotient obtained by dividing
482 divisor `b' must be at least 2^31. If q is the exact quotient truncated
484 If the exact quotient q is larger than 32 bits, the maximum positive 32-bit
/trueos/usr.bin/sed/tests/
HDmath.sed239 # .[/%] numerator q quotient r remainder-divisor @stack
/trueos/lib/libc/softfloat/bits64/
HDsoftfloat-macros555 Returns an approximation to the 64-bit integer quotient obtained by dividing
557 divisor `b' must be at least 2^63. If q is the exact quotient truncated
559 If the exact quotient q is larger than 64 bits, the maximum positive 64-bit
/trueos/sys/dev/mrsas/
HDmrsas_fp.c182 int quotient; \
183 quotient = ((u_int64_t) (dividend)) / (u_int32_t) (divisor); \
184 quotient;})
/trueos/contrib/gcc/config/sparc/
HDlb1spl.asm104 ! rewritten to only calculate the quotient.
HDlb1spc.asm147 ! Ready to divide. Compute size of quotient; scale comparand.
493 ! Ready to divide. Compute size of quotient; scale comparand.
/trueos/cddl/contrib/opensolaris/lib/libdtrace/common/
HDdt_consume.c231 dt_divide_128(uint64_t *dividend, uint64_t divisor, uint64_t *quotient) in dt_divide_128() argument
270 quotient[0] = result[0]; in dt_divide_128()
271 quotient[1] = result[1]; in dt_divide_128()
/trueos/usr.sbin/bsnmpd/modules/snmp_bridge/
HDBRIDGE-MIB.txt130 floor = quotient [ignore remainder]
140 ceiling = quotient [if remainder is 0], or
141 quotient + 1 [if remainder is nonzero]
/trueos/contrib/gdb/gdb/doc/
HDagentexpr.texi279 the top value, and push the quotient. If the divisor is zero, terminate
284 by the top value, and push the quotient. If the divisor is zero,
/trueos/crypto/heimdal/lib/wind/
HDrfc3492.txt160 quotient of x divided by y, discarding the remainder, and (x mod y)
162 these operators only with nonnegative operands, so the quotient and

12