blob: 821d570e12dce1c6e63663d1bdb9a4bd2e67c8e7 [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 ],
29 target: {
Christopher Ferris8785a762018-07-27 13:59:37 -070030 darwin: {
31 enabled: false,
32 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070033 linux_bionic: {
34 enabled: true,
35 },
36 },
37 stl: "none",
38}
39
40// adb shell "find /data/nativetest/mathtest/ -iname '*.tst' -print0 | xargs -0 cat | /data/nativetest/mathtest/mathtest"
41// adb shell "find /data/nativetest64/mathtest/ -iname '*.tst' -print0 | xargs -0 cat | /data/nativetest64/mathtest/mathtest"
42cc_test {
43 name: "mathtest",
44 gtest: false,
45 host_supported: true,
46 cflags: ["-Werror", "-Wno-missing-braces"],
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030047 srcs: [
48 "math/single/e_rem_pio2.c",
49 "math/single/rredf.c",
50 "test/mathtest.c"
51 ],
Elliott Hughesc2e01832018-07-20 13:55:44 -070052 data: ["test/testcases/directed/*.tst"],
53 static_libs: ["libarm-optimized-routines"],
54 local_include_dirs: ["math/include"],
55 target: {
Elliott Hughese3966aa2018-07-26 08:46:15 -070056 darwin: {
57 enabled: false,
58 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070059 linux_bionic: {
60 enabled: true,
61 },
62 },
63}