<div dir="ltr"><div><div><div><div><div><div><div>I've recently discovered that some fpc math functions crash on Tegra CPUs (ARM7/Android), even when called with valid arguments.<br></div><br></div>Anyone has a clue what could cause this or possible workarounds?<br><br></div>Eg: Calling lnxp1(x) with x>1 results in a SIGILL crash.<br><br></div>I did my own naive implementation of this function in pure pascal without calling any FPC math function, and it fixed the problem.<br></div>However currently I found another crash in the same hardware that points to fpc_ln_real function, and don't really want to reimplement lots of math functions.<br></div><div>Probably any function related to logaritms suffers from this,.<br></div><div><br></div></div>Notes - I'm compiling with FPC 2.7.1 (from trunk, but not most recent, I probably compiled it 2 or 3 months ago). Optimizations are off, due to them being currently broken in ARM7.<br><br>I've got an Android app in Play Store with around 300 thousand
downloads, and from what I've gathered, this crash happens in any Tegra
based device, and only on those.<br><br></div>