From 19761070e12f65fe7a07e6d9b7a5221a1623b12d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 10 Dec 2019 18:59:30 +0100 Subject: Bug 1417 - Android: Add new x86 MachineDataInfo, differs due to smaller 'long double' than regular x86_32_unix --- src/java/com/jogamp/common/os/MachineDataInfo.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/java/com/jogamp/common/os/MachineDataInfo.java b/src/java/com/jogamp/common/os/MachineDataInfo.java index d6fa28c..7ea8b86 100644 --- a/src/java/com/jogamp/common/os/MachineDataInfo.java +++ b/src/java/com/jogamp/common/os/MachineDataInfo.java @@ -58,6 +58,7 @@ public class MachineDataInfo { /* arch os int, long, float, doubl, ldoubl, ptr, page */ private final static int[] size_arm_mips_32 = { 4, 4, 4, 8, 8, 4, 4096 }; private final static int[] size_x86_32_unix = { 4, 4, 4, 8, 12, 4, 4096 }; + private final static int[] size_x86_32_android = { 4, 4, 4, 8, 8, 4, 4096 }; private final static int[] size_x86_32_macos = { 4, 4, 4, 8, 16, 4, 4096 }; private final static int[] size_ppc_32_unix = { 4, 4, 4, 8, 16, 4, 4096 }; private final static int[] size_sparc_32_sunos = { 4, 4, 4, 8, 16, 4, 8192 }; @@ -100,6 +101,8 @@ public class MachineDataInfo { ARM_MIPS_32( size_arm_mips_32, align_arm_mips_32), /** {@link Platform.CPUType#X86_32} Unix */ X86_32_UNIX( size_x86_32_unix, align_x86_32_unix), + /** {@link Platform.CPUType#X86_32} Android/Bionic */ + X86_32_ANDROID( size_x86_32_android, align_x86_32_unix), /** {@link Platform.CPUType#X86_32} MacOS (Special case gcc4/OSX) */ X86_32_MACOS( size_x86_32_macos, align_x86_32_macos), /** {@link Platform.CPUType#PPC} Unix */ -- cgit v1.2.3