android-gmp

git clone git://git.codymlewis.com/android-gmp.git
Log | Files | Refs

commit 11736acbd6141932bd7cb6ae47b92749bc0a1b11
parent 86e513cd55a2a0e6f892cd86117719f23edf62bc
Author: Cody Lewis <cody@codymlewis.com>
Date:   Fri, 14 Aug 2020 16:11:59 +1000

Newly compiled objects

Diffstat:
DREADME.md | 7-------
Marm64-v8a/libgmp.so | 0
Marm64-v8a/libgmpxx.so | 0
Marmeabi-v7a-neon/libgmp.so | 0
Marmeabi-v7a-neon/libgmpxx.so | 0
Marmeabi-v7a/libgmp.so | 0
Marmeabi-v7a/libgmpxx.so | 0
Minclude/gmp.h | 6+++---
Mx86/libgmp.so | 0
Mx86/libgmpxx.so | 0
Mx86_64/libgmp.so | 0
Mx86_64/libgmpxx.so | 0
12 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/README.md b/README.md @@ -1,7 +0,0 @@ -# GMP for Android - -This repository contains a prebuilt copy of [GMP](https://gmplib.org/) 6.2.0 compiled with the Android NDK r21 against API level 24. - -Compiling against API levels greater than or equal to 21 will produce backwards incompatible binaries which reference localeconv() unless special care is taken. It is advised to check config.h at each build and confirm that localeconv is not enabled. - -The C++ bindings are included; they depend on libgmp.so, so you will need to ship *both* in your APK for each platform you support. diff --git a/arm64-v8a/libgmp.so b/arm64-v8a/libgmp.so Binary files differ. diff --git a/arm64-v8a/libgmpxx.so b/arm64-v8a/libgmpxx.so Binary files differ. diff --git a/armeabi-v7a-neon/libgmp.so b/armeabi-v7a-neon/libgmp.so Binary files differ. diff --git a/armeabi-v7a-neon/libgmpxx.so b/armeabi-v7a-neon/libgmpxx.so Binary files differ. diff --git a/armeabi-v7a/libgmp.so b/armeabi-v7a/libgmp.so Binary files differ. diff --git a/armeabi-v7a/libgmpxx.so b/armeabi-v7a/libgmpxx.so Binary files differ. diff --git a/include/gmp.h b/include/gmp.h @@ -40,7 +40,7 @@ see https://www.gnu.org/licenses/. */ #if ! defined (__GMP_WITHIN_CONFIGURE) #define __GMP_HAVE_HOST_CPU_FAMILY_power 0 #define __GMP_HAVE_HOST_CPU_FAMILY_powerpc 0 -#define GMP_LIMB_BITS 32 +#define GMP_LIMB_BITS 64 #define GMP_NAIL_BITS 0 #endif #define GMP_NUMB_BITS (GMP_LIMB_BITS - GMP_NAIL_BITS) @@ -2323,8 +2323,8 @@ enum }; /* Define CC and CFLAGS which were used to build this version of GMP */ -#define __GMP_CC "arm-linux-androideabi-gcc" -#define __GMP_CFLAGS "-O2 -g -pedantic -fomit-frame-pointer -Wa,--noexecstack -ffunction-sections -funwind-tables -no-canonical-prefixes -fno-strict-aliasing -fstack-protector -finline-limit=64 -march=armv5te -mtune=xscale -msoft-float -mthumb" +#define __GMP_CC "/home/cody/Android/Sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android26-clang" +#define __GMP_CFLAGS "-O2 -g -pedantic -fomit-frame-pointer -Wa,--noexecstack -ffunction-sections -funwind-tables -no-canonical-prefixes -fno-strict-aliasing -fstack-protector-strong -finline-limit=300 -funswitch-loops" /* Major version number is the value of __GNU_MP__ too, above. */ #define __GNU_MP_VERSION 6 diff --git a/x86/libgmp.so b/x86/libgmp.so Binary files differ. diff --git a/x86/libgmpxx.so b/x86/libgmpxx.so Binary files differ. diff --git a/x86_64/libgmp.so b/x86_64/libgmp.so Binary files differ. diff --git a/x86_64/libgmpxx.so b/x86_64/libgmpxx.so Binary files differ.