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

123

/haiku-buildtools/legacy/gcc/gcc/config/mn10200/
H A Dudivmodsi4.c2 udivmodsi4(unsigned long num, unsigned long den, int modwanted) argument
7 while (den < num && bit && !(den & (1L<<31)))
9 den <<=1;
14 if (num >= den)
16 num -= den;
20 den >>=1;
/haiku-buildtools/gcc/libgcc/
H A Dudivmodsi4.c25 udivmodsi4(unsigned long num, unsigned long den, int modwanted) argument
30 while (den < num && bit && !(den & (1L<<31)))
32 den <<=1;
37 if (num >= den)
39 num -= den;
43 den >>=1;
/haiku-buildtools/gcc/libgcc/config/lm32/
H A D_udivmodsi4.c30 __udivmodsi4 (USItype num, USItype den, int modwanted) argument
35 while (den < num && bit && !(den & (1L << 31)))
37 den <<= 1;
42 if (num >= den)
44 num -= den;
48 den >>= 1;
/haiku-buildtools/gcc/gmp/mpq/
H A Dget_den.c1 /* mpq_get_den(den,rat_src) -- Set DEN to the denominator of RAT_SRC.
24 mpq_get_den (MP_INT *den, const MP_RAT *src) argument
28 if (den->_mp_alloc < size)
29 _mpz_realloc (den, size);
31 MPN_COPY (den->_mp_d, src->_mp_den._mp_d, size);
32 den->_mp_size = size;
H A Dset_ui.c25 mpq_set_ui (MP_RAT *dest, unsigned long int num, unsigned long int den) argument
30 den = 1;
32 mpz_set_ui (mpq_denref (dest), den); local
39 den = 1;
48 dest->_mp_den._mp_d[0] = den;
49 dest->_mp_den._mp_size = (den != 0);
H A Dset_si.c25 mpq_set_si (MP_RAT *dest, signed long int num, unsigned long int den) argument
32 den = 1;
34 mpz_set_ui (mpq_denref (dest), den); local
43 den = 1;
52 dest->_mp_den._mp_d[0] = den;
53 dest->_mp_den._mp_size = (den != 0);
H A Dset_den.c1 /* mpq_set_den(dest,den) -- Set the denominator of DEST from DEN.
24 mpq_set_den (MP_RAT *dest, const MP_INT *den) argument
26 mp_size_t size = den->_mp_size;
32 MPN_COPY (dest->_mp_den._mp_d, den->_mp_d, abs_size);
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/ratio/operations/
H A D45866.cc37 VERIFY( ra_type::den == ra_type::type::den );
39 VERIFY( ra_type::den == 4 );
44 VERIFY( rs_type::den == rs_type::type::den );
46 VERIFY( rs_type::den == 4 );
51 VERIFY( rm_type::den == rm_type::type::den );
53 VERIFY( rm_type::den == 8 );
58 VERIFY( rd_type::den
[all...]
H A Dops1.cc34 VERIFY( r.den == 24 );
44 VERIFY( r.den == 24 );
54 VERIFY( r.den == 32 );
64 VERIFY( r.den == 10 );
H A Dops2.cc39 VERIFY( r1.den == two_over_max::den);
46 VERIFY( r2.den == (INTMAX_MAX / 2) + 1 );
57 VERIFY( r1.den == 1);
64 VERIFY( r2.den == (INTMAX_MAX / 2) + 1 );
H A Dops3.cc36 VERIFY( r1.den == 1 );
43 VERIFY( r2.den == INTMAX_MAX - 1 );
56 VERIFY( r1.den == 1 );
63 VERIFY( r2.den == INTMAX_MAX );
/haiku-buildtools/gcc/libgcc/config/cr16/
H A Ddivmodhi3.c30 udivmodhi4 (unsigned short num, unsigned short den, short modwanted) argument
35 while (den < num && bit && !(den & (1 << 15)))
37 den <<= 1;
42 if (num >= den)
44 num -= den;
48 den >>= 1;
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/ratio/cons/
H A Dcons1.cc37 VERIFY( r0.den == 3 );
40 VERIFY( r1.den == r0.den );
42 VERIFY( r2.den == r0.den );
44 VERIFY( r3.den == r0.den );
/haiku-buildtools/gcc/libquadmath/math/
H A Dcatanhq.c58 __float128 i2, num, den; local
65 den = 1.0 - __real__ x;
66 den = i2 + den * den;
68 __real__ res = 0.25 * (logq (num) - logq (den));
70 den = 1 - __real__ x * __real__ x - i2;
72 __imag__ res = 0.5 * atan2q (2.0 * __imag__ x, den);
H A Dcatanq.c63 __float128 r2, num, den; local
67 den = 1 - r2 - __imag__ x * __imag__ x;
69 __real__ res = 0.5 * atan2q (2.0 * __real__ x, den);
74 den = __imag__ x - 1.0;
75 den = r2 + den * den;
77 __imag__ res = 0.25 * logq (num / den);
H A Dctanhq.c57 __float128 den; local
111 den = sinhrx * sinhrx + cosix * cosix;
113 den = cosix * cosix;
114 __real__ res = sinhrx * coshrx / den;
115 __imag__ res = sinix * cosix / den;
/haiku-buildtools/legacy/gcc/libf2c/libF77/
H A Dc_div.c12 double ratio, den; local
24 den = b->i * (1 + ratio*ratio);
25 cr = (a->r*ratio + a->i) / den;
26 c->i = (a->i*ratio - a->r) / den;
32 den = b->r * (1 + ratio*ratio);
33 cr = (a->r + a->i*ratio) / den;
34 c->i = (a->i - a->r*ratio) / den;
H A Dz_div.c11 double ratio, den; local
23 den = b->i * (1 + ratio*ratio);
24 cr = (a->r*ratio + a->i) / den;
25 c->i = (a->i*ratio - a->r) / den;
31 den = b->r * (1 + ratio*ratio);
32 cr = (a->r + a->i*ratio) / den;
33 c->i = (a->i - a->r*ratio) / den;
/haiku-buildtools/gcc/libgcc/config/nios2/
H A Dlib2-divmod-hi.c28 udivmodhi4 (UHItype num, UHItype den, word_type modwanted) argument
33 while (den < num && bit && !(den & (1L<<15)))
35 den <<=1;
40 if (num >= den)
42 num -= den;
46 den >>=1;
H A Dlib2-divmod.c28 udivmodsi4 (USItype num, USItype den, word_type modwanted) argument
33 while (den < num && bit && !(den & (1L<<31)))
35 den <<=1;
40 if (num >= den)
42 num -= den;
46 den >>=1;
/haiku-buildtools/gcc/gmp/mpz/
H A Ddivexact.c1 /* mpz_divexact -- finds quotient when known that quot * den == num && den != 0.
29 mpz_divexact (mpz_ptr quot, mpz_srcptr num, mpz_srcptr den) argument
41 mpz_tdiv_r (rem, num, den);
48 dn = ABSIZ (den);
66 if (quot == num || quot == den)
70 dp = PTR(den);
75 SIZ(quot) = (SIZ(num) ^ SIZ(den)) >= 0 ? qn : -qn;
/haiku-buildtools/gcc/libgcc/config/mep/
H A Dlib2funcs.c47 udivmodsi4(USItype num, USItype den, word_type modwanted) argument
52 while (den < num && bit && !(den & (1L<<31)))
54 den <<=1;
59 if (num >= den)
61 num -= den;
65 den >>=1;
/haiku-buildtools/gcc/libgcc/config/rl78/
H A Drl78-divmod.h33 C3(udivmod,NAME_MODE,4) (UINT_TYPE num, UINT_TYPE den, word_type modwanted)
38 while (den < num && bit && !(den & (1L << BITS_MINUS_1)))
40 den <<= 1;
45 if (num >= den)
47 num -= den;
51 den >>= 1;
/haiku-buildtools/gcc/libgcc/config/msp430/
H A Dmsp430-divmod.h33 C3(udivmod,NAME_MODE,4) (UINT_TYPE num, UINT_TYPE den, word_type modwanted)
38 while (den < num && bit && !(den & (1L << BITS_MINUS_1)))
40 den <<= 1;
45 if (num >= den)
47 num -= den;
51 den >>= 1;
/haiku-buildtools/gcc/libgcc/config/m32c/
H A Dlib2funcs.c35 udivmodsi4 (uint32_type num, uint32_type den, word_type modwanted) argument
40 while (den < num && bit && !(den & (1L << 31)))
42 den <<= 1;
47 if (num >= den)
49 num -= den;
53 den >>= 1;

Completed in 92 milliseconds

123