converting an unsigned 64 bit in a FPU double
- From: jacob navia <spamtrap@xxxxxxxxxx>
- Date: Tue, 20 Nov 2007 22:37:19 +0100
Hi
Suppose following:
You got in some general 64 bit reg (say rax) an unsigned
number and you want to convert it to long double
(FPU 80 bits)
The best I thought can be done is:
(using gcc notation)
push $0
push rax
fldq (%rsp)
addq $16,%rsp
Any better ideas?
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
.
- Follow-Ups:
- Re: converting an unsigned 64 bit in a FPU double
- From: Phil Carmody
- Re: converting an unsigned 64 bit in a FPU double
- From: ArarghMail711NOSPAM
- Re: converting an unsigned 64 bit in a FPU double
- Prev by Date: which is correct
- Next by Date: Re: [Clax86list] which is correct
- Previous by thread: which is correct
- Next by thread: Re: converting an unsigned 64 bit in a FPU double
- Index(es):
Relevant Pages
|
|