Home
last modified time | relevance | path

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

12

/freebsd/lib/libutil/
H A Dhumanize_number.c48 humanize_number(char *buf, size_t len, int64_t quotient, in humanize_number() argument
113 if (quotient < 0) { in humanize_number()
115 quotient = -quotient; in humanize_number()
144 (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 …]
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/
H A Dudivmodti4.c106 utwords quotient; in __udivmodti4() local
118 quotient.s.low = udiv128by64to64(dividend.s.high, dividend.s.low, in __udivmodti4()
120 quotient.s.high = 0; in __udivmodti4()
124 quotient.s.high = dividend.s.high / divisor.s.low; in __udivmodti4()
126 quotient.s.low = udiv128by64to64(dividend.s.high, dividend.s.low, in __udivmodti4()
131 return quotient.all; in __udivmodti4()
137 quotient.s.high = 0; in __udivmodti4()
138 quotient.s.low = 0; in __udivmodti4()
140 quotient.s.low <<= 1; in __udivmodti4()
149 quotient.s.low |= s & 1; in __udivmodti4()
[all …]
H A Dint_div_impl.inc79 s_a ^= s_b; // sign of quotient
/freebsd/usr.bin/dc/
H A Dmem.c58 struct number *quotient; in div_number() local
62 quotient = new_number(); in div_number()
63 quotient->scale = bscale; in div_number()
70 normalize(dividend, scale + quotient->scale); in div_number()
74 bn_check(BN_div(quotient->number, NULL, dividend->number, in div_number()
78 return (quotient); in div_number()
H A Dinout.c223 struct number *quotient, *divisor, *_n; in readnumber() local
238 quotient = div_number(n, divisor, bscale); in readnumber()
240 n = quotient; in readnumber()
H A Dbcode.c1118 struct number *a, *b, *frac, *quotient, *rdiv, *remainder; in bdivmod() local
1132 quotient = new_number(); in bdivmod()
1137 quotient->scale = bmachine.scale; in bdivmod()
1163 bn_check(BN_add(quotient->number, rdiv->number, frac->number)); in bdivmod()
1167 push_number(quotient); in bdivmod()
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/sparc64/
H A Ddivmod.m420 * Q -- the partial quotient under development -- initially 0
23 * be required. Equal to CEIL( lg2(quotient)/N )
28 * CEIL( lg2(quotient) / N ) x ( 10 + 7N/2 ) + C
48 * $2 -- the current accumulation of quotient bits
53 * Q -- current quotient
83 ifelse( ANSWER, `quotient', `
130 ! Compute size of quotient, scale comparand.
230 ifelse( ANSWER, `quotient',
239 ifelse( ANSWER, `quotient',
245 ifelse( ANSWER, `quotient',
[all …]
H A Dgenerate.sh4 m4 -DANSWER=quotient divmod.m4 | sed -e 's/[[:space:]]*$//' | grep -v '^$' > divsi3.S
H A Ddivsi3.S71 ! Compute size of quotient, scale comparand.
330 mov %o2,%o0 ! quotient <- %o2
/freebsd/sys/contrib/dev/rtw89/
H A Dutil.h27 s32 quotient; in s32_div_u32_round_down() local
29 quotient = dividend / i_divisor; in s32_div_u32_round_down()
33 quotient--; in s32_div_u32_round_down()
39 return quotient; in s32_div_u32_round_down()
/freebsd/sys/contrib/device-tree/Bindings/power/avs/
H A Dqcom,cpr.yaml59 - description: Corner 1 quotient offset
60 - description: Corner 2 quotient offset
61 - description: Corner 3 quotient offset
65 - description: Corner 1 quotient
66 - description: Corner 2 quotient
67 - description: Corner 3 quotient
/freebsd/stand/ficl/
H A Dmath64.c523 DPUNS quotient; in ficlLongDiv() local
527 quotient.lo = 0; in ficlLongDiv()
528 quotient.hi = 0; in ficlLongDiv()
548 quotient = m64Or(quotient, mask); in ficlLongDiv()
554 result.quot = quotient.lo; in ficlLongDiv()
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/avr/
H A Ddivmodhi4.S49 ret ; Return quotient via R23:R22 and remainder via R25:R24.
57 ret ; Return quotient via R23:R22 and remainder via R25:r24.
H A Ddivmodqi4.S44 ret ; Return quotient via R24 and remainder via R25.
H A Dudivmodqi4.S38 com r24 ; The uint8 quotient is returned via R24.
H A Dudivmodhi4.S46 mov r23, r25 ; The quotient is returned in R23:R22.
/freebsd/crypto/openssl/test/
H A Dbntests.pl68 my $quotient = bn($s{'Quotient'});
74 $b->bmul($quotient);
88 return if $rempassed && $quotient == $a;
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/arm/
H A Ddivmodsi4.S28 @ Calculate the quotient and remainder of the (signed) division. The return
29 @ value is the quotient, the remainder is placed in the variable.
H A Dudivmodsi4.S22 @ Calculate the quotient and remainder of the (unsigned) division. The return
23 @ value is the quotient, the remainder is placed in the variable.
H A Ddivsi3.S31 @ Calculate and return the quotient of the (signed) division.
H A Dudivsi3.S25 @ Calculate and return the quotient of the (unsigned) division.
/freebsd/sys/contrib/device-tree/Bindings/iio/afe/
H A Dvoltage-divider.txt29 is scaled by the Rout / (R + Rout) quotient.
H A Dvoltage-divider.yaml49 the Rout / (R + Rout) quotient.
/freebsd/crypto/openssl/doc/man3/
H A DBN_mod_mul_reciprocal.pod43 BN_div_recp() divides B<a> by B<m> using B<recp>. It places the quotient
/freebsd/crypto/openssl/crypto/bn/asm/
H A Dbn-c64xplus.asm193 [!A2] MV B4,A4 ; reassign lo, will be quotient
210 ||[!A1] OR 1,A4,A4 ; quotient

12