bigint

Is there a 128 bit integer in gcc?

喜欢而已 提交于 2019-11-26 05:54:30
问题 I want a 128 bit integer because I want to store results of multiplication of two 64 bit numbers. Is there any such thing in gcc 4.4 and above? 回答1: A 128-bit integer type is only ever available on 64-bit targets , so you need to check for availability even if you have already detected a recent GCC version. In theory gcc could support TImode integers on machines where it would take 4x 32-bit registers to hold one, but I don't think there are any cases where it does. GCC 4.6 and later has a _