bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gmp 4] Output line too long.


From: Vincent Lefevre
Subject: Re: [gmp 4] Output line too long.
Date: Tue, 4 Dec 2001 17:19:52 +0100
User-agent: Mutt/1.3.24-current-20011204i

On Tue, Dec 04, 2001 at 16:53:31 +0100, Vincent Lefevre wrote:
> but the file says that this is a problem with limits.h under Solaris.

Concerning this problem, /usr/include/limits.h contains:

#if defined(_LP64)
#define LONG_MIN        (-9223372036854775807L-1L)
                                        /* min value of a "long int" */
#define LONG_MAX        9223372036854775807L
                                        /* max value of a "long int" */
#define ULONG_MAX       18446744073709551615UL
                                        /* max value of "unsigned long int" */
#else   /* _ILP32 */
#define LONG_MIN        (-2147483647L-1L)
                                        /* min value of a "long int" */
#define LONG_MAX        2147483647L     /* max value of a "long int" */
#define ULONG_MAX       4294967295UL    /* max value of "unsigned long int" */
#endif

The problem may be that gcc incorrectly sets _LP64. I haven't tried,
but wouldn't be a good idea to undef _LP64 and define _ILP32 when
the problem occurs?

-- 
Vincent Lefèvre <address@hidden> - Web: <http://www.vinc17.org/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



reply via email to

[Prev in Thread] Current Thread [Next in Thread]