Reputation: 2429
How can i store 128 or 256 bit data types(ints and floats) without using any data structures(like arrays and others) and external libraries on a 64-bit machine.I am using codeblocks.
Upvotes: 0
Views: 1980
Reputation: 1975
You cannot do this using the C language as laid out in the standard. However, depending on your compiler and architecture, you may have compiler-specific support for larger integer sizes. For instance, GCC supplies limited support for 128-bit integers, which you can use like so:
__int128 foo; //foo is a 128-bit signed integer.
However, the real question is probably why you are so determined not to use a library or basic language features like arrays to implement your own.
Upvotes: 2