external: stresstestapp: pull upstream build patch

https://github.com/nickdesaulniers/stressapptest/commit/1c66ad6b0199d56c689b0e79ce90d419e3203e2c

Bug: 31861507
Test: make checkbuild
Change-Id: I36c5d0165c09968a4064438e658d886d364920cb
diff --git a/Android.mk b/Android.mk
index 43127e9..24e47e4 100644
--- a/Android.mk
+++ b/Android.mk
@@ -18,16 +18,14 @@
 	src/sat_factory.cc \
 	src/worker.cc
 
-LOCAL_MODULE:= stressapptest
+# just build a 32b version, even on 64b hosts
+LOCAL_MULTILIB := 32
+LOCAL_MODULE := stressapptest
 LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_UNSUPPORTED_TARGET_ARCH := mips
 
 LOCAL_CFLAGS := -DHAVE_CONFIG_H -DANDROID -DNDEBUG -UDEBUG -DCHECKOPTS
 
-LOCAL_C_INCLUDES := \
-	bionic  \
-	libc++
-
 LOCAL_CPP_EXTENSION := .cc
-LOCAL_CXX_STL := libc++
 
 include $(BUILD_EXECUTABLE)
diff --git a/src/adler32memcpy.cc b/src/adler32memcpy.cc
index 47c6262..c0c6a39 100644
--- a/src/adler32memcpy.cc
+++ b/src/adler32memcpy.cc
@@ -423,22 +423,22 @@
   #define crc_r "r6"
 
   asm volatile (
-      "mov "src_r", %[src];	 	\n"
-      "mov "dst_r", %[dst]; 		\n"
-      "mov "crc_r", %[crc]; 		\n"
-      "mov "blocks_r", %[blocks]; 	\n"
+      "mov " src_r ", %[src];	 	\n"
+      "mov " dst_r ", %[dst]; 		\n"
+      "mov " crc_r ", %[crc]; 		\n"
+      "mov " blocks_r ", %[blocks]; 	\n"
 
       // Loop over block count.
-      "cmp "blocks_r", #0; 	\n"   // Compare counter to zero.
+      "cmp " blocks_r ", #0; 	\n"   // Compare counter to zero.
       "ble END;			\n"
 
 
       // Preload upcoming cacheline.
-      "pld ["src_r", #0x0];	\n"
-      "pld ["src_r", #0x20];	\n"
+      "pld [" src_r ", #0x0];	\n"
+      "pld [" src_r ", #0x20];	\n"
 
       // Init checksum
-      "vldm "crc_r", {q0};		\n"
+      "vldm " crc_r ", {q0};		\n"
       "vmov.i32 q1, #0;			\n"
 
       // Start of the loop which copies 48 bytes from source to dst each time.
@@ -448,8 +448,8 @@
       // We are using 2 words out of 4 words in each qX register,
       // word index 0 and word index 2. We'll swizzle them in a bit.
       // Copy it.
-      "vldm "src_r"!, {q8, q9, q10, q11};	\n"
-      "vstm "dst_r"!, {q8, q9, q10, q11};	\n"
+      "vldm " src_r "!, {q8, q9, q10, q11};	\n"
+      "vstm " dst_r "!, {q8, q9, q10, q11};	\n"
 
       // Arrange it.
       "vmov.i64 q12, #0;	\n"
@@ -487,8 +487,8 @@
       "vadd.i64 q1, q1, q0;	\n"
 
       // Increment counter and loop.
-      "sub "blocks_r", "blocks_r", #1;	\n"
-      "cmp "blocks_r", #0;	\n"   // Compare counter to zero.
+      "sub " blocks_r ", " blocks_r ", #1;	\n"
+      "cmp " blocks_r ", #0;	\n"   // Compare counter to zero.
       "bgt TOP;	\n"
 
 
@@ -497,7 +497,7 @@
       // 64 bit numbers and have to be converted to 64 bit numbers)
       // seems like Adler128 (since size of each part is 4 byte rather than
       // 1 byte).
-      "vstm "crc_r", {q0, q1};	\n"
+      "vstm " crc_r ", {q0, q1};	\n"
 
       // Output registers.
       :
diff --git a/src/stressapptest_config_android.h b/src/stressapptest_config_android.h
index 14081e5..6beff2c 100644
--- a/src/stressapptest_config_android.h
+++ b/src/stressapptest_config_android.h
@@ -52,7 +52,7 @@
 #define HAVE_NETDB_H 1
 
 /* Define to 1 if you have the `posix_memalign' function. */
-/* #undef HAVE_POSIX_MEMALIGN */
+#define HAVE_POSIX_MEMALIGN 1
 
 /* Define to 1 if the system has `pthread_barrier'. */
 #undef HAVE_PTHREAD_BARRIERS