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