1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
cc_library {
name: "libarm-optimized-routines",
host_supported: true,
recovery_available: true,
cflags: [
"-Werror",
"-O2",
"-DWANT_ROUNDING=0",
"-DWANT_ERRNO=0",
"-DFLT_EVAL_METHOD=0",
"-ffp-contract=fast",
],
srcs: [
"math/cosf.c",
"math/exp2.c",
"math/exp2f.c",
"math/exp2f_data.c",
"math/exp.c",
"math/exp_data.c",
"math/expf.c",
"math/log2.c",
"math/log2_data.c",
"math/log2f.c",
"math/log2f_data.c",
"math/log.c",
"math/log_data.c",
"math/logf.c",
"math/logf_data.c",
"math/math_err.c",
"math/math_errf.c",
"math/pow.c",
"math/pow_log_data.c",
"math/powf.c",
"math/powf_log2_data.c",
"math/sincosf.c",
"math/sincosf_data.c",
"math/sinf.c",
],
// arch-specific settings
arch: {
arm64: {
cflags: [
"-DHAVE_FAST_FMA=1",
],
},
},
target: {
darwin: {
enabled: false,
},
linux_bionic: {
enabled: true,
},
},
stl: "none",
static: {
system_shared_libs: [],
},
}
// adb shell "/data/nativetest64/mathtest/mathtest /data/nativetest64/mathtest/test/testcases/directed/*"
// adb shell "/data/nativetest/mathtest/mathtest /data/nativetest/mathtest/test/testcases/directed/*"
cc_test {
name: "mathtest",
gtest: false,
host_supported: true,
cflags: ["-Werror", "-Wno-missing-braces"],
srcs: [
"math/single/e_rem_pio2.c",
"test/mathtest.c"
],
data: ["test/testcases/directed/*.tst"],
local_include_dirs: ["math/include"],
target: {
darwin: {
enabled: false,
},
linux_bionic: {
enabled: true,
},
},
}
|