diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-05-05 23:10:48 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-05-05 23:10:48 +0200 |
commit | 53fbf7a603792987e12ea6bdc63b05b3786732f5 (patch) | |
tree | d19527d4b485c16da42a255f019cc52a5e1d9a57 /mpz/set_q.c | |
parent | 71fc7ed56be892357d91fe7a5ff5ac136024b88a (diff) | |
download | gmp-53fbf7a603792987e12ea6bdc63b05b3786732f5.tar.gz |
* gmp-h.in (mpz_get_ui, mpz_getlimbn, mpz_set_q, mpz_perfect_square_p,
mpz_popcount, mpz_size, mpf_set_ui, mpf_set_si, mpf_size): Provide
these as "extern inlines".
Use just one big extern "C" block.
* mpz/getlimbn.c, mpz/get_ui.c, mpz/perfsqr.c, mpz/popcount.c
mpz/set_q.c, mpz/size.c, mpf/set_si.c, mpf/set_ui.c, mpf/size.c: Use
__GMP_FORCE to get code from gmp.h.
Diffstat (limited to 'mpz/set_q.c')
-rw-r--r-- | mpz/set_q.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mpz/set_q.c b/mpz/set_q.c index 5c5c66fb7..d03fd59f6 100644 --- a/mpz/set_q.c +++ b/mpz/set_q.c @@ -20,11 +20,7 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#define __GMP_FORCE_mpz_set_q 1 + #include "gmp.h" #include "gmp-impl.h" - -void -mpz_set_q (mpz_ptr w, mpq_srcptr u) -{ - mpz_tdiv_q (w, mpq_numref (u), mpq_denref (u)); -} |