ptitSeb / box86

Box86 - Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices
https://box86.org
MIT License
3.34k stars 232 forks source link

Box86 on Android, math problems #910

Open KreitinnSoftware opened 11 months ago

KreitinnSoftware commented 11 months ago

I compiled few tests from test dir, and runned on my x86_64 with Waydroid and in my phone with Box86.

On my PC running test07

~/box86/tests $ ./test07 0 is 0.000000, sin(pi/2) is 1.000000 and 3*1.5 is 4.500000.

On my Phone

~/box86/tests $ box86 test07 Box86 with Dynarec v0.3.3 d4f7ec6e built on Dec 9 2023 14:33:11 0 is 0.000000, sin(pi/2) is 0.000000 and 3*1.5 is 0.000000.

ptitSeb commented 11 months ago

Looks like there is an issue with VAARG flot/double/long double parameter somehow. Do you know if long double (128bits) exist on android arm?

KreitinnSoftware commented 11 months ago

Don't know, I will search about

KreitinnSoftware commented 9 months ago

Looks like there is an issue with VAARG flot/double/long double parameter somehow. Do you know if long double (128bits) exist on android arm?

I have read https://developer.android.com/ndk/guides/abis and 32bit android is a 64bits long double