Skip to content

Commit

Permalink
Handle stdint detection differently and fix a typo in README (thanks …
Browse files Browse the repository at this point in the history
…Dann

Corbit)
  • Loading branch information
wbhart committed Mar 28, 2014
1 parent 63ed2d0 commit 38bcd91
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ the latter).

OVERVIEW OF MPIR

There are five classes of functions in MPIR.
There are four classes of functions in MPIR.

1. Signed integer arithmetic functions (mpz). These functions are intended
to be easy to use, with their regular interface. The associated type is
Expand Down
6 changes: 5 additions & 1 deletion gmp-h.in
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,10 @@ typedef __mpq_struct *mpq_ptr;
#define __GMP_UNLIKELY(cond) (cond)
#endif

#if defined( _STDINT_H ) || defined ( _STDINT_H_ ) || defined ( _STDINT )
#define MPIR_HAVE_STDINT 1
#endif

/* Allow direct user access to numerator and denominator of a mpq_t object. */
#define mpq_numref(Q) (&((Q)->_mp_num))
#define mpq_denref(Q) (&((Q)->_mp_den))
Expand Down Expand Up @@ -1213,7 +1217,7 @@ __GMP_DECLSPEC void mpz_xor __GMP_PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr));

/****** Integer (i.e. Z) routines for intmaax_t/uintmax_t types ******/

#if defined( _STDINT_H ) || defined ( _STDINT_H_ ) || defined ( _STDINT )
#if defined(MPIR_HAVE_STDINT)

#define __GMP_BITS_PER_UINTMAX (8*sizeof(uintmax_t))

Expand Down
2 changes: 1 addition & 1 deletion mpirxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#endif
#endif

#if defined( _STDINT_H ) || defined ( _STDINT_H_ ) || defined ( _STDINT )
#if defined(MPIR_HAVE_STDINT)
# if INTMAX_MAX != LONG_MAX && (INTMAX_MAX != LLONG_MAX || !defined(MPIRXX_HAVE_LLONG))
# define MPIRXX_INTMAX_T 1
# endif
Expand Down

0 comments on commit 38bcd91

Please sign in to comment.