Re: bigint/bugnum library

new topic     » goto parent     » topic index » view thread      » older message » newer message
jaygade said...
jimcbrown said...

Are there any systems which do not support an 80 bit double? The assumption that an atom is bigger than an integer is pretty fundamental to Euphoria.

MSVC++ compiler (according to Wikipedia and Microsoft)

Not sure this counts, as we can get away with doing it in inline assembly or using machine code.

jaygade said...

ARM

I was thinking SPARC and PPC as well, but they are capable of using software 128-bit doubles. So is 64-bit ARM I believe.

Hmm. I guess I thought of ARM as a purely 32bit platform.

I would have thought that all platforms were capable of using 128bit doubles via software emulation, through e.g. http://www.mpfr.org/ (though if we only need 80bit maybe we can find a way to leverage http://gcc.gnu.org/onlinedocs/gccint/Soft-float-library-routines.html )

jaygade said...

For 32-bit Euphoria, 64-bit doubles are the norm, even if they use 80 bits for intermediate results.

Right, on 32bit it's largely a non-issue. But on 64bit platforms, we need a floating point type that's bigger than the integer type, as stuff inside the interpreter and runtime library make this assumption, and though it's possible to rewrite the insides to avoid this, it'd probably mean a lot of Euphoria code would also need to be rewritten.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu