Re: 64bit/64bit fixed point division?



"Maarten Kronenburg" <spamtrap@xxxxxxxxxx> writes:
Phil,
The mantissa for extended precision 80-bit floating point
is the full 64-bit, only bit number 63 is always 1.
The sign bit is bit number 79, see for example
http://babbage.cs.qc.edu/courses/cs341/IEEE-754references.html
and the book The Intel Microprocessors by Barry Brey.
So you can put a 64-bit integer into an extended precision
80-bit floating point without loss of precision.

I know. The FPU's fine, it's the interface from FP to integer
that's the problem. You can't (just) use a FISTP though.
(Unless you know that the answer is unique modulo 2^64.)

Phil
--
"Home taping is killing big business profits. We left this side blank
so you can help." -- Dead Kennedys, written upon the B-side of tapes of
/In God We Trust, Inc./.

.



Relevant Pages

  • Re: 64bit/64bit fixed point division?
    ... The mantissa for extended precision 80-bit floating point ... So you can put a 64-bit integer into an extended precision ... Newton-Raphson (which is faster at 32 bits, ... FILD qword ptr ...
    (comp.lang.asm.x86)
  • Re: 64bit/64bit fixed point division?
    ... The mantissa for extended precision 80-bit floating point ... So you can put a 64-bit integer into an extended precision ... fild qword ptr ...
    (comp.lang.asm.x86)
  • Re: 64bit/64bit fixed point division?
    ... and use fld tword where edx is the address. ... Only then you must also write/read the exponent, ... The mantissa for extended precision 80-bit floating point ...
    (comp.lang.asm.x86)
  • Re: comparison on non-integer types
    ... of x gets pushed into a floating point register and the second copy ... That's an operating system bug, ...
    (comp.lang.c)
  • Re: extended precision
    ... > to extended precision. ... Quad precision involves 128 bits, ... > least one compiler vendor supports extended precision, ... > digits of precision on the mantissa and a larger exponent range. ...
    (comp.lang.fortran)