am e514118e: Merge "Fix samples for 64-bit ABIs"
* commit 'e514118e03c861bd678709d7dbf671f879a44da0': Fix samples for 64-bit ABIs
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
APP_ABI := all
|
||||||
@@ -288,7 +288,7 @@ static jboolean enqueueInitialBuffers(jboolean discontinuity)
|
|||||||
LOGV("Dropping last packet because it is not whole");
|
LOGV("Dropping last packet because it is not whole");
|
||||||
}
|
}
|
||||||
size_t packetsRead = bytesRead / MPEG2_TS_PACKET_SIZE;
|
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,
|
/* Enqueue the content of our cache before starting to play,
|
||||||
we don't want to starve the player */
|
we don't want to starve the player */
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
APP_ABI := all
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
APP_ABI := all
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
APP_ABI := all
|
||||||
@@ -1,3 +1,2 @@
|
|||||||
# The ARMv7 is significanly faster due to the use of the hardware FPU
|
APP_ABI := all
|
||||||
APP_ABI := armeabi armeabi-v7a
|
|
||||||
APP_PLATFORM := android-8
|
APP_PLATFORM := android-8
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ static void fill_plasma( AndroidBitmapInfo* info, void* pixels, double t )
|
|||||||
uint16_t* line_end = line + info->width;
|
uint16_t* line_end = line + info->width;
|
||||||
|
|
||||||
if (line < line_end) {
|
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);
|
Fixed ii = base + fixed_sin(xt1) + fixed_sin(xt2);
|
||||||
|
|
||||||
xt1 += XT1_INCR;
|
xt1 += XT1_INCR;
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
|
APP_ABI := all
|
||||||
APP_PLATFORM := android-10
|
APP_PLATFORM := android-10
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
APP_ABI := all
|
||||||
@@ -1,3 +1,2 @@
|
|||||||
# The ARMv7 is significanly faster due to the use of the hardware FPU
|
APP_ABI := all
|
||||||
APP_ABI := armeabi armeabi-v7a
|
|
||||||
APP_PLATFORM := android-10
|
APP_PLATFORM := android-10
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ static void fill_plasma(ANativeWindow_Buffer* buffer, double t)
|
|||||||
uint16_t* line_end = line + buffer->width;
|
uint16_t* line_end = line + buffer->width;
|
||||||
|
|
||||||
if (line < line_end) {
|
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);
|
Fixed ii = base + fixed_sin(xt1) + fixed_sin(xt2);
|
||||||
|
|
||||||
xt1 += XT1_INCR;
|
xt1 += XT1_INCR;
|
||||||
|
|||||||
@@ -30,17 +30,31 @@ Java_com_example_hellojni_HelloJni_stringFromJNI( JNIEnv* env,
|
|||||||
#if defined(__arm__)
|
#if defined(__arm__)
|
||||||
#if defined(__ARM_ARCH_7A__)
|
#if defined(__ARM_ARCH_7A__)
|
||||||
#if defined(__ARM_NEON__)
|
#if defined(__ARM_NEON__)
|
||||||
|
#if defined(__ARM_PCS_VFP)
|
||||||
|
#define ABI "armeabi-v7a/NEON (hard-float)"
|
||||||
|
#else
|
||||||
#define ABI "armeabi-v7a/NEON"
|
#define ABI "armeabi-v7a/NEON"
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#if defined(__ARM_PCS_VFP)
|
||||||
|
#define ABI "armeabi-v7a (hard-float)"
|
||||||
#else
|
#else
|
||||||
#define ABI "armeabi-v7a"
|
#define ABI "armeabi-v7a"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define ABI "armeabi"
|
#define ABI "armeabi"
|
||||||
#endif
|
#endif
|
||||||
#elif defined(__i386__)
|
#elif defined(__i386__)
|
||||||
#define ABI "x86"
|
#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__)
|
#elif defined(__mips__)
|
||||||
#define ABI "mips"
|
#define ABI "mips"
|
||||||
|
#elif defined(__aarch64__)
|
||||||
|
#define ABI "arm64-v8a"
|
||||||
#else
|
#else
|
||||||
#define ABI "unknown"
|
#define ABI "unknown"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# Build both ARMv5TE and ARMv7-A machine code.
|
# Build both ARMv5TE and ARMv7-A machine code.
|
||||||
APP_ABI := armeabi armeabi-v7a
|
APP_ABI := armeabi armeabi-v7a arm64-v8a
|
||||||
|
|||||||
1
ndk/samples/test-libstdc++/jni/Application.mk
Normal file
1
ndk/samples/test-libstdc++/jni/Application.mk
Normal file
@@ -0,0 +1 @@
|
|||||||
|
APP_ABI := all
|
||||||
1
ndk/samples/two-libs/jni/Application.mk
Normal file
1
ndk/samples/two-libs/jni/Application.mk
Normal file
@@ -0,0 +1 @@
|
|||||||
|
APP_ABI := all
|
||||||
Reference in New Issue
Block a user