1bionic_coverage = false 2 3// 4// libm.so and libm.a for target. 5// 6cc_library { 7 name: "libm", 8 defaults: ["linux_bionic_supported"], 9 ramdisk_available: true, 10 recovery_available: true, 11 static_ndk_lib: true, 12 13 whole_static_libs: ["libarm-optimized-routines-math"], 14 15 srcs: [ 16 "upstream-freebsd/lib/msun/bsdsrc/b_exp.c", 17 "upstream-freebsd/lib/msun/bsdsrc/b_log.c", 18 "upstream-freebsd/lib/msun/bsdsrc/b_tgamma.c", 19 "upstream-freebsd/lib/msun/src/catrig.c", 20 "upstream-freebsd/lib/msun/src/catrigf.c", 21 "upstream-freebsd/lib/msun/src/e_acos.c", 22 "upstream-freebsd/lib/msun/src/e_acosf.c", 23 "upstream-freebsd/lib/msun/src/e_acosh.c", 24 "upstream-freebsd/lib/msun/src/e_acoshf.c", 25 "upstream-freebsd/lib/msun/src/e_asin.c", 26 "upstream-freebsd/lib/msun/src/e_asinf.c", 27 "upstream-freebsd/lib/msun/src/e_atan2.c", 28 "upstream-freebsd/lib/msun/src/e_atan2f.c", 29 "upstream-freebsd/lib/msun/src/e_atanh.c", 30 "upstream-freebsd/lib/msun/src/e_atanhf.c", 31 "upstream-freebsd/lib/msun/src/e_cosh.c", 32 "upstream-freebsd/lib/msun/src/e_coshf.c", 33 "upstream-freebsd/lib/msun/src/e_fmod.c", 34 "upstream-freebsd/lib/msun/src/e_fmodf.c", 35 "upstream-freebsd/lib/msun/src/e_gamma.c", 36 "upstream-freebsd/lib/msun/src/e_gammaf.c", 37 "upstream-freebsd/lib/msun/src/e_gammaf_r.c", 38 "upstream-freebsd/lib/msun/src/e_gamma_r.c", 39 "upstream-freebsd/lib/msun/src/e_hypot.c", 40 "upstream-freebsd/lib/msun/src/e_hypotf.c", 41 "upstream-freebsd/lib/msun/src/e_j0.c", 42 "upstream-freebsd/lib/msun/src/e_j0f.c", 43 "upstream-freebsd/lib/msun/src/e_j1.c", 44 "upstream-freebsd/lib/msun/src/e_j1f.c", 45 "upstream-freebsd/lib/msun/src/e_jn.c", 46 "upstream-freebsd/lib/msun/src/e_jnf.c", 47 "upstream-freebsd/lib/msun/src/e_lgamma.c", 48 "upstream-freebsd/lib/msun/src/e_lgammaf.c", 49 "upstream-freebsd/lib/msun/src/e_lgammaf_r.c", 50 "upstream-freebsd/lib/msun/src/e_lgamma_r.c", 51 "upstream-freebsd/lib/msun/src/e_log10.c", 52 "upstream-freebsd/lib/msun/src/e_log10f.c", 53 "upstream-freebsd/lib/msun/src/e_remainder.c", 54 "upstream-freebsd/lib/msun/src/e_remainderf.c", 55 "upstream-freebsd/lib/msun/src/e_rem_pio2.c", 56 "upstream-freebsd/lib/msun/src/e_rem_pio2f.c", 57 "upstream-freebsd/lib/msun/src/e_scalb.c", 58 "upstream-freebsd/lib/msun/src/e_scalbf.c", 59 "upstream-freebsd/lib/msun/src/e_sinh.c", 60 "upstream-freebsd/lib/msun/src/e_sinhf.c", 61 "upstream-freebsd/lib/msun/src/e_sqrt.c", 62 "upstream-freebsd/lib/msun/src/e_sqrtf.c", 63 "upstream-freebsd/lib/msun/src/k_cos.c", 64 "upstream-freebsd/lib/msun/src/k_cosf.c", 65 "upstream-freebsd/lib/msun/src/k_exp.c", 66 "upstream-freebsd/lib/msun/src/k_expf.c", 67 "upstream-freebsd/lib/msun/src/k_rem_pio2.c", 68 "upstream-freebsd/lib/msun/src/k_sin.c", 69 "upstream-freebsd/lib/msun/src/k_sinf.c", 70 "upstream-freebsd/lib/msun/src/k_tan.c", 71 "upstream-freebsd/lib/msun/src/k_tanf.c", 72 "upstream-freebsd/lib/msun/src/s_asinh.c", 73 "upstream-freebsd/lib/msun/src/s_asinhf.c", 74 "upstream-freebsd/lib/msun/src/s_atan.c", 75 "upstream-freebsd/lib/msun/src/s_atanf.c", 76 "upstream-freebsd/lib/msun/src/s_carg.c", 77 "upstream-freebsd/lib/msun/src/s_cargf.c", 78 "upstream-freebsd/lib/msun/src/s_cargl.c", 79 "upstream-freebsd/lib/msun/src/s_cbrt.c", 80 "upstream-freebsd/lib/msun/src/s_cbrtf.c", 81 "upstream-freebsd/lib/msun/src/s_ccosh.c", 82 "upstream-freebsd/lib/msun/src/s_ccoshf.c", 83 "upstream-freebsd/lib/msun/src/s_ceil.c", 84 "upstream-freebsd/lib/msun/src/s_ceilf.c", 85 "upstream-freebsd/lib/msun/src/s_cexp.c", 86 "upstream-freebsd/lib/msun/src/s_cexpf.c", 87 "upstream-freebsd/lib/msun/src/s_cimag.c", 88 "upstream-freebsd/lib/msun/src/s_cimagf.c", 89 "upstream-freebsd/lib/msun/src/s_cimagl.c", 90 "upstream-freebsd/lib/msun/src/s_clog.c", 91 "upstream-freebsd/lib/msun/src/s_clogf.c", 92 "upstream-freebsd/lib/msun/src/s_conj.c", 93 "upstream-freebsd/lib/msun/src/s_conjf.c", 94 "upstream-freebsd/lib/msun/src/s_conjl.c", 95 "upstream-freebsd/lib/msun/src/s_copysign.c", 96 "upstream-freebsd/lib/msun/src/s_copysignf.c", 97 "upstream-freebsd/lib/msun/src/s_cos.c", 98 "upstream-freebsd/lib/msun/src/s_cpow.c", 99 "upstream-freebsd/lib/msun/src/s_cpowf.c", 100 "upstream-freebsd/lib/msun/src/s_cpowl.c", 101 "upstream-freebsd/lib/msun/src/s_cproj.c", 102 "upstream-freebsd/lib/msun/src/s_cprojf.c", 103 "upstream-freebsd/lib/msun/src/s_cprojl.c", 104 "upstream-freebsd/lib/msun/src/s_creal.c", 105 "upstream-freebsd/lib/msun/src/s_crealf.c", 106 "upstream-freebsd/lib/msun/src/s_creall.c", 107 "upstream-freebsd/lib/msun/src/s_csinh.c", 108 "upstream-freebsd/lib/msun/src/s_csinhf.c", 109 "upstream-freebsd/lib/msun/src/s_csqrt.c", 110 "upstream-freebsd/lib/msun/src/s_csqrtf.c", 111 "upstream-freebsd/lib/msun/src/s_ctanh.c", 112 "upstream-freebsd/lib/msun/src/s_ctanhf.c", 113 "upstream-freebsd/lib/msun/src/s_erf.c", 114 "upstream-freebsd/lib/msun/src/s_erff.c", 115 "upstream-freebsd/lib/msun/src/s_expm1.c", 116 "upstream-freebsd/lib/msun/src/s_expm1f.c", 117 "upstream-freebsd/lib/msun/src/s_fdim.c", 118 "upstream-freebsd/lib/msun/src/s_finite.c", 119 "upstream-freebsd/lib/msun/src/s_finitef.c", 120 "upstream-freebsd/lib/msun/src/s_floor.c", 121 "upstream-freebsd/lib/msun/src/s_floorf.c", 122 "upstream-freebsd/lib/msun/src/s_fma.c", 123 "upstream-freebsd/lib/msun/src/s_fmaf.c", 124 "upstream-freebsd/lib/msun/src/s_fmax.c", 125 "upstream-freebsd/lib/msun/src/s_fmaxf.c", 126 "upstream-freebsd/lib/msun/src/s_fmin.c", 127 "upstream-freebsd/lib/msun/src/s_fminf.c", 128 "upstream-freebsd/lib/msun/src/s_frexp.c", 129 "upstream-freebsd/lib/msun/src/s_frexpf.c", 130 "upstream-freebsd/lib/msun/src/s_ilogb.c", 131 "upstream-freebsd/lib/msun/src/s_ilogbf.c", 132 "upstream-freebsd/lib/msun/src/s_llrint.c", 133 "upstream-freebsd/lib/msun/src/s_llrintf.c", 134 "upstream-freebsd/lib/msun/src/s_llround.c", 135 "upstream-freebsd/lib/msun/src/s_llroundf.c", 136 "upstream-freebsd/lib/msun/src/s_log1p.c", 137 "upstream-freebsd/lib/msun/src/s_log1pf.c", 138 "upstream-freebsd/lib/msun/src/s_logb.c", 139 "upstream-freebsd/lib/msun/src/s_logbf.c", 140 "upstream-freebsd/lib/msun/src/s_lrint.c", 141 "upstream-freebsd/lib/msun/src/s_lrintf.c", 142 "upstream-freebsd/lib/msun/src/s_lround.c", 143 "upstream-freebsd/lib/msun/src/s_lroundf.c", 144 "upstream-freebsd/lib/msun/src/s_modf.c", 145 "upstream-freebsd/lib/msun/src/s_modff.c", 146 "upstream-freebsd/lib/msun/src/s_nan.c", 147 "upstream-freebsd/lib/msun/src/s_nearbyint.c", 148 "upstream-freebsd/lib/msun/src/s_nextafter.c", 149 "upstream-freebsd/lib/msun/src/s_nextafterf.c", 150 "upstream-freebsd/lib/msun/src/s_remquo.c", 151 "upstream-freebsd/lib/msun/src/s_remquof.c", 152 "upstream-freebsd/lib/msun/src/s_rint.c", 153 "upstream-freebsd/lib/msun/src/s_rintf.c", 154 "upstream-freebsd/lib/msun/src/s_round.c", 155 "upstream-freebsd/lib/msun/src/s_roundf.c", 156 "upstream-freebsd/lib/msun/src/s_scalbln.c", 157 "upstream-freebsd/lib/msun/src/s_scalbn.c", 158 "upstream-freebsd/lib/msun/src/s_scalbnf.c", 159 "upstream-freebsd/lib/msun/src/s_signgam.c", 160 "upstream-freebsd/lib/msun/src/s_significand.c", 161 "upstream-freebsd/lib/msun/src/s_significandf.c", 162 "upstream-freebsd/lib/msun/src/s_sin.c", 163 "upstream-freebsd/lib/msun/src/s_sincos.c", 164 "upstream-freebsd/lib/msun/src/s_tan.c", 165 "upstream-freebsd/lib/msun/src/s_tanf.c", 166 "upstream-freebsd/lib/msun/src/s_tanh.c", 167 "upstream-freebsd/lib/msun/src/s_tanhf.c", 168 "upstream-freebsd/lib/msun/src/s_tgammaf.c", 169 "upstream-freebsd/lib/msun/src/s_trunc.c", 170 "upstream-freebsd/lib/msun/src/s_truncf.c", 171 "upstream-freebsd/lib/msun/src/w_cabs.c", 172 "upstream-freebsd/lib/msun/src/w_cabsf.c", 173 "upstream-freebsd/lib/msun/src/w_cabsl.c", 174 "upstream-freebsd/lib/msun/src/w_drem.c", 175 "upstream-freebsd/lib/msun/src/w_dremf.c", 176 177 // The FreeBSD complex functions appear to be better, but they're incomplete. 178 // We take the FreeBSD implementations when they exist, but fill out the rest 179 // of <complex.h> from NetBSD... 180 "upstream-netbsd/lib/libm/complex/ccoshl.c", 181 "upstream-netbsd/lib/libm/complex/ccosl.c", 182 "upstream-netbsd/lib/libm/complex/cephes_subrl.c", 183 "upstream-netbsd/lib/libm/complex/cexpl.c", 184 "upstream-netbsd/lib/libm/complex/csinhl.c", 185 "upstream-netbsd/lib/libm/complex/csinl.c", 186 "upstream-netbsd/lib/libm/complex/ctanhl.c", 187 "upstream-netbsd/lib/libm/complex/ctanl.c", 188 189 // TODO: this comes from from upstream's libc, not libm, but it's an 190 // implementation detail that should have hidden visibility, so it needs 191 // to be in whatever library the math code is in. 192 "digittoint.c", 193 194 // Functionality not in the BSDs. 195 "significandl.c", 196 "fake_long_double.c", 197 198 // Home-grown stuff. 199 "builtins.cpp", 200 "signbit.cpp", 201 ], 202 203 multilib: { 204 lib64: { 205 srcs: [ 206 "upstream-freebsd/lib/msun/src/catrigl.c", 207 "upstream-freebsd/lib/msun/src/e_acosl.c", 208 "upstream-freebsd/lib/msun/src/e_acoshl.c", 209 "upstream-freebsd/lib/msun/src/e_asinl.c", 210 "upstream-freebsd/lib/msun/src/e_atan2l.c", 211 "upstream-freebsd/lib/msun/src/e_atanhl.c", 212 "upstream-freebsd/lib/msun/src/e_fmodl.c", 213 "upstream-freebsd/lib/msun/src/e_hypotl.c", 214 "upstream-freebsd/lib/msun/src/e_lgammal.c", 215 "upstream-freebsd/lib/msun/src/e_remainderl.c", 216 "upstream-freebsd/lib/msun/src/e_sqrtl.c", 217 "upstream-freebsd/lib/msun/src/s_asinhl.c", 218 "upstream-freebsd/lib/msun/src/s_atanl.c", 219 "upstream-freebsd/lib/msun/src/s_cbrtl.c", 220 "upstream-freebsd/lib/msun/src/s_ceill.c", 221 "upstream-freebsd/lib/msun/src/s_clogl.c", 222 "upstream-freebsd/lib/msun/src/s_copysignl.c", 223 "upstream-freebsd/lib/msun/src/e_coshl.c", 224 "upstream-freebsd/lib/msun/src/s_cosl.c", 225 "upstream-freebsd/lib/msun/src/s_csqrtl.c", 226 "upstream-freebsd/lib/msun/src/s_floorl.c", 227 "upstream-freebsd/lib/msun/src/s_fmal.c", 228 "upstream-freebsd/lib/msun/src/s_fmaxl.c", 229 "upstream-freebsd/lib/msun/src/s_fminl.c", 230 "upstream-freebsd/lib/msun/src/s_modfl.c", 231 "upstream-freebsd/lib/msun/src/s_frexpl.c", 232 "upstream-freebsd/lib/msun/src/s_ilogbl.c", 233 "upstream-freebsd/lib/msun/src/s_llrintl.c", 234 "upstream-freebsd/lib/msun/src/s_llroundl.c", 235 "upstream-freebsd/lib/msun/src/s_logbl.c", 236 "upstream-freebsd/lib/msun/src/s_lrintl.c", 237 "upstream-freebsd/lib/msun/src/s_lroundl.c", 238 "upstream-freebsd/lib/msun/src/s_nextafterl.c", 239 "upstream-freebsd/lib/msun/src/s_nexttoward.c", 240 "upstream-freebsd/lib/msun/src/s_nexttowardf.c", 241 "upstream-freebsd/lib/msun/src/s_remquol.c", 242 "upstream-freebsd/lib/msun/src/s_rintl.c", 243 "upstream-freebsd/lib/msun/src/s_roundl.c", 244 "upstream-freebsd/lib/msun/src/s_scalbnl.c", 245 "upstream-freebsd/lib/msun/src/s_sincosl.c", 246 "upstream-freebsd/lib/msun/src/e_sinhl.c", 247 "upstream-freebsd/lib/msun/src/s_sinl.c", 248 "upstream-freebsd/lib/msun/src/s_tanhl.c", 249 "upstream-freebsd/lib/msun/src/s_tanl.c", 250 "upstream-freebsd/lib/msun/src/s_truncl.c", 251 252 "upstream-freebsd/lib/msun/ld128/invtrig.c", 253 "upstream-freebsd/lib/msun/ld128/e_lgammal_r.c", 254 "upstream-freebsd/lib/msun/ld128/e_powl.c", 255 "upstream-freebsd/lib/msun/ld128/k_cosl.c", 256 "upstream-freebsd/lib/msun/ld128/k_sinl.c", 257 "upstream-freebsd/lib/msun/ld128/k_tanl.c", 258 "upstream-freebsd/lib/msun/ld128/s_erfl.c", 259 "upstream-freebsd/lib/msun/ld128/s_exp2l.c", 260 "upstream-freebsd/lib/msun/ld128/s_expl.c", 261 "upstream-freebsd/lib/msun/ld128/s_logl.c", 262 "upstream-freebsd/lib/msun/ld128/s_nanl.c", 263 ], 264 local_include_dirs: ["upstream-freebsd/lib/msun/ld128/"], 265 }, 266 }, 267 268 // arch-specific settings 269 arch: { 270 arm: { 271 srcs: [ 272 "arm/fenv.c", 273 ], 274 neon: { 275 srcs: [ 276 "arm/sqrt.S", 277 "arm/floor.S", 278 ], 279 280 exclude_srcs: [ 281 "upstream-freebsd/lib/msun/src/e_sqrt.c", 282 "upstream-freebsd/lib/msun/src/e_sqrtf.c", 283 "upstream-freebsd/lib/msun/src/s_floor.c", 284 ], 285 }, 286 instruction_set: "arm", 287 pack_relocations: false, 288 ldflags: ["-Wl,--hash-style=both"], 289 version_script: ":libm.arm.map", 290 }, 291 292 arm64: { 293 srcs: [ 294 "arm64/fenv.c", 295 "arm64/lrint.S", 296 "arm64/sqrt.S", 297 ], 298 exclude_srcs: [ 299 "upstream-freebsd/lib/msun/src/e_sqrt.c", 300 "upstream-freebsd/lib/msun/src/e_sqrtf.c", 301 "upstream-freebsd/lib/msun/src/s_ceil.c", 302 "upstream-freebsd/lib/msun/src/s_ceilf.c", 303 "upstream-freebsd/lib/msun/src/s_floor.c", 304 "upstream-freebsd/lib/msun/src/s_floorf.c", 305 "upstream-freebsd/lib/msun/src/s_fma.c", 306 "upstream-freebsd/lib/msun/src/s_fmaf.c", 307 "upstream-freebsd/lib/msun/src/s_fmax.c", 308 "upstream-freebsd/lib/msun/src/s_fmaxf.c", 309 "upstream-freebsd/lib/msun/src/s_fmin.c", 310 "upstream-freebsd/lib/msun/src/s_fminf.c", 311 "upstream-freebsd/lib/msun/src/s_llrint.c", 312 "upstream-freebsd/lib/msun/src/s_llrintf.c", 313 "upstream-freebsd/lib/msun/src/s_lrint.c", 314 "upstream-freebsd/lib/msun/src/s_lrintf.c", 315 "upstream-freebsd/lib/msun/src/s_rint.c", 316 "upstream-freebsd/lib/msun/src/s_rintf.c", 317 "upstream-freebsd/lib/msun/src/s_round.c", 318 "upstream-freebsd/lib/msun/src/s_roundf.c", 319 "upstream-freebsd/lib/msun/src/s_trunc.c", 320 "upstream-freebsd/lib/msun/src/s_truncf.c", 321 ], 322 version_script: ":libm.arm64.map", 323 }, 324 325 x86: { 326 srcs: [ 327 "i387/fenv.c", 328 "x86/ceil.S", 329 "x86/ceilf.S", 330 "x86/floor.S", 331 "x86/floorf.S", 332 "x86/rint.S", 333 "x86/rintf.S", 334 "x86/sqrt.S", 335 "x86/sqrtf.S", 336 "x86/trunc.S", 337 "x86/truncf.S", 338 "x86/e_acos.S", 339 "x86/e_asin.S", 340 "x86/e_atan2.S", 341 "x86/e_cosh.S", 342 "x86/e_hypot.S", 343 "x86/e_log10.S", 344 "x86/e_sinh.S", 345 "x86/libm_reduce_pi04l.S", 346 "x86/libm_sincos_huge.S", 347 "x86/libm_tancot_huge.S", 348 "x86/lrint.S", 349 "x86/lrintf.S", 350 "x86/s_atan.S", 351 "x86/s_cbrt.S", 352 "x86/s_cos.S", 353 "x86/s_expm1.S", 354 "x86/s_log1p.S", 355 "x86/s_sin.S", 356 "x86/s_tanh.S", 357 "x86/s_tan.S", 358 ], 359 exclude_srcs: [ 360 "upstream-freebsd/lib/msun/src/e_acos.c", 361 "upstream-freebsd/lib/msun/src/e_asin.c", 362 "upstream-freebsd/lib/msun/src/e_atan2.c", 363 "upstream-freebsd/lib/msun/src/e_cosh.c", 364 "upstream-freebsd/lib/msun/src/e_hypot.c", 365 "upstream-freebsd/lib/msun/src/e_log10.c", 366 "upstream-freebsd/lib/msun/src/e_sinh.c", 367 "upstream-freebsd/lib/msun/src/e_sqrt.c", 368 "upstream-freebsd/lib/msun/src/e_sqrtf.c", 369 "upstream-freebsd/lib/msun/src/s_atan.c", 370 "upstream-freebsd/lib/msun/src/s_cbrt.c", 371 "upstream-freebsd/lib/msun/src/s_ceil.c", 372 "upstream-freebsd/lib/msun/src/s_ceilf.c", 373 "upstream-freebsd/lib/msun/src/s_cos.c", 374 "upstream-freebsd/lib/msun/src/s_expm1.c", 375 "upstream-freebsd/lib/msun/src/s_floor.c", 376 "upstream-freebsd/lib/msun/src/s_floorf.c", 377 "upstream-freebsd/lib/msun/src/s_log1p.c", 378 "upstream-freebsd/lib/msun/src/s_lrint.c", 379 "upstream-freebsd/lib/msun/src/s_lrintf.c", 380 "upstream-freebsd/lib/msun/src/s_rint.c", 381 "upstream-freebsd/lib/msun/src/s_rintf.c", 382 "upstream-freebsd/lib/msun/src/s_sin.c", 383 "upstream-freebsd/lib/msun/src/s_tan.c", 384 "upstream-freebsd/lib/msun/src/s_tanh.c", 385 "upstream-freebsd/lib/msun/src/s_trunc.c", 386 "upstream-freebsd/lib/msun/src/s_truncf.c", 387 ], 388 local_include_dirs: ["i387"], 389 pack_relocations: false, 390 ldflags: ["-Wl,--hash-style=both"], 391 version_script: ":libm.x86.map", 392 }, 393 394 x86_64: { 395 srcs: [ 396 "amd64/fenv.c", 397 "x86_64/ceil.S", 398 "x86_64/ceilf.S", 399 "x86_64/floor.S", 400 "x86_64/floorf.S", 401 "x86_64/rint.S", 402 "x86_64/rintf.S", 403 "x86_64/sqrt.S", 404 "x86_64/sqrtf.S", 405 "x86_64/trunc.S", 406 "x86_64/truncf.S", 407 "x86_64/e_acos.S", 408 "x86_64/e_asin.S", 409 "x86_64/e_atan2.S", 410 "x86_64/e_cosh.S", 411 "x86_64/e_hypot.S", 412 "x86_64/e_log10.S", 413 "x86_64/e_sinh.S", 414 "x86_64/lrint.S", 415 "x86_64/lrintf.S", 416 "x86_64/s_atan.S", 417 "x86_64/s_cbrt.S", 418 "x86_64/s_cos.S", 419 "x86_64/s_expm1.S", 420 "x86_64/s_log1p.S", 421 "x86_64/s_sin.S", 422 "x86_64/s_tanh.S", 423 "x86_64/s_tan.S", 424 ], 425 exclude_srcs: [ 426 "upstream-freebsd/lib/msun/src/e_acos.c", 427 "upstream-freebsd/lib/msun/src/e_asin.c", 428 "upstream-freebsd/lib/msun/src/e_atan2.c", 429 "upstream-freebsd/lib/msun/src/e_cosh.c", 430 "upstream-freebsd/lib/msun/src/e_hypot.c", 431 "upstream-freebsd/lib/msun/src/e_log10.c", 432 "upstream-freebsd/lib/msun/src/e_sinh.c", 433 "upstream-freebsd/lib/msun/src/e_sqrt.c", 434 "upstream-freebsd/lib/msun/src/e_sqrtf.c", 435 "upstream-freebsd/lib/msun/src/s_atan.c", 436 "upstream-freebsd/lib/msun/src/s_cbrt.c", 437 "upstream-freebsd/lib/msun/src/s_ceil.c", 438 "upstream-freebsd/lib/msun/src/s_ceilf.c", 439 "upstream-freebsd/lib/msun/src/s_cos.c", 440 "upstream-freebsd/lib/msun/src/s_expm1.c", 441 "upstream-freebsd/lib/msun/src/s_floor.c", 442 "upstream-freebsd/lib/msun/src/s_floorf.c", 443 "upstream-freebsd/lib/msun/src/s_log1p.c", 444 "upstream-freebsd/lib/msun/src/s_llrint.c", 445 "upstream-freebsd/lib/msun/src/s_llrintf.c", 446 "upstream-freebsd/lib/msun/src/s_lrint.c", 447 "upstream-freebsd/lib/msun/src/s_lrintf.c", 448 "upstream-freebsd/lib/msun/src/s_rint.c", 449 "upstream-freebsd/lib/msun/src/s_rintf.c", 450 "upstream-freebsd/lib/msun/src/s_sin.c", 451 "upstream-freebsd/lib/msun/src/s_tan.c", 452 "upstream-freebsd/lib/msun/src/s_tanh.c", 453 "upstream-freebsd/lib/msun/src/s_trunc.c", 454 "upstream-freebsd/lib/msun/src/s_truncf.c", 455 ], 456 version_script: ":libm.x86_64.map", 457 }, 458 }, 459 460 local_include_dirs: [ 461 "upstream-freebsd/android/include/", 462 "upstream-freebsd/lib/msun/src/", 463 ], 464 465 cflags: [ 466 "-D__BIONIC_LP32_USE_LONG_DOUBLE", 467 "-D_BSD_SOURCE", 468 "-DFLT_EVAL_METHOD=0", 469 "-include freebsd-compat.h", 470 "-fno-math-errno", 471 "-Wall", 472 "-Werror", 473 "-Wno-missing-braces", 474 "-Wno-parentheses", 475 "-Wno-sign-compare", 476 "-Wno-unknown-pragmas", 477 "-Wno-unused-const-variable", 478 "-Wno-unused-variable", 479 ], 480 481 ldflags: [ 482 "-Wl,--Bsymbolic-functions", 483 ], 484 485 // b/120614316, non-critical readibility check 486 tidy_checks: ["-cert-dcl16-c"], 487 488 include_dirs: ["bionic/libc"], 489 system_shared_libs: ["libc"], 490 491 native_coverage: bionic_coverage, 492 sanitize: { 493 address: false, 494 fuzzer: false, 495 integer_overflow: false, 496 }, 497 stl: "none", 498 native_bridge_supported: true, 499 500 stubs: { 501 symbol_file: "libm.map.txt", 502 versions: [ 503 "29", 504 "10000", 505 ], 506 }, 507 508 apex_available: [ 509 "//apex_available:platform", 510 "com.android.runtime", 511 ], 512} 513 514ndk_library { 515 name: "libm", 516 native_bridge_supported: true, 517 symbol_file: "libm.map.txt", 518 first_version: "9", 519} 520 521llndk_library { 522 name: "libm", 523 native_bridge_supported: true, 524 symbol_file: "libm.map.txt", 525} 526 527genrule { 528 name: "libm.arm.map", 529 out: ["libm.arm.map"], 530 srcs: ["libm.map.txt"], 531 tool_files: [":bionic-generate-version-script"], 532 cmd: "$(location :bionic-generate-version-script) arm $(in) $(out)", 533} 534 535genrule { 536 name: "libm.arm64.map", 537 out: ["libm.arm64.map"], 538 srcs: ["libm.map.txt"], 539 tool_files: [":bionic-generate-version-script"], 540 cmd: "$(location :bionic-generate-version-script) arm64 $(in) $(out)", 541} 542 543genrule { 544 name: "libm.x86.map", 545 out: ["libm.x86.map"], 546 srcs: ["libm.map.txt"], 547 tool_files: [":bionic-generate-version-script"], 548 cmd: "$(location :bionic-generate-version-script) x86 $(in) $(out)", 549} 550 551genrule { 552 name: "libm.x86_64.map", 553 out: ["libm.x86_64.map"], 554 srcs: ["libm.map.txt"], 555 tool_files: [":bionic-generate-version-script"], 556 cmd: "$(location :bionic-generate-version-script) x86_64 $(in) $(out)", 557} 558