128 bits integers with gcc: Difference between revisions

From LPTMS Wiki
Jump to navigation Jump to search
(Created page with "gcc offers the possibility to work with 128 bits integers using two 64 bits words. <source lang="cpp"> __int128_t a = -10293840984; unsigned __int128_t b = 102938409...")
 
mNo edit summary
 
Line 4: Line 4:
unsigned __int128_t b =  10293840984;
unsigned __int128_t b =  10293840984;
</source>
</source>
similarly __float128 exists for floating numbers on 128 bits integers.
For Quadruple precision calculation: gcc offers a library for mathematics functions :
* [http://gcc.gnu.org/onlinedocs/libquadmath/ libquadmath]

Latest revision as of 10:12, 18 July 2012

gcc offers the possibility to work with 128 bits integers using two 64 bits words. <source lang="cpp">

        __int128_t a = -10293840984;

unsigned __int128_t b = 10293840984; </source>

similarly __float128 exists for floating numbers on 128 bits integers.

For Quadruple precision calculation: gcc offers a library for mathematics functions :