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