blob: caef65d07efe0d699341a9bd7596fded43f83d1a [file] [log] [blame]
Elliott Hughesc2e01832018-07-20 13:55:44 -07001cc_library {
2 name: "libarm-optimized-routines",
3 host_supported: true,
4 cflags: [
5 "-Werror",
6 "-O2",
7 "-DWANT_ROUNDING=0",
8 "-DWANT_ERRNO=0",
Adhemerval Zanella9e6e8322018-07-26 11:43:46 -03009 "-DFLT_EVAL_METHOD=0",
10 "-ffp-contract=fast",
Elliott Hughesc2e01832018-07-20 13:55:44 -070011 ],
12 srcs: [
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030013 "math/cosf.c",
14 "math/exp2f.c",
15 "math/exp2f_data.c",
16 "math/expf.c",
17 "math/log2f.c",
18 "math/log2f_data.c",
19 "math/logf.c",
20 "math/logf_data.c",
21 "math/math_errf.c",
22 "math/powf.c",
23 "math/powf_log2_data.c",
24 "math/sincosf.c",
25 "math/sincosf_data.c",
26 "math/sinf.c",
Elliott Hughesc2e01832018-07-20 13:55:44 -070027 ],
28 target: {
Christopher Ferris8785a762018-07-27 13:59:37 -070029 darwin: {
30 enabled: false,
31 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070032 linux_bionic: {
33 enabled: true,
34 },
35 },
36 stl: "none",
37}
38
39// adb shell "find /data/nativetest/mathtest/ -iname '*.tst' -print0 | xargs -0 cat | /data/nativetest/mathtest/mathtest"
40// adb shell "find /data/nativetest64/mathtest/ -iname '*.tst' -print0 | xargs -0 cat | /data/nativetest64/mathtest/mathtest"
41cc_test {
42 name: "mathtest",
43 gtest: false,
44 host_supported: true,
45 cflags: ["-Werror", "-Wno-missing-braces"],
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030046 srcs: [
47 "math/single/e_rem_pio2.c",
48 "math/single/rredf.c",
49 "test/mathtest.c"
50 ],
Elliott Hughesc2e01832018-07-20 13:55:44 -070051 data: ["test/testcases/directed/*.tst"],
52 static_libs: ["libarm-optimized-routines"],
53 local_include_dirs: ["math/include"],
54 target: {
Elliott Hughese3966aa2018-07-26 08:46:15 -070055 darwin: {
56 enabled: false,
57 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070058 linux_bionic: {
59 enabled: true,
60 },
61 },
62}