在32位机长长的实施 [英] long long implementation in 32 bit machine
本文介绍了在32位机长长的实施的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
按C99标准,的尺寸很长很长
应该是最低64位。如何在32位机这个实施(如加法或乘法2 长长
S)。此外,什么是相当于长长
在C ++中。
As per c99 standard, size of long long
should be minimum 64 bits. How is this implemented in a 32 bit machine (eg. addition or multiplication of 2 long long
s). Also, What is the equivalent of long long
in C++.
推荐答案
在IA32架构,64位整数使用两个32位寄存器(EAX和EDX)来实现。
On the IA32 architecture, 64-bit integer are implemented in using two 32-bit registers (eax and edx).
有特定于平台的等价C ++,你可以使用stdint.h头哪里有合适的(升压为您提供的 之一)。
There are platform specific equivalents for C++, and you can use the stdint.h header where available (boost provides you with one).
这篇关于在32位机长长的实施的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文