Searched refs:rem (Results 1 - 25 of 95) sorted by relevance

1234

/haiku-buildtools/gcc/gmp/mpz/
H A Dcdiv_r.c25 mpz_cdiv_r (mpz_ptr rem, mpz_srcptr dividend, mpz_srcptr divisor) argument
36 if (rem == divisor)
44 mpz_tdiv_r (rem, dividend, divisor);
46 if ((divisor_size ^ dividend->_mp_size) >= 0 && rem->_mp_size != 0)
47 mpz_sub (rem, rem, divisor);
H A Dfdiv_r.c25 mpz_fdiv_r (mpz_ptr rem, mpz_srcptr dividend, mpz_srcptr divisor) argument
36 if (rem == divisor)
43 mpz_tdiv_r (rem, dividend, divisor);
45 if ((divisor_size ^ dividend->_mp_size) < 0 && rem->_mp_size != 0)
46 mpz_add (rem, rem, divisor);
H A Dmod.c25 mpz_mod (mpz_ptr rem, mpz_srcptr dividend, mpz_srcptr divisor) argument
36 if (rem == divisor)
43 mpz_tdiv_r (rem, dividend, divisor);
45 if (rem->_mp_size != 0)
50 mpz_sub (rem, rem, divisor);
52 mpz_add (rem, rem, divisor);
H A Dcdiv_qr.c25 mpz_cdiv_qr (mpz_ptr quot, mpz_ptr rem, mpz_srcptr dividend, mpz_srcptr divisor) argument
37 if (quot == divisor || rem == divisor)
45 mpz_tdiv_qr (quot, rem, dividend, divisor);
47 if (xsize >= 0 && rem->_mp_size != 0)
50 mpz_sub (rem, rem, divisor);
H A Dfdiv_qr.c25 mpz_fdiv_qr (mpz_ptr quot, mpz_ptr rem, mpz_srcptr dividend, mpz_srcptr divisor) argument
37 if (quot == divisor || rem == divisor)
45 mpz_tdiv_qr (quot, rem, dividend, divisor);
47 if (xsize < 0 && rem->_mp_size != 0)
50 mpz_add (rem, rem, divisor);
H A Dcdiv_q.c29 mpz_t rem; local
34 MPZ_TMP_INIT (rem, ABS (divisor_size));
36 mpz_tdiv_qr (quot, rem, dividend, divisor);
38 if ((divisor_size ^ dividend_size) >= 0 && rem->_mp_size != 0)
H A Dfdiv_q.c29 mpz_t rem; local
34 MPZ_TMP_INIT (rem, ABS (divisor_size));
36 mpz_tdiv_qr (quot, rem, dividend, divisor);
38 if ((divisor_size ^ dividend_size) < 0 && rem->_mp_size != 0)
H A Dtdiv_r_ui.c1 /* mpz_tdiv_r_ui(rem, dividend, divisor_limb)
26 mpz_tdiv_r_ui (mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor) argument
38 SIZ(rem) = 0;
55 SIZ(rem) = ns >= 0 ? 1 : -1;
56 PTR(rem)[0] = rl;
60 MPZ_REALLOC (rem, 2);
61 rp = PTR(rem);
71 SIZ(rem) = ns >= 0 ? rn : -rn;
78 SIZ(rem) = 0;
83 SIZ(rem)
[all...]
H A Dcdiv_r_ui.c28 mpz_cdiv_r_ui (mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor) argument
40 SIZ(rem) = 0;
54 MPZ_REALLOC (rem, 2);
55 rp = PTR(rem);
81 SIZ(rem) = -rn;
88 SIZ(rem) = 0;
94 PTR(rem)[0] = rl;
95 SIZ(rem) = -1;
H A Dfdiv_r_ui.c26 mpz_fdiv_r_ui (mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor) argument
38 SIZ(rem) = 0;
52 MPZ_REALLOC (rem, 2);
53 rp = PTR(rem);
79 SIZ(rem) = rn;
86 SIZ(rem) = 0;
92 PTR(rem)[0] = rl;
93 SIZ(rem) = 1;
H A Dtdiv_qr_ui.c1 /* mpz_tdiv_qr_ui(quot,rem,dividend,short_divisor) --
27 mpz_tdiv_qr_ui (mpz_ptr quot, mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor) argument
40 SIZ(rem) = 0;
60 SIZ(rem) = ns >= 0 ? 1 : -1;
61 PTR(rem)[0] = rl;
65 MPZ_REALLOC (rem, 2);
66 rp = PTR(rem);
74 SIZ(rem) = ns >= 0 ? rn : -rn;
81 SIZ(rem) = 0;
86 SIZ(rem)
[all...]
H A Dremove.c27 mpz_t x, rem; local
53 mpz_init (rem);
64 mpz_tdiv_qr (x, rem, dest, fpow[p]);
65 if (SIZ (rem) != 0)
80 mpz_tdiv_qr (x, rem, dest, fpow[p]);
81 if (SIZ (rem) == 0)
90 mpz_clear (rem);
H A Dsqrtrem.c1 /* mpz_sqrtrem(root,rem,x) -- Set ROOT to floor(sqrt(X)) and REM
31 mpz_sqrtrem (mpz_ptr root, mpz_ptr rem, mpz_srcptr op) argument
33 msqrt (mpz_srcptr op, mpz_ptr root, mpz_ptr rem)
49 SIZ(rem) = 0;
53 if (rem->_mp_alloc < op_size)
54 _mpz_realloc (rem, op_size);
89 rem_size = mpn_sqrtrem (root_ptr, rem->_mp_d, op_ptr, op_size);
96 rem->_mp_size = rem_size;
H A Dtdiv_r.c1 /* mpz_tdiv_r(rem, dividend, divisor) -- Set REM to DIVIDEND mod DIVISOR.
25 mpz_tdiv_r (mpz_ptr rem, mpz_srcptr num, mpz_srcptr den) argument
41 MPZ_REALLOC (rem, dl);
45 if (num != rem)
49 rp = PTR (rem);
51 SIZ (rem) = SIZ (num);
58 rp = PTR (rem);
87 SIZ (rem) = ns >= 0 ? dl : -dl;
H A Dcdiv_qr_ui.c28 mpz_cdiv_qr_ui (mpz_ptr quot, mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor) argument
41 SIZ(rem) = 0;
57 MPZ_REALLOC (rem, 2);
58 rp = PTR(rem);
86 SIZ(rem) = -rn;
93 SIZ(rem) = 0;
102 PTR(rem)[0] = rl;
103 SIZ(rem) = -(rl != 0);
H A Dfdiv_qr_ui.c26 mpz_fdiv_qr_ui (mpz_ptr quot, mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor) argument
39 SIZ(rem) = 0;
55 MPZ_REALLOC (rem, 2);
56 rp = PTR(rem);
84 SIZ(rem) = rn;
91 SIZ(rem) = 0;
100 PTR(rem)[0] = rl;
101 SIZ(rem) = rl != 0;
H A Dtdiv_qr.c1 /* mpz_tdiv_qr(quot,rem,dividend,divisor) -- Set QUOT to DIVIDEND/DIVISOR,
30 mpz_tdiv_qr (mpz_ptr quot, mpz_ptr rem, mpz_srcptr num, mpz_srcptr den) argument
32 mdiv (mpz_srcptr num, mpz_srcptr den, mpz_ptr quot, mpz_ptr rem)
49 MPZ_REALLOC (rem, dl);
53 if (num != rem)
57 rp = PTR (rem);
59 SIZ (rem) = SIZ (num);
61 /* This needs to follow the assignment to rem, in case the
71 rp = PTR (rem);
104 SIZ (rem)
[all...]
H A Drootrem.c1 /* mpz_rootrem(root, rem, u, nth) -- Set ROOT to floor(U^(1/nth)) and
26 mpz_rootrem (mpz_ptr root, mpz_ptr rem, mpz_srcptr u, unsigned long int nth) argument
47 SIZ(rem) = 0;
62 if (u != rem)
63 remp = MPZ_REALLOC (rem, un);
84 else if (u == rem)
88 SIZ(rem) = remn;
H A Ddivexact.c39 mpz_t rem; local
40 mpz_init (rem);
41 mpz_tdiv_r (rem, num, den);
42 ASSERT (SIZ(rem) == 0);
43 mpz_clear (rem);
/haiku-buildtools/gcc/gcc/testsuite/gcc.target/sparc/
H A Dstruct-ret-check.c18 int rem; member in struct:mydiv_t
29 bar.rem = 3;
63 dcheck.rem = 1;
79 if ((dcheck.rem != 3) || (dcheck.quot !=4))
84 dcheck.rem = 1;
106 if ((dcheck.rem != 1) || (dcheck.quot != 2))
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/
H A Dstruct-ret-libc.c13 if ((d.quot != 4) || (d.rem))
/haiku-buildtools/gcc/libquadmath/math/
H A Dcbrtq.c68 int e, rem, sign; local
100 rem = e;
102 rem -= 3 * e;
103 if (rem == 1)
105 else if (rem == 2)
111 rem = e;
113 rem -= 3 * e;
114 if (rem == 1)
116 else if (rem == 2)
/haiku-buildtools/gcc/gmp/tests/mpz/
H A Dt-sqrtrem.c35 mpz_t x, rem; local
53 mpz_init (rem);
68 mpz_sqrtrem (x, rem, x2);
70 MPZ_CHECK_FORMAT (rem);
76 dump_abort (x2, x, rem);
83 dump_abort (x2, x, rem);
85 mpz_add (temp2, temp, rem);
89 dump_abort (x2, x, rem);
95 mpz_clear (rem);
104 dump_abort (mpz_t x2, mpz_t x, mpz_t rem) argument
[all...]
/haiku-buildtools/gcc/mpfr/src/
H A Drem1.c36 Put x - q*y in rem, rounded according to rnd.
40 If rem is zero, then it has the sign of x.
41 The returned 'int' is the inexact flag giving the place of rem wrt x - q*y.
43 If x or y is NaN: *quo is undefined, rem is NaN.
44 If x is Inf, whatever y: *quo is undefined, rem is NaN.
45 If y is Inf, x not NaN nor Inf: *quo is 0, rem is x.
46 If y is 0, whatever x: *quo is undefined, rem is NaN.
47 If x is 0, whatever y (not NaN nor 0): *quo is 0, rem is x.
56 mpfr_rem1 (mpfr_ptr rem, long *quo, mpfr_rnd_t rnd_q, argument
71 MPFR_SET_NAN (rem);
213 mpfr_remainder(mpfr_ptr rem, mpfr_srcptr x, mpfr_srcptr y, mpfr_rnd_t rnd) argument
219 mpfr_remquo(mpfr_ptr rem, long *quo, mpfr_srcptr x, mpfr_srcptr y, mpfr_rnd_t rnd) argument
226 mpfr_fmod(mpfr_ptr rem, mpfr_srcptr x, mpfr_srcptr y, mpfr_rnd_t rnd) argument
[all...]
/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Ddivconst-2.c16 std_eqn (long num, long denom, long quot, long rem) argument
18 /* For completeness, a check for "ABS (rem) < ABS (denom)" belongs here,
20 return quot * (-0x7fffffffL - 1L) + rem == num;

Completed in 289 milliseconds

1234