blob: 69ba5478de6eec74dd565958821cf1f8f58c4527 [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",
Elliott Hughes055b2f32019-09-17 13:05:56 -07009 // We're actually implementing bionic here, so we don't want <math.h>
10 // to try to be helpful by renaming long double routines.
11 "-D__BIONIC_LP32_USE_LONG_DOUBLE",
Elliott Hughesc2e01832018-07-20 13:55:44 -070012 "-DWANT_ROUNDING=0",
13 "-DWANT_ERRNO=0",
Adhemerval Zanella9e6e8322018-07-26 11:43:46 -030014 "-DFLT_EVAL_METHOD=0",
15 "-ffp-contract=fast",
Elliott Hughesc2e01832018-07-20 13:55:44 -070016 ],
Elliott Hughes3f885362019-10-15 09:04:39 -070017 local_include_dirs: ["math/include"],
Elliott Hughesc2e01832018-07-20 13:55:44 -070018 srcs: [
Haibo Huangcd7d5362019-07-31 18:22:02 -070019 "math/*.c",
Elliott Hughesc2e01832018-07-20 13:55:44 -070020 ],
Adhemerval Zanella8e8d1b72018-08-06 13:22:58 -030021
22 // arch-specific settings
23 arch: {
24 arm64: {
25 cflags: [
26 "-DHAVE_FAST_FMA=1",
27 ],
28 },
29 },
30
Elliott Hughesc2e01832018-07-20 13:55:44 -070031 target: {
Christopher Ferris8785a762018-07-27 13:59:37 -070032 darwin: {
33 enabled: false,
34 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070035 linux_bionic: {
36 enabled: true,
37 },
38 },
39 stl: "none",
Dan Willemsen35edf452018-12-03 13:56:24 -080040 static: {
41 system_shared_libs: [],
42 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070043}
44
Elliott Hughese9c71052018-08-01 13:26:04 -070045// adb shell "/data/nativetest64/mathtest/mathtest /data/nativetest64/mathtest/test/testcases/directed/*"
46// adb shell "/data/nativetest/mathtest/mathtest /data/nativetest/mathtest/test/testcases/directed/*"
Elliott Hughesc2e01832018-07-20 13:55:44 -070047cc_test {
48 name: "mathtest",
49 gtest: false,
50 host_supported: true,
51 cflags: ["-Werror", "-Wno-missing-braces"],
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030052 srcs: [
Haibo Huangcd7d5362019-07-31 18:22:02 -070053 "math/test/mathtest.c"
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030054 ],
Haibo Huangcd7d5362019-07-31 18:22:02 -070055 data: ["math/test/testcases/directed/*.tst"],
Elliott Hughesc2e01832018-07-20 13:55:44 -070056 local_include_dirs: ["math/include"],
57 target: {
Elliott Hughese3966aa2018-07-26 08:46:15 -070058 darwin: {
59 enabled: false,
60 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070061 linux_bionic: {
62 enabled: true,
63 },
64 },
65}