<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Sorry, my mistake. Ignore long double. We only care about double.<br><br> - Jay</div><div><br>On Aug 28, 2013, at 6:58 PM, "Daniel Alejandro Benavides D." <<a href="mailto:dabenavidesd@yahoo.es">dabenavidesd@yahoo.es</a>> wrote:<br><br></div><blockquote type="cite"><div><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi all:</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>No, no, no:</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span><a href="http://www.youtube.com/watch?v=o2hj7F7y_jk#t=6m51s">http://www.youtube.com/watch?v=o2hj7F7y_jk#t=6m51s</a> <br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>to 9:56<br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0);
font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>Long double may necessarily map to IEEE format anyway though<br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span><a href="http://en.wikipedia.org/wiki/Long_double">http://en.wikipedia.org/wiki/Long_double</a></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>Thanks in advance</span></div><div><br></div> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font face="Arial" size="2"> <b><span style="font-weight: bold;">De:</span></b> Jay K <<a href="mailto:jay.krell@cornell.edu">jay.krell@cornell.edu</a>><br> <b><span style="font-weight: bold;">Para:</span></b> m3devel <<a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a>> <br> <b><span style="font-weight: bold;">Enviado:</span></b> MiƩrcoles 28 de agosto de 2013 3:02<br> <b><span style="font-weight: bold;">Asunto:</span></b> [M3devel] m3_round long double to int64?<br> </font> </div> <div class="y_msg_container"><br><div id="yiv7901280011">
<style><!--
#yiv7901280011 .yiv7901280011hmmessage P
{
margin:0px;padding:0px;}
#yiv7901280011 body.yiv7901280011hmmessage
{
font-size:12pt;font-family:Calibri;}
--></style><div><div dir="ltr"><br>Anyone want to tackle this?<br> <br>INT64 __stdcall m3_round(long double f);<br> <br>rounds to nearest, breaks ties in the IEEE way (toward even, or such), presumably.<br> <br>Make it correct for 32bit, 64bit, big endian, little endian.<br>Assume IEEE754.<br> <br>You can assume long double is the same as double.<br>You'll likely want to split it into mantissa and exponent.<br> <br>Thanks,<br> - Jay<br><br> <br><div>> Date: Wed, 28 Aug 2013 09:58:16 +0000<br>> To: <a href="mailto:m3commit@elegosoft.com">m3commit@elegosoft.com</a><br>> From: <a href="mailto:jkrell@elego.de">jkrell@elego.de</a><br>> Subject: [M3commit] CVS Update: cm3<br>> <br>> CVSROOT: /usr/cvs<br>> Changes by: jkrell@birch. 13/08/28 09:58:16<br>> <br>> Modified files:<br>> cm3/m3-sys/m3back/src/: M3C.m3 <br>> <br>> Log message:<br>> win64: temporary workaround: truncate instead of round<br>> <br></div> </div></div>
</div><br><br></div> </div> </div> </div></div></blockquote></body></html>