Does GCC support long long int?

前端 未结 7 2110
南方客
南方客 2020-12-31 07:08

Does GCC support:

long long int

which would be a 64-bit integer?

Also, is long long int part of the standard?

7条回答
  •  伪装坚强ぢ
    2020-12-31 07:32

    long longs are well supported, and have been for a long long time [sorry]. As I understand it, this should have been 128 bit on 64-bit platforms, but for compatibility/portability reasons in GCC, has standardised on a 64-bit width.

    See also: (u)int128_t, and this discussion on GCC's 128-bit integer support

提交回复
热议问题