Upgrade arm-optimized-routines to c7a7debc08741736d4836245b45e555fbf2390ed
Test: None
Change-Id: I4e3549b8e86c26eb170d89672b2473221af66c2b
diff --git a/Android.bp b/Android.bp
new file mode 100755
index 0000000..f22981c
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,85 @@
+cc_library {
+ name: "libarm-optimized-routines",
+ host_supported: true,
+ recovery_available: true,
+ native_bridge_supported: true,
+ cflags: [
+ "-Werror",
+ "-O2",
+ "-DWANT_ROUNDING=0",
+ "-DWANT_ERRNO=0",
+ "-DFLT_EVAL_METHOD=0",
+ "-ffp-contract=fast",
+ ],
+ srcs: [
+ "math/cosf.c",
+ "math/exp2.c",
+ "math/exp2f.c",
+ "math/exp2f_data.c",
+ "math/exp.c",
+ "math/exp_data.c",
+ "math/expf.c",
+ "math/log2.c",
+ "math/log2_data.c",
+ "math/log2f.c",
+ "math/log2f_data.c",
+ "math/log.c",
+ "math/log_data.c",
+ "math/logf.c",
+ "math/logf_data.c",
+ "math/math_err.c",
+ "math/math_errf.c",
+ "math/pow.c",
+ "math/pow_log_data.c",
+ "math/powf.c",
+ "math/powf_log2_data.c",
+ "math/sincosf.c",
+ "math/sincosf_data.c",
+ "math/sinf.c",
+ ],
+
+ // arch-specific settings
+ arch: {
+ arm64: {
+ cflags: [
+ "-DHAVE_FAST_FMA=1",
+ ],
+ },
+ },
+
+ target: {
+ darwin: {
+ enabled: false,
+ },
+ linux_bionic: {
+ enabled: true,
+ },
+ },
+ stl: "none",
+ static: {
+ system_shared_libs: [],
+ },
+}
+
+// adb shell "/data/nativetest64/mathtest/mathtest /data/nativetest64/mathtest/test/testcases/directed/*"
+// adb shell "/data/nativetest/mathtest/mathtest /data/nativetest/mathtest/test/testcases/directed/*"
+cc_test {
+ name: "mathtest",
+ gtest: false,
+ host_supported: true,
+ cflags: ["-Werror", "-Wno-missing-braces"],
+ srcs: [
+ "math/single/e_rem_pio2.c",
+ "test/mathtest.c"
+ ],
+ data: ["test/testcases/directed/*.tst"],
+ local_include_dirs: ["math/include"],
+ target: {
+ darwin: {
+ enabled: false,
+ },
+ linux_bionic: {
+ enabled: true,
+ },
+ },
+}
diff --git a/METADATA b/METADATA
new file mode 100644
index 0000000..dd1a535
--- /dev/null
+++ b/METADATA
@@ -0,0 +1,19 @@
+name: "ARM-software/optimized-routines"
+description: "Optimized implementations of various library functions for ARM architecture processors "
+third_party {
+ url {
+ type: HOMEPAGE
+ value: "https://github.com/ARM-software/optimized-routines"
+ }
+ url {
+ type: GIT
+ value: "https://github.com/ARM-software/optimized-routines.git"
+ }
+ version: "c7a7debc08741736d4836245b45e555fbf2390ed"
+ license_type: NOTICE
+ last_upgrade_date {
+ year: 2019
+ month: 7
+ day: 10
+ }
+}
diff --git a/MODULE_LICENSE_MIT b/MODULE_LICENSE_MIT
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MODULE_LICENSE_MIT
diff --git a/NOTICE b/NOTICE
new file mode 120000
index 0000000..7a694c9
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1 @@
+LICENSE
\ No newline at end of file
diff --git a/OWNERS b/OWNERS
new file mode 100644
index 0000000..89ae8d1
--- /dev/null
+++ b/OWNERS
@@ -0,0 +1,2 @@
+include platform/bionic:/OWNERS
+adhemerval.zanella@linaro.org
diff --git a/README.version b/README.version
new file mode 100644
index 0000000..856bfd9
--- /dev/null
+++ b/README.version
@@ -0,0 +1,2 @@
+URL: https://github.com/ARM-software/optimized-routines.git
+BugComponent: 14890
diff --git a/TEST_MAPPING b/TEST_MAPPING
new file mode 100644
index 0000000..e4d3d5e
--- /dev/null
+++ b/TEST_MAPPING
@@ -0,0 +1,7 @@
+{
+ "presubmit": [
+ {
+ "name": "CtsBionicTestCases"
+ }
+ ]
+}