yogesh warad wrote:
> Hi,
> 
> Which data type is 128-bit long. I have tried QWORD on VS2003, but I
> think it is not supported on it. Is there any other data type ? 
> Thanks in advance.
> 
> Regards Yogesh

There isn't one that is native to C/C++.  This is one of the biggest 
problems I have with the people who made the language - you can't say "I 
want a 32-bit data type" to the compiler and be guaranteed to get one. 
Now, you can probably fake a 128-bit data type with a C++ class.  I 
would probably use two UInt64's to manage storage.  And if you liberally 
use the 'inline' keyword, it will be only slightly slower than a native 
128-bit type would be.  Most modern compilers support 64-bit integers 
(usually via 'unsigned long long int' or equivalent) that a simple 
typedef can take care of.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to