<div dir="ltr"><div dir="ltr"><div>Hi Steffen,</div><div>one feature of crlibm is that it does not use current FPU rounding mode status, but has explicit functions for each rounding mode.</div><div>That might be more convenient than switching FPU rounding mode for interval arithmetic for example.</div><div><br></div><div>As for the rounding mode, I think that the VM itself does interfere</div><div>For example in:</div><div><a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/platforms/win32/vm/sqWin32Main.c">https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/platforms/win32/vm/sqWin32Main.c</a><br></div><div>there is the following definition:<br></div><div>
#<span class="gmail-pl-k">define</span> <span class="gmail-pl-en">FPU_DEFAULT</span> (_RC_NEAR + _PC_53 + _EM_INVALID + _EM_ZERODIVIDE + _EM_OVERFLOW + _EM_UNDERFLOW + _EM_INEXACT + _EM_DENORMAL) <br></div><div>and a</div><div>
<span class="gmail-pl-c1">_controlfp</span>(FPU_DEFAULT, _MCW_EM | _MCW_RC | _MCW_PC | _MCW_IC); <br></div><div>in 
<span class="gmail-pl-en">squeakExceptionHandler</span> <br></div><div><br></div><div>This is for windows VM but I'm sure we can find similar things in linux/mac<br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">Le mer. 5 déc. 2018 à 09:25, Steffen Märcker <<a href="mailto:merkste@web.de" target="_blank">merkste@web.de</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
Hi,<br>
<br>
crlibm looks indeed quite promising. If crlibm would be integrated, is it  <br>
be possible to make setting rounding modes directly accessible without an  <br>
FFI-call from the image? Also, I noticed that changing the rounding mode  <br>
did not work reliable - possibly due to some plug/part of the vm that  <br>
changes the mode on it's own behalf (freetype, maybe?).<br>
<br>
Best, Steffen<br>
<br>
Am .12.2018, 22:34 Uhr, schrieb Nicolas Cellier <<a href="mailto:notifications@github.com" target="_blank">notifications@github.com</a>>:<br>
<br>
<br>
<br>
<br>
</blockquote></div>