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
