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 | ], |
Adhemerval Zanella | 8e8d1b7 | 2018-08-06 13:22:58 -0300 | [diff] [blame] | 29 | |
| 30 | // arch-specific settings |
| 31 | arch: { |
| 32 | arm64: { |
| 33 | cflags: [ |
| 34 | "-DHAVE_FAST_FMA=1", |
| 35 | ], |
| 36 | }, |
| 37 | }, |
| 38 | |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 39 | target: { |
Christopher Ferris | 8785a76 | 2018-07-27 13:59:37 -0700 | [diff] [blame] | 40 | darwin: { |
| 41 | enabled: false, |
| 42 | }, |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 43 | linux_bionic: { |
| 44 | enabled: true, |
| 45 | }, |
| 46 | }, |
| 47 | stl: "none", |
| 48 | } |
| 49 | |
Elliott Hughes | e9c7105 | 2018-08-01 13:26:04 -0700 | [diff] [blame] | 50 | // adb shell "/data/nativetest64/mathtest/mathtest /data/nativetest64/mathtest/test/testcases/directed/*" |
| 51 | // adb shell "/data/nativetest/mathtest/mathtest /data/nativetest/mathtest/test/testcases/directed/*" |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 52 | cc_test { |
| 53 | name: "mathtest", |
| 54 | gtest: false, |
| 55 | host_supported: true, |
| 56 | cflags: ["-Werror", "-Wno-missing-braces"], |
Adhemerval Zanella | 0d6b754 | 2018-07-26 15:17:39 -0300 | [diff] [blame] | 57 | srcs: [ |
| 58 | "math/single/e_rem_pio2.c", |
Adhemerval Zanella | 0d6b754 | 2018-07-26 15:17:39 -0300 | [diff] [blame] | 59 | "test/mathtest.c" |
| 60 | ], |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 61 | data: ["test/testcases/directed/*.tst"], |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 62 | local_include_dirs: ["math/include"], |
| 63 | target: { |
Elliott Hughes | e3966aa | 2018-07-26 08:46:15 -0700 | [diff] [blame] | 64 | darwin: { |
| 65 | enabled: false, |
| 66 | }, |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 67 | linux_bionic: { |
| 68 | enabled: true, |
| 69 | }, |
| 70 | }, |
| 71 | } |