有没有GCC中128位的整数? [英] Is there a 128 bit integer in gcc?

查看:122
本文介绍了有没有GCC中128位的整数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想是因为我想存储两个64位数的乘法结果的128位整数。有没有在GCC 4.4及以上的任何这样的事情?

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?

推荐答案

啊,大整数是不是C的强项。

Ah, big integers are not C's forte.

GCC确实有一个 uint128_t / int128_t 键入,从版本4.something(不知道这里)开始。我似乎不过记得的是,有一个 __ int128_t DEF之前。

GCC does have an uint128_t/int128_t type, starting from version 4.something (not sure here). I do seem to recall, however, that there was a __int128_t def before that.

这篇关于有没有GCC中128位的整数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆