Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 1 | cc_library { |
| 2 | name: "libarm-optimized-routines", |
| 3 | host_supported: true, |
| 4 | cflags: [ |
| 5 | "-Werror", |
| 6 | "-O2", |
| 7 | "-DWANT_ROUNDING=0", |
| 8 | "-DWANT_ERRNO=0", |
Adhemerval Zanella | 9e6e832 | 2018-07-26 11:43:46 -0300 | [diff] [blame] | 9 | "-DFLT_EVAL_METHOD=0", |
| 10 | "-ffp-contract=fast", |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 11 | ], |
| 12 | srcs: [ |
Adhemerval Zanella | 0d6b754 | 2018-07-26 15:17:39 -0300 | [diff] [blame^] | 13 | "math/cosf.c", |
| 14 | "math/exp2f.c", |
| 15 | "math/exp2f_data.c", |
| 16 | "math/expf.c", |
| 17 | "math/log2f.c", |
| 18 | "math/log2f_data.c", |
| 19 | "math/logf.c", |
| 20 | "math/logf_data.c", |
| 21 | "math/math_errf.c", |
| 22 | "math/powf.c", |
| 23 | "math/powf_log2_data.c", |
| 24 | "math/sincosf.c", |
| 25 | "math/sincosf_data.c", |
| 26 | "math/sinf.c", |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 27 | ], |
| 28 | target: { |
Christopher Ferris | 8785a76 | 2018-07-27 13:59:37 -0700 | [diff] [blame] | 29 | darwin: { |
| 30 | enabled: false, |
| 31 | }, |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 32 | linux_bionic: { |
| 33 | enabled: true, |
| 34 | }, |
| 35 | }, |
| 36 | stl: "none", |
| 37 | } |
| 38 | |
| 39 | // adb shell "find /data/nativetest/mathtest/ -iname '*.tst' -print0 | xargs -0 cat | /data/nativetest/mathtest/mathtest" |
| 40 | // adb shell "find /data/nativetest64/mathtest/ -iname '*.tst' -print0 | xargs -0 cat | /data/nativetest64/mathtest/mathtest" |
| 41 | cc_test { |
| 42 | name: "mathtest", |
| 43 | gtest: false, |
| 44 | host_supported: true, |
| 45 | cflags: ["-Werror", "-Wno-missing-braces"], |
Adhemerval Zanella | 0d6b754 | 2018-07-26 15:17:39 -0300 | [diff] [blame^] | 46 | srcs: [ |
| 47 | "math/single/e_rem_pio2.c", |
| 48 | "math/single/rredf.c", |
| 49 | "test/mathtest.c" |
| 50 | ], |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 51 | data: ["test/testcases/directed/*.tst"], |
| 52 | static_libs: ["libarm-optimized-routines"], |
| 53 | local_include_dirs: ["math/include"], |
| 54 | target: { |
Elliott Hughes | e3966aa | 2018-07-26 08:46:15 -0700 | [diff] [blame] | 55 | darwin: { |
| 56 | enabled: false, |
| 57 | }, |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 58 | linux_bionic: { |
| 59 | enabled: true, |
| 60 | }, |
| 61 | }, |
| 62 | } |