[M3devel] m3_round long double to int64?
Jay K
jay.krell at cornell.edu
Wed Aug 28 10:02:11 CEST 2013
Anyone want to tackle this?
INT64 __stdcall m3_round(long double f);
rounds to nearest, breaks ties in the IEEE way (toward even, or such), presumably.
Make it correct for 32bit, 64bit, big endian, little endian.
Assume IEEE754.
You can assume long double is the same as double.
You'll likely want to split it into mantissa and exponent.
Thanks,
- Jay
> Date: Wed, 28 Aug 2013 09:58:16 +0000
> To: m3commit at elegosoft.com
> From: jkrell at elego.de
> Subject: [M3commit] CVS Update: cm3
>
> CVSROOT: /usr/cvs
> Changes by: jkrell at birch. 13/08/28 09:58:16
>
> Modified files:
> cm3/m3-sys/m3back/src/: M3C.m3
>
> Log message:
> win64: temporary workaround: truncate instead of round
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20130828/bfcf6978/attachment-0001.html>
More information about the M3devel
mailing list