cool!  I've been wanting to work with a 128-bit data type for a while now...  
now I can work with GUIDs easier.
is this available under stdint.h as uint128_t and int128_t?

 -------------
Jim Michaels
[email protected]
[email protected]
http://JimsComputerRepairandWebDesign.com
http://JesusnJim.com (my personal site, has software)
http://DoLifeComputers.JesusnJim.com (group which I lead)
---
Computer memory/disk size measurements:
[KB KiB] [MB MiB] [GB GiB] [TB TiB]
[10^3B=1,000B=1KB][2^10B=1,024B=1KiB]
[10^6B=1,000,000B=1MB][2^20B=1,048,576B=1MiB]
[10^9B=1,000,000,000B=1GB][2^30B=1,073,741,824B=1GiB]
[10^12B=1,000,000,000,000B=1TB][2^40B=1,099,511,627,776B=1TiB]
Note: disk size is measured in MB, GB, or TB, not in MiB, GiB, or TiB.  
computer 
memory (RAM) is measured in MiB and GiB.






________________________________
From: Kai Tietz <[email protected]>
To: Sisyphus <[email protected]>
Cc: mingw64 <[email protected]>
Sent: Wed, February 9, 2011 4:06:41 AM
Subject: Re: [Mingw-w64-public] Looking for unsigned __int128

2011/2/9 Sisyphus <[email protected]>:
> Hi ,
>
> I'm running Vista64, and I have a build of mingw64 from last year that has
> the signed __int128 type, but (apparently) no unsigned __int128.
>
> Do we have a (pre-built) mingw64 compiler that provides the unsigned
> __int128 type ?
>
> Cheers,
> Rob

As the native type __int128 (with signed/unsigned variant) are
supported within 4.6, and in earlier versions __int128 type is
emulated by mode-attribute, you will need to update to 4.6 for having
the ability to write 'unsigned __int128'. But you can take a look to
our _mingw.h header, which declares for earlier versions __int128
type.

#ifdef _WIN64
#ifndef __SIZEOF_INT128__
typedef int __int128 __attribute__ ((__mode__ (TI)));
#endif
#endif
#endif /* __GNUC__ */

for an unsigned variant you can create an new type __uint128 as following:

#ifdef _WIN64
#ifndef __SIZEOF_INT128__
typedef unsigned int __uint128 __attribute__ ((__mode__ (TI)));
#endif
#endif
#endif /* __GNUC__ */

Hope this helps.
Kai

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public



      
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to