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 // This is historical code that doesn't build as C23, 33 // but we don't want to unnecessarily fork. 34 c_std: "gnu99", 35 cflags: [ 36 "-O3", 37 "-fno-inline-functions", 38 "-DMSC_CLOCK", 39 "-DCLK_TCK=1000000", 40 "-Wno-deprecated-non-prototype", 41 "-Wno-implicit-function-declaration", 42 "-Wno-implicit-int", 43 "-Wno-incompatible-library-redeclaration", 44 "-Wno-return-type", 45 ], 46 // Include both the 32 and 64 bit versions 47 compile_multilib: "both", 48 multilib: { 49 lib32: { 50 suffix: "32", 51 }, 52 lib64: { 53 suffix: "64", 54 }, 55 }, 56 test_suites: [ 57 "cts", 58 "general-tests", 59 "tvts", 60 ], 61} 62