1//# sources have been created from Drystone-2.1.sh with below command:
2// ./Drystone-2.1.sh
3// sed -i 's/printf ("  Ptr_Comp:          %d\\n", (int) /printf ("  Ptr_Comp:          %p\\n", /g' dhry_1.c
4// sed -i 's,^} /\* Proc_,return 0; } /\* Proc_,g' *.c
5
6// See: http://go/android-license-faq
7package {
8    default_applicable_licenses: [
9        "cts_hostsidetests_sustainedperf_dhrystone_license",
10    ],
11}
12
13license {
14    name: "cts_hostsidetests_sustainedperf_dhrystone_license",
15    visibility: [":__subpackages__"],
16    license_kinds: [
17        "SPDX-license-identifier-BSD",
18        "SPDX-license-identifier-MIT",
19        "SPDX-license-identifier-NCSA",
20    ],
21    license_text: [
22        "LICENSE.TXT",
23    ],
24}
25
26cc_test {
27    name: "dhry",
28    srcs: [
29        "dhry_1.c",
30        "dhry_2.c",
31    ],
32    cflags: [
33        "-O3",
34        "-fno-inline-functions",
35        "-DMSC_CLOCK",
36        "-DCLK_TCK=1000000",
37        "-Wno-deprecated-non-prototype",
38        "-Wno-implicit-function-declaration",
39        "-Wno-implicit-int",
40        "-Wno-incompatible-library-redeclaration",
41        "-Wno-return-type",
42    ],
43    // Include both the 32 and 64 bit versions
44    compile_multilib: "both",
45    multilib: {
46        lib32: {
47            suffix: "32",
48        },
49        lib64: {
50            suffix: "64",
51        },
52    },
53    test_suites: [
54        "cts",
55        "general-tests",
56        "tvts",
57    ],
58}
59