blob: e8ded1212b99e8dfafe355d6bc93e63fef7bc668 [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",
Adhemerval Zanellaff506532018-08-07 17:45:11 -030015 "math/exp2.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030016 "math/exp2f.c",
17 "math/exp2f_data.c",
Adhemerval Zanellaff506532018-08-07 17:45:11 -030018 "math/exp.c",
19 "math/exp_data.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030020 "math/expf.c",
Adhemerval Zanellaff506532018-08-07 17:45:11 -030021 "math/log2.c",
22 "math/log2_data.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030023 "math/log2f.c",
24 "math/log2f_data.c",
Adhemerval Zanellaff506532018-08-07 17:45:11 -030025 "math/log.c",
26 "math/log_data.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030027 "math/logf.c",
28 "math/logf_data.c",
Adhemerval Zanellaff506532018-08-07 17:45:11 -030029 "math/math_err.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030030 "math/math_errf.c",
Adhemerval Zanellaff506532018-08-07 17:45:11 -030031 "math/pow.c",
32 "math/pow_log_data.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030033 "math/powf.c",
34 "math/powf_log2_data.c",
35 "math/sincosf.c",
36 "math/sincosf_data.c",
37 "math/sinf.c",
Elliott Hughesc2e01832018-07-20 13:55:44 -070038 ],
Adhemerval Zanella8e8d1b72018-08-06 13:22:58 -030039
40 // arch-specific settings
41 arch: {
42 arm64: {
43 cflags: [
44 "-DHAVE_FAST_FMA=1",
45 ],
46 },
47 },
48
Elliott Hughesc2e01832018-07-20 13:55:44 -070049 target: {
Christopher Ferris8785a762018-07-27 13:59:37 -070050 darwin: {
51 enabled: false,
52 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070053 linux_bionic: {
54 enabled: true,
55 },
56 },
57 stl: "none",
58}
59
Elliott Hughese9c71052018-08-01 13:26:04 -070060// adb shell "/data/nativetest64/mathtest/mathtest /data/nativetest64/mathtest/test/testcases/directed/*"
61// adb shell "/data/nativetest/mathtest/mathtest /data/nativetest/mathtest/test/testcases/directed/*"
Elliott Hughesc2e01832018-07-20 13:55:44 -070062cc_test {
63 name: "mathtest",
64 gtest: false,
65 host_supported: true,
66 cflags: ["-Werror", "-Wno-missing-braces"],
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030067 srcs: [
68 "math/single/e_rem_pio2.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030069 "test/mathtest.c"
70 ],
Elliott Hughesc2e01832018-07-20 13:55:44 -070071 data: ["test/testcases/directed/*.tst"],
Elliott Hughesc2e01832018-07-20 13:55:44 -070072 local_include_dirs: ["math/include"],
73 target: {
Elliott Hughese3966aa2018-07-26 08:46:15 -070074 darwin: {
75 enabled: false,
76 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070077 linux_bionic: {
78 enabled: true,
79 },
80 },
81}