2011/2/10 Sisyphus <[email protected]>:
>
> ----- Original Message -----
> From: "Jim Michaels"
>
>> 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?
>
> Not in my version (4.6.0 20100414) of the compiler - I can't speak for more
> recent editions.
>
> All I have is the (signed) __int128, and now the (unsigned) __uint128.
> However, I guess I could typedef them to int128_t and uint128_t if I wanted
> to use those symbols instead.
>
> Cheers,
> Rob

Well, the builtin __int128 type is just available for targets
supporting wide-enough TImode. For x86 (means 32-bit) this isn't the
case, and therefore this feature is at the moment just available for
x64.
As those aren't standard integers, you won't find them in stdint.h.
But of couse you can typedef them easily (for 4.6 via builtin, for
earlier gcc versions via attribute).

For for 4.6 64-bit typedefs are looking that way:

typedef unsigned __int128 uint128_t;
typedef signed __int128 int128_t;

Regards,
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

Reply via email to