128 bits integers with gcc

From LPTMS Wiki
Revision as of 10:12, 18 July 2012 by Roux (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

gcc offers the possibility to work with 128 bits integers using two 64 bits words.

__int128_t a = -10293840984;
unsigned __int128_t b =  10293840984;

similarly __float128 exists for floating numbers on 128 bits integers.

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