M
Matt
Please skip to the last paragraph if you are in a hurry.
Some of the integer variables in my application will need to hold values
bigger than 2^32-1.
Others won't need to be that big. Time and space efficiencies on
run-of-the-mill (read: 32 bit) microcomputers are important.
I want to use some layer of abstraction comparable to C99's stdint.h so
that my variable declarations specify the number of bits.
My app is to run on general-purpose hardware on Linux, Mac, BSD, and
Windows.
I am more interested in practical portability than in ISO standards.
Also it seems to be irrelevant whether the 64-bit type is long or long long.
Which C++ compilers do and which do not have 64-bit integer types? And
do they have something like stdint.h?
Some of the integer variables in my application will need to hold values
bigger than 2^32-1.
Others won't need to be that big. Time and space efficiencies on
run-of-the-mill (read: 32 bit) microcomputers are important.
I want to use some layer of abstraction comparable to C99's stdint.h so
that my variable declarations specify the number of bits.
My app is to run on general-purpose hardware on Linux, Mac, BSD, and
Windows.
I am more interested in practical portability than in ISO standards.
Also it seems to be irrelevant whether the 64-bit type is long or long long.
Which C++ compilers do and which do not have 64-bit integer types? And
do they have something like stdint.h?