Fred wrote:Another important point is about other processors. Does them all support this 80 bit format ?
In theory, all modern processors can support 256 bit format. But this format is used for precisions, not for speed.
For bigger format you need to have a Super Computer, the computers used in astronomy or astrophysics for exemple. And you will not use PureBasic to write program for these computers. (Sorry Fred)
All modern processors supports integers in any number of bits, only limited by physical memory. I can make a 6 144 bit number if I care to wait for the computation time.
currency is a good idea !
Currency isn't an 80-bit float, it's a scaled 64-bit integer. (By a factor of 10000.)
Trond wrote:All modern processors supports integers in any number of bits, only limited by physical memory. I can make a 6 144 bit number if I care to wait for the computation time.
Well, Trond; when say "a processor supports integers in x number of bits" is meant we are talking about the processors internal registers and buses widths, not about what can we do with the processors.
Trond wrote:All modern processors supports integers in any number of bits, only limited by physical memory. I can make a 6 144 bit number if I care to wait for the computation time.
Well, Trond; when say "a processor supports integers in x number of bits" is meant we are talking about the processors internal registers and buses widths, not about what can we do with the processors.
Then what Guimauve said is still wrong. "Normal" computers handle integers up to 32 bits, 64-bit computers handle integers up to 64 bit natively.
Trond wrote:All modern processors supports integers in any number of bits, only limited by physical memory. I can make a 6 144 bit number if I care to wait for the computation time.
Ok just show me how you can achive this. For 128 Bit Integer and 128 bit Float variables.
I don't know much Assembly and even less about the inner orkings of a processor so here is what I could finbd out using my C++ compiler (g++ 4.0.1) on my Intel Mac, it can Cross Compile for PPC and the code runs in rosetta so here are the examples for both architectures:
x86 (-mcpu=Intel Core Duo Prescott core):
Sizeof(long long): 8 bytes
Sizeof(long double): 16 bytes