Re: Wrapper class or function (10 bytes to double).
- From: "Gary Chanson" <gchanson@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 13 Apr 2005 14:05:13 -0400
"L. Spiro" <LSpiro@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:920B76BD-F118-4D3C-9DA4-08CCE07943DF@xxxxxxxxxxxxxxxx
> In the past people have posted their own projects here (upon request) that
do
> whatever the request requests, and usually these are not things you will
find
> on Google.
>
>
> I am hoping someone has written a function that converts from 10 bytes (an
> 80-bit double, accepted as an array of 10 bytes in the parameter list) and
> returns a double.
>
> I found one in C# and converted it to C++ (the language I need it to be) but
> it mostly returns, which I know is not correct.
>
>
>
> But it was the only function I could find on Google that does this
> conversation.
>
> So, I am hoping someone has written something like this, or knows where I
> could find something.
All it takes is a single FLD instruction with the correct addressing mode
and data type. Off hand I don't know the exact form you need (when I've done
it I wasn't using MSVC).
--
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
- http://www.mvps.org/ArcaneIncantations/consulting.htm
-gchanson@xxxxxxxx
.
- References:
- Wrapper class or function (10 bytes to double).
- From: L. Spiro
- Wrapper class or function (10 bytes to double).
- Prev by Date: Re: WriteFile()
- Next by Date: WaitCommEvent and ResetEvent for SerialPort
- Previous by thread: Wrapper class or function (10 bytes to double).
- Next by thread: Re: Wrapper class or function (10 bytes to double).
- Index(es):
Relevant Pages
|