Merge "Fix samples for 64-bit ABIs"

This commit is contained in:
Andrew Hsieh
2014-06-21 04:18:29 +00:00
committed by Gerrit Code Review
15 changed files with 30 additions and 10 deletions

View File

@@ -0,0 +1 @@
APP_ABI := all

View File

@@ -288,7 +288,7 @@ static jboolean enqueueInitialBuffers(jboolean discontinuity)
LOGV("Dropping last packet because it is not whole");
}
size_t packetsRead = bytesRead / MPEG2_TS_PACKET_SIZE;
LOGV("Initially queueing %u packets", packetsRead);
LOGV("Initially queueing %zu packets", packetsRead);
/* Enqueue the content of our cache before starting to play,
we don't want to starve the player */

View File

@@ -0,0 +1 @@
APP_ABI := all

View File

@@ -0,0 +1 @@
APP_ABI := all

View File

@@ -0,0 +1 @@
APP_ABI := all

View File

@@ -1,3 +1,2 @@
# The ARMv7 is significanly faster due to the use of the hardware FPU
APP_ABI := armeabi armeabi-v7a
APP_ABI := all
APP_PLATFORM := android-8

View File

@@ -215,7 +215,7 @@ static void fill_plasma( AndroidBitmapInfo* info, void* pixels, double t )
uint16_t* line_end = line + info->width;
if (line < line_end) {
if (((uint32_t)line & 3) != 0) {
if (((uint32_t)(uintptr_t)line & 3) != 0) {
Fixed ii = base + fixed_sin(xt1) + fixed_sin(xt2);
xt1 += XT1_INCR;

View File

@@ -1 +1,2 @@
APP_ABI := all
APP_PLATFORM := android-10

View File

@@ -0,0 +1 @@
APP_ABI := all

View File

@@ -1,3 +1,2 @@
# The ARMv7 is significanly faster due to the use of the hardware FPU
APP_ABI := armeabi armeabi-v7a
APP_ABI := all
APP_PLATFORM := android-10

View File

@@ -224,7 +224,7 @@ static void fill_plasma(ANativeWindow_Buffer* buffer, double t)
uint16_t* line_end = line + buffer->width;
if (line < line_end) {
if (((uint32_t)line & 3) != 0) {
if (((uint32_t)(uintptr_t)line & 3) != 0) {
Fixed ii = base + fixed_sin(xt1) + fixed_sin(xt2);
xt1 += XT1_INCR;

View File

@@ -30,17 +30,31 @@ Java_com_example_hellojni_HelloJni_stringFromJNI( JNIEnv* env,
#if defined(__arm__)
#if defined(__ARM_ARCH_7A__)
#if defined(__ARM_NEON__)
#define ABI "armeabi-v7a/NEON"
#if defined(__ARM_PCS_VFP)
#define ABI "armeabi-v7a/NEON (hard-float)"
#else
#define ABI "armeabi-v7a/NEON"
#endif
#else
#define ABI "armeabi-v7a"
#if defined(__ARM_PCS_VFP)
#define ABI "armeabi-v7a (hard-float)"
#else
#define ABI "armeabi-v7a"
#endif
#endif
#else
#define ABI "armeabi"
#endif
#elif defined(__i386__)
#define ABI "x86"
#elif defined(__x86_64__)
#define ABI "x86_64"
#elif defined(__mips64) /* mips64el-* toolchain defines __mips__ too */
#define ABI "mips64"
#elif defined(__mips__)
#define ABI "mips"
#elif defined(__aarch64__)
#define ABI "arm64-v8a"
#else
#define ABI "unknown"
#endif

View File

@@ -1,2 +1,2 @@
# Build both ARMv5TE and ARMv7-A machine code.
APP_ABI := armeabi armeabi-v7a
APP_ABI := armeabi armeabi-v7a arm64-v8a

View File

@@ -0,0 +1 @@
APP_ABI := all

View File

@@ -0,0 +1 @@
APP_ABI := all