Merge pull request #56 from webgeek1234/master

Android updates
This commit is contained in:
Twinaphex 2019-06-27 13:15:33 +02:00 committed by GitHub
commit 8cb420030f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -4,16 +4,16 @@
extern int armExecute();
extern int thumbExecute();
#ifdef __GNUC__
#ifndef __APPLE__
#if defined(__i386__) || defined(__x86_64__)
#define INSN_REGPARM __attribute__((regparm(1)))
#else
#define INSN_REGPARM /*nothing*/
#endif
#ifdef __GNUC__
#define LIKELY(x) __builtin_expect(!!(x), 1)
#define UNLIKELY(x) __builtin_expect(!!(x), 0)
#else
#define INSN_REGPARM /*nothing*/
#define LIKELY(x) (x)
#define UNLIKELY(x) (x)
#endif

View File

@ -1,3 +1,2 @@
APP_ABI := all
APP_STL := gnustl_static
NDK_TOOLCHAIN_VERSION := 4.9
APP_STL := c++_static