If you only need 64 bit integers, the type:
long long int
is a 64 bit signed integer for GCC on all platforms that support 64 bit 
integers.
And the type
unsigned long long int
is a 64 bit unsigned integer for GCC on all platforms that support 64 bit 
integers.
You do not need any special libraries for this type.

If you are using the Microsoft or Intel compilers, the most recent versions 
support those types, but older versions of those compilers demand that you call 
the integer types:
__int64 
and
unsigned __int64

MPIR supports arbitrary precision integers which may or may not be useful for 
what you want to do.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Jason
Sent: Monday, October 03, 2011 12:06 PM
To: [email protected]
Subject: [mpir-devel] Fwd: Question on long integer


----------  Forwarded Message  ----------

Subject: Question on long integer
Date: Sunday 02 October 2011, 04:49:58
From: Rocki Ozaki <[email protected]>
To: "[email protected]" <[email protected]>

In considering whether to use your MPIR for one of our development, I have a 
question that need some specific answer, and I wonder if you could help me in 
this regards.

I have been using the Intel C++ compiler and gnu GMP math library writing a 
Windows 64bit application. However came into a deadlock when I got to know that 
Windows treat 64 integer by "long long int" whereas the GMP has no such type 
but the normal "long int" covers 64bit operation. Thereby I am forced to use 
"long int" and cannot take advantage of the 64bit power of the CPU.

The question is, does your library have support for "long long int" that is 
defined by Windows for 64bit integer operation?

Thanks and best regards
Rocki Ozaki
[email protected]

-----------------------------------------

--
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.

Reply via email to