summaryrefslogtreecommitdiff
path: root/gmp-h.in
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2002-06-22 23:18:35 +0200
committerKevin Ryde <user42@zip.com.au>2002-06-22 23:18:35 +0200
commitc4a00a517849c9c954c16e081b80addf78c4ad20 (patch)
tree4cd6e05ad67694cfa8f37a56f54fd60a120ef815 /gmp-h.in
parent1f1695433795f0dee34a389a8225b6ac514890bc (diff)
downloadgmp-c4a00a517849c9c954c16e081b80addf78c4ad20.tar.gz
* gmp-h.in (__DECC): Add notes on testing this for ANSI-ness.
(mpz_mod_ui): Move up to main section, it's still documented.
Diffstat (limited to 'gmp-h.in')
-rw-r--r--gmp-h.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/gmp-h.in b/gmp-h.in
index 9f9f717da..36a36ae81 100644
--- a/gmp-h.in
+++ b/gmp-h.in
@@ -69,6 +69,11 @@ MA 02111-1307, USA. */
_AIX - gnu ansidecl.h asserts that all known AIX compilers are ANSI but
don't always define __STDC__.
+ __DECC - current versions of DEC C (5.9 for instance) for alpha are ANSI,
+ but don't define __STDC__ in their default mode. Don't know if old
+ versions might have been K&R, but let's not worry about that unless
+ someone is still using one.
+
_mips - gnu ansidecl.h says the RISC/OS MIPS compiler is ANSI in SVR4
mode, but doesn't define __STDC__.
@@ -872,6 +877,8 @@ __GMP_DECLSPEC int mpz_millerrabin __GMP_PROTO ((mpz_srcptr, int)) __GMP_ATTRIBU
#define mpz_mod __gmpz_mod
__GMP_DECLSPEC void mpz_mod __GMP_PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr));
+#define mpz_mod_ui mpz_fdiv_r_ui /* same as fdiv_r because divisor unsigned */
+
#define mpz_mul __gmpz_mul
__GMP_DECLSPEC void mpz_mul __GMP_PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr));
@@ -2081,11 +2088,11 @@ __GMP_DECLSPEC_XX std::istream& operator>> (std::istream &, mpf_ptr);
#endif
-/* Compatibility with GMP 2 and earlier. */
+/* Source-level compatibility with GMP 2 and earlier. */
#define mpn_divmod(qp,np,nsize,dp,dsize) \
mpn_divrem (qp, (mp_size_t) 0, np, nsize, dp, dsize)
-/* Compatibility with GMP 1. */
+/* Source-level compatibility with GMP 1. */
#define mpz_mdiv mpz_fdiv_q
#define mpz_mdivmod mpz_fdiv_qr
#define mpz_mmod mpz_fdiv_r
@@ -2100,7 +2107,6 @@ __GMP_DECLSPEC_XX std::istream& operator>> (std::istream &, mpf_ptr);
#define mpz_divmod mpz_fdiv_qr
#define mpz_div_ui mpz_fdiv_q_ui
#define mpz_divmod_ui mpz_fdiv_qr_ui
-#define mpz_mod_ui mpz_fdiv_r_ui
#define mpz_div_2exp mpz_fdiv_q_2exp
#define mpz_mod_2exp mpz_fdiv_r_2exp