Are there any standards on converting integers into floats? For instance, is there a standard for if you have a 64-bit integer value which you need to convert to a float?
a = 50000 * 1000000
b = 2.53432432423
c = a + b
I need the result to be:
50000000002.534
I'm just making sure this isn't a "common" situation which there are standard solutions to, or if I have to find my own way..
John
a = 50000 * 1000000
b = 2.53432432423
c = a + b
I need the result to be:
50000000002.534
I'm just making sure this isn't a "common" situation which there are standard solutions to, or if I have to find my own way..
John
you diden't say where you wanted the convertion to take place
in the source ? (at assembly time)
or in the program ? ( at runtime)
in the source ? (at assembly time)
or in the program ? ( at runtime)
At runtime .. given an arbitrary 64-bit integer, I need to be able to convert that to a 64-bit float value with as many significant digits as I can (given the size of the original 64-bit integer)...
so... 50000000000 as the 64-bit int, and you want to add 2.53432432423 you'd get
50000000002.534
John
so... 50000000000 as the 64-bit int, and you want to add 2.53432432423 you'd get
50000000002.534
John
Um which? :) I couldn't find an instruction to load a 64-bit integer... a code snippet woudl be appreciated :)
John
John
this should be the last word on intell assembly
http://www.intel.com/design/Pentium4/manuals/24547010.pdf
there is a small libc writen in assembly here in the asmutils source code
http://linuxassembly.org
I checked sorry it dosen't have the convertion you want
the source code for the e3 editor has a 4 function calculator built into it
it is writen in assembly and the same source code can be assembled for
linux ,win9x ,bsd and most other unix (or unix like O/Ss)
http://www.sax.de/~adlibit/
this has it some place in it or the calcaulator woulden't work
http://www.intel.com/design/Pentium4/manuals/24547010.pdf
there is a small libc writen in assembly here in the asmutils source code
http://linuxassembly.org
I checked sorry it dosen't have the convertion you want
the source code for the e3 editor has a 4 function calculator built into it
it is writen in assembly and the same source code can be assembled for
linux ,win9x ,bsd and most other unix (or unix like O/Ss)
http://www.sax.de/~adlibit/
this has it some place in it or the calcaulator woulden't work
Isn't there a fild qword ptr instruction? Opcode DF 2E?
Yep you're right. I imagine that'd be the best solution.