blob: 2276161a95b5a1ff778e757749111a5c4adc5a08 [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",
Dan Willemsen35edf452018-12-03 13:56:24 -080058 static: {
59 system_shared_libs: [],
60 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070061}
62
Elliott Hughese9c71052018-08-01 13:26:04 -070063// adb shell "/data/nativetest64/mathtest/mathtest /data/nativetest64/mathtest/test/testcases/directed/*"
64// adb shell "/data/nativetest/mathtest/mathtest /data/nativetest/mathtest/test/testcases/directed/*"
Elliott Hughesc2e01832018-07-20 13:55:44 -070065cc_test {
66 name: "mathtest",
67 gtest: false,
68 host_supported: true,
69 cflags: ["-Werror", "-Wno-missing-braces"],
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030070 srcs: [
71 "math/single/e_rem_pio2.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030072 "test/mathtest.c"
73 ],
Elliott Hughesc2e01832018-07-20 13:55:44 -070074 data: ["test/testcases/directed/*.tst"],
Elliott Hughesc2e01832018-07-20 13:55:44 -070075 local_include_dirs: ["math/include"],
76 target: {
Elliott Hughese3966aa2018-07-26 08:46:15 -070077 darwin: {
78 enabled: false,
79 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070080 linux_bionic: {
81 enabled: true,
82 },
83 },
84}