<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I have just added s7 scheme to a C++ project on Android, and I ran into a couple of issues that I would like to post in case anyone else runs into them.<br><br></div>1 - android doesn&#39;t seem to support the log2 function.  Easy fix:  fx = log((double)ix)/log(2.0);<br>
<br></div>2 - It seems that arm based architectures have issues with aligned access.  I discovered this when calling s7_init to create a second scheme vm.  The fix for this is to simply add __ANDROID__ to the __bfin__ check.<br>
<br><br></div><div>here is the diff of the changes for s7.c:<br><br>4021c4021<br>&lt; #if (__bfin__)<br>---<br>&gt; #if (__bfin__ || __ANDROID__)<br>10216a10217,10219<br>&gt; #if (__ANDROID__)<br>&gt;           fx = log((double)ix)/log(2.0);<br>
&gt; #else<br>10217a10221<br>&gt; #endif<br><br><br></div><div>Are there any other spots in s7 where unaligned access may occur?  They are rather difficult to debug.<br><br><br></div><div>Sincerely,<br></div><div>Jason Ripley<br>
</div></div>