blob: f22981c215f2aa9d82cb3b536ad3ce14c3c473d0 [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,
dimitry70ee0b12019-05-06 12:09:20 +02005 native_bridge_supported: true,
Elliott Hughesc2e01832018-07-20 13:55:44 -07006 cflags: [
7 "-Werror",
8 "-O2",
9 "-DWANT_ROUNDING=0",
10 "-DWANT_ERRNO=0",
Adhemerval Zanella9e6e8322018-07-26 11:43:46 -030011 "-DFLT_EVAL_METHOD=0",
12 "-ffp-contract=fast",
Elliott Hughesc2e01832018-07-20 13:55:44 -070013 ],
14 srcs: [
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030015 "math/cosf.c",
Adhemerval Zanellaff506532018-08-07 17:45:11 -030016 "math/exp2.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030017 "math/exp2f.c",
18 "math/exp2f_data.c",
Adhemerval Zanellaff506532018-08-07 17:45:11 -030019 "math/exp.c",
20 "math/exp_data.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030021 "math/expf.c",
Adhemerval Zanellaff506532018-08-07 17:45:11 -030022 "math/log2.c",
23 "math/log2_data.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030024 "math/log2f.c",
25 "math/log2f_data.c",
Adhemerval Zanellaff506532018-08-07 17:45:11 -030026 "math/log.c",
27 "math/log_data.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030028 "math/logf.c",
29 "math/logf_data.c",
Adhemerval Zanellaff506532018-08-07 17:45:11 -030030 "math/math_err.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030031 "math/math_errf.c",
Adhemerval Zanellaff506532018-08-07 17:45:11 -030032 "math/pow.c",
33 "math/pow_log_data.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030034 "math/powf.c",
35 "math/powf_log2_data.c",
36 "math/sincosf.c",
37 "math/sincosf_data.c",
38 "math/sinf.c",
Elliott Hughesc2e01832018-07-20 13:55:44 -070039 ],
Adhemerval Zanella8e8d1b72018-08-06 13:22:58 -030040
41 // arch-specific settings
42 arch: {
43 arm64: {
44 cflags: [
45 "-DHAVE_FAST_FMA=1",
46 ],
47 },
48 },
49
Elliott Hughesc2e01832018-07-20 13:55:44 -070050 target: {
Christopher Ferris8785a762018-07-27 13:59:37 -070051 darwin: {
52 enabled: false,
53 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070054 linux_bionic: {
55 enabled: true,
56 },
57 },
58 stl: "none",
Dan Willemsen35edf452018-12-03 13:56:24 -080059 static: {
60 system_shared_libs: [],
61 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070062}
63
Elliott Hughese9c71052018-08-01 13:26:04 -070064// adb shell "/data/nativetest64/mathtest/mathtest /data/nativetest64/mathtest/test/testcases/directed/*"
65// adb shell "/data/nativetest/mathtest/mathtest /data/nativetest/mathtest/test/testcases/directed/*"
Elliott Hughesc2e01832018-07-20 13:55:44 -070066cc_test {
67 name: "mathtest",
68 gtest: false,
69 host_supported: true,
70 cflags: ["-Werror", "-Wno-missing-braces"],
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030071 srcs: [
72 "math/single/e_rem_pio2.c",
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030073 "test/mathtest.c"
74 ],
Elliott Hughesc2e01832018-07-20 13:55:44 -070075 data: ["test/testcases/directed/*.tst"],
Elliott Hughesc2e01832018-07-20 13:55:44 -070076 local_include_dirs: ["math/include"],
77 target: {
Elliott Hughese3966aa2018-07-26 08:46:15 -070078 darwin: {
79 enabled: false,
80 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070081 linux_bionic: {
82 enabled: true,
83 },
84 },
85}