in MSVC,
__int64 x=12345678901234567i64;
point 1: this type __int64 doesn't require me to #include <windows> to define
it. in mingw and mingw-w64, one must #include <basetsd.h>. why?
point 2: there are also __int32 __int16 and __int8 types.
point 3: mingw does not utilize the i64 constant thingy (whatever it's called)
that tells the compiler that this number is of __int64 type. I do not know if
there is an i32 or i16 or i8 definition.
BTW, 128-bit number type is in the C9X standard. the new integral data types
in C++ will be something like int64, int32, int128, int16, int8.
http://www.open-std.org/JTC1/sc22/wg14/www/docs/n615.htm
Jim Michaels
[email protected](main)
JesusnJim.com (my site)
________________________________
DoLifeComputers.JesusnJim.com
(Do Life Computers group site which I lead)
while (stone != rolling) moss++;
---
Computer memory/disk size measurements:
[KB KiB] [MB MiB] [GB GiB] [TB TiB]
[10^3B=1000B=1KB][10^6B=1000000B=1MB][10^9B=1000000000B=1GB][10^12B=1000000000000B=1TB]
[2^10B=1024B=1KiB][2^20B=1048576B=1MiB][2^30B=1073741824B=1GiB][2^40B=1099511627776B=1TiB]
Note that with disks, a disk size is measured in GB or TB, not in GiB or TiB.
computer memory (RAM) is measured in MiB and GiB.
---
Robot dog food: Cables n' Bits
---
adress=seg<<4+ofs; (ambiguity - a double-minded compiler is unstable in all
its ways)
biosdsk2.h:733: warning: suggest parentheses around '+' inside '<<'
---
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public