[M3devel] m3_round long double to int64?
Jay
jay.krell at cornell.edu
Fri Aug 30 01:46:53 CEST 2013
Sorry, my mistake. Ignore long double. We only care about double.
- Jay
On Aug 28, 2013, at 6:58 PM, "Daniel Alejandro Benavides D." <dabenavidesd at yahoo.es> wrote:
> Hi all:
> No, no, no:
> http://www.youtube.com/watch?v=o2hj7F7y_jk#t=6m51s
> to 9:56
>
> Long double may necessarily map to IEEE format anyway though
> http://en.wikipedia.org/wiki/Long_double
>
> Thanks in advance
>
> De: Jay K <jay.krell at cornell.edu>
> Para: m3devel <m3devel at elegosoft.com>
> Enviado: Miércoles 28 de agosto de 2013 3:02
> Asunto: [M3devel] m3_round long double to int64?
>
>
> 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/20130829/05d1bc0c/attachment-0002.html>
More information about the M3devel
mailing list