| cc_library { |
| name: "libarm-optimized-routines", |
| host_supported: true, |
| recovery_available: 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", |
| } |
| |
| // 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, |
| }, |
| }, |
| } |