[Implemented] Doubles

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

depending on how long before doubles are implemented in PB, you could write a preprocessor that would translate a pb program that's using double precision math into inline asm functions and then compile the translated program. :)
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

Escobar wrote:Hmm... I'm not sure if this is right but wouldn't it be possible to use inline assembler to define datatypes like double?
I went to

http://www.flatassembler.net

for pure fun (got to love that word 8) ) to see if they did any OpenGL programming and I found converted header-files for OGL. In that header file (gl.inc) they declared datatypes like this:

So, if one use inline asm. that should be possible right? And therefore you should be able to use commands like glOrtho() in OGL that require double.
Just a thought...
Well, we have already the datatype double defined ;) with the F64 lib or another DoubleLib.
bye,
Daniel
akee
Enthusiast
Enthusiast
Posts: 496
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Post by akee »

when all of us move to 64-bit platforms, will double be 128-bits?
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

akee wrote:when all of us move to 64-bit platforms, will double be 128-bits?
Quads? :wink:
--Kale

Image
Post Reply