blob: d533695085adaa2c4ac398ddede13161ba9707a0 [file] [log] [blame]
Elliott Hughesc2e01832018-07-20 13:55:44 -07001cc_library {
2 name: "libarm-optimized-routines",
3 host_supported: true,
Adhemerval Zanellad9635cd2018-07-27 14:03:55 -03004 recovery_available: true,
Elliott Hughesc2e01832018-07-20 13:55:44 -07005 cflags: [
6 "-Werror",
7 "-O2",
8 "-DWANT_ROUNDING=0",
9 "-DWANT_ERRNO=0",
Adhemerval Zanella9e6e8322018-07-26 11:43:46 -030010 "-DFLT_EVAL_METHOD=0",
11 "-ffp-contract=fast",
Elliott Hughesc2e01832018-07-20 13:55:44 -070012 ],
13 srcs: [
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030014 "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 Hughesc2e01832018-07-20 13:55:44 -070028 ],
Adhemerval Zanella8e8d1b72018-08-06 13:22:58 -030029
30 // arch-specific settings
31 arch: {
32 arm64: {
33 cflags: [
34 "-DHAVE_FAST_FMA=1",
35 ],
36 },
37 },
38
Elliott Hughesc2e01832018-07-20 13:55:44 -070039 target: {
Christopher Ferris8785a762018-07-27 13:59:37 -070040 darwin: {
41 enabled: false,
42 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070043 linux_bionic: {
44 enabled: true,
45 },
46 },
47 stl: "none",
48}
49
Elliott Hughese9c71052018-08-01 13:26:04 -070050// 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 Hughesc2e01832018-07-20 13:55:44 -070052cc_test {
53 name: "mathtest",
54 gtest: false,
55 host_supported: true,
56 cflags: ["-Werror", "-Wno-missing-braces"],
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030057 srcs: [
58 "math/single/e_rem_pio2.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030059 "test/mathtest.c"
60 ],
Elliott Hughesc2e01832018-07-20 13:55:44 -070061 data: ["test/testcases/directed/*.tst"],
Elliott Hughesc2e01832018-07-20 13:55:44 -070062 local_include_dirs: ["math/include"],
63 target: {
Elliott Hughese3966aa2018-07-26 08:46:15 -070064 darwin: {
65 enabled: false,
66 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070067 linux_bionic: {
68 enabled: true,
69 },
70 },
71}