2015-09-17 01:33:27 +02:00
|
|
|
//
|
|
|
|
// libm.so and libm.a for target.
|
|
|
|
//
|
2021-02-19 22:06:22 +01:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["bionic_libm_license"],
|
|
|
|
}
|
|
|
|
|
|
|
|
license {
|
|
|
|
name: "bionic_libm_license",
|
|
|
|
visibility: [":__subpackages__"],
|
|
|
|
license_kinds: [
|
|
|
|
"SPDX-license-identifier-Apache-2.0",
|
|
|
|
"SPDX-license-identifier-BSD",
|
|
|
|
"SPDX-license-identifier-MIT",
|
|
|
|
"legacy_unencumbered",
|
|
|
|
],
|
|
|
|
license_text: [
|
|
|
|
"NOTICE",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2015-09-17 01:33:27 +02:00
|
|
|
cc_library {
|
|
|
|
name: "libm",
|
2016-11-29 02:02:25 +01:00
|
|
|
defaults: ["linux_bionic_supported"],
|
2020-01-22 01:43:56 +01:00
|
|
|
ramdisk_available: true,
|
2020-10-22 03:36:36 +02:00
|
|
|
vendor_ramdisk_available: true,
|
2018-04-27 14:53:11 +02:00
|
|
|
recovery_available: true,
|
2017-10-27 20:21:20 +02:00
|
|
|
static_ndk_lib: true,
|
2015-09-17 01:33:27 +02:00
|
|
|
|
2020-01-07 22:48:44 +01:00
|
|
|
whole_static_libs: ["libarm-optimized-routines-math"],
|
2018-08-01 22:27:00 +02:00
|
|
|
|
2023-01-03 23:54:34 +01:00
|
|
|
tidy_disabled_srcs: ["upstream-*/**/*.c"],
|
2016-05-04 02:09:38 +02:00
|
|
|
srcs: [
|
|
|
|
"upstream-freebsd/lib/msun/bsdsrc/b_tgamma.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/catrig.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/catrigf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_acos.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_acosf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_acosh.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_acoshf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_asin.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_asinf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_atan2.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_atan2f.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_atanh.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_atanhf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_cosh.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_coshf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_fmod.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_fmodf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_gamma.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_gammaf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_gammaf_r.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_gamma_r.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_hypot.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_hypotf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_j0.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_j0f.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_j1.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_j1f.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_jn.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_jnf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_lgamma.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_lgammaf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_lgammaf_r.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_lgamma_r.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_log10.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_log10f.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_remainder.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_remainderf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_rem_pio2.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_rem_pio2f.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_scalb.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_scalbf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_sinh.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_sinhf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/k_cos.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/k_cosf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/k_exp.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/k_expf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/k_rem_pio2.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/k_sin.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/k_sinf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/k_tan.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/k_tanf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_asinh.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_asinhf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_atan.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_atanf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_carg.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cargf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cargl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cbrt.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cbrtf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_ccosh.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_ccoshf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cexp.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cexpf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cimag.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cimagf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cimagl.c",
|
2018-07-24 02:01:52 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_clog.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_clogf.c",
|
2016-05-04 02:09:38 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_conj.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_conjf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_conjl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cos.c",
|
2022-01-13 02:51:20 +01:00
|
|
|
"upstream-freebsd/lib/msun/src/s_cospi.c",
|
2018-07-24 02:01:52 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_cpow.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cpowf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cpowl.c",
|
2016-05-04 02:09:38 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_cproj.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cprojf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cprojl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_creal.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_crealf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_creall.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_csinh.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_csinhf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_csqrt.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_csqrtf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_ctanh.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_ctanhf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_erf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_erff.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_expm1.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_expm1f.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fdim.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_finite.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_finitef.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fma.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fmaf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fmax.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fmaxf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fmin.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fminf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_frexp.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_frexpf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_ilogb.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_ilogbf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_llrint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_llrintf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_llround.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_llroundf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_log1p.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_log1pf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_logb.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_logbf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_lrint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_lrintf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_lround.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_lroundf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_modf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_modff.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_nan.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_nearbyint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_nextafter.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_nextafterf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_remquo.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_remquof.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_rint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_rintf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_round.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_roundf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_scalbln.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_scalbn.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_scalbnf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_signgam.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_significand.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_significandf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_sin.c",
|
2022-01-13 02:51:20 +01:00
|
|
|
"upstream-freebsd/lib/msun/src/s_sinpi.c",
|
2018-05-09 00:07:43 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_sincos.c",
|
2016-05-04 02:09:38 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_tan.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_tanf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_tanh.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_tanhf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_tgammaf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_trunc.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_truncf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/w_cabs.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/w_cabsf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/w_cabsl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/w_drem.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/w_dremf.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
|
2016-05-04 02:09:38 +02:00
|
|
|
// The FreeBSD complex functions appear to be better, but they're incomplete.
|
|
|
|
// We take the FreeBSD implementations when they exist, but fill out the rest
|
|
|
|
// of <complex.h> from NetBSD...
|
|
|
|
"upstream-netbsd/lib/libm/complex/ccoshl.c",
|
|
|
|
"upstream-netbsd/lib/libm/complex/ccosl.c",
|
|
|
|
"upstream-netbsd/lib/libm/complex/cephes_subrl.c",
|
|
|
|
"upstream-netbsd/lib/libm/complex/cexpl.c",
|
|
|
|
"upstream-netbsd/lib/libm/complex/csinhl.c",
|
|
|
|
"upstream-netbsd/lib/libm/complex/csinl.c",
|
|
|
|
"upstream-netbsd/lib/libm/complex/ctanhl.c",
|
|
|
|
"upstream-netbsd/lib/libm/complex/ctanl.c",
|
|
|
|
|
|
|
|
// TODO: this comes from from upstream's libc, not libm, but it's an
|
|
|
|
// implementation detail that should have hidden visibility, so it needs
|
|
|
|
// to be in whatever library the math code is in.
|
|
|
|
"digittoint.c",
|
|
|
|
|
|
|
|
// Functionality not in the BSDs.
|
|
|
|
"significandl.c",
|
2017-07-14 02:30:06 +02:00
|
|
|
"fake_long_double.c",
|
2016-05-04 02:09:38 +02:00
|
|
|
|
|
|
|
// Home-grown stuff.
|
2017-11-09 23:40:11 +01:00
|
|
|
"builtins.cpp",
|
2017-10-19 22:56:28 +02:00
|
|
|
"signbit.cpp",
|
2016-05-04 02:09:38 +02:00
|
|
|
],
|
2015-09-17 01:33:27 +02:00
|
|
|
|
|
|
|
multilib: {
|
|
|
|
lib64: {
|
2016-05-04 02:09:38 +02:00
|
|
|
srcs: [
|
2018-05-08 23:36:59 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/catrigl.c",
|
2016-05-04 02:09:38 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/e_acosl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_acoshl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_asinl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_atan2l.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_atanhl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_fmodl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_hypotl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_lgammal.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_remainderl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/e_sqrtl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_asinhl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_atanl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cbrtl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_ceill.c",
|
2018-07-24 02:01:52 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_clogl.c",
|
2016-05-04 02:09:38 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/e_coshl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_cosl.c",
|
2018-05-08 22:35:33 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_csqrtl.c",
|
2016-05-04 02:09:38 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_floorl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fmal.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fmaxl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fminl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_modfl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_frexpl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_ilogbl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_llrintl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_llroundl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_logbl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_lrintl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_lroundl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_nextafterl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_nexttoward.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_nexttowardf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_remquol.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_rintl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_roundl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_scalbnl.c",
|
2018-05-09 00:07:43 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_sincosl.c",
|
2016-05-04 02:09:38 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/e_sinhl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_sinl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_tanhl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_tanl.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_truncl.c",
|
|
|
|
|
|
|
|
"upstream-freebsd/lib/msun/ld128/invtrig.c",
|
|
|
|
"upstream-freebsd/lib/msun/ld128/e_lgammal_r.c",
|
2018-07-24 02:01:52 +02:00
|
|
|
"upstream-freebsd/lib/msun/ld128/e_powl.c",
|
2016-05-04 02:09:38 +02:00
|
|
|
"upstream-freebsd/lib/msun/ld128/k_cosl.c",
|
|
|
|
"upstream-freebsd/lib/msun/ld128/k_sinl.c",
|
|
|
|
"upstream-freebsd/lib/msun/ld128/k_tanl.c",
|
|
|
|
"upstream-freebsd/lib/msun/ld128/s_erfl.c",
|
|
|
|
"upstream-freebsd/lib/msun/ld128/s_exp2l.c",
|
|
|
|
"upstream-freebsd/lib/msun/ld128/s_expl.c",
|
|
|
|
"upstream-freebsd/lib/msun/ld128/s_logl.c",
|
|
|
|
"upstream-freebsd/lib/msun/ld128/s_nanl.c",
|
|
|
|
],
|
|
|
|
local_include_dirs: ["upstream-freebsd/lib/msun/ld128/"],
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
srcs: [
|
|
|
|
"arm/fenv.c",
|
2023-03-22 22:11:35 +01:00
|
|
|
"upstream-freebsd/lib/msun/src/s_ceil.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_ceilf.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
],
|
|
|
|
instruction_set: "arm",
|
2018-05-24 03:45:53 +02:00
|
|
|
pack_relocations: false,
|
2018-01-19 01:26:19 +01:00
|
|
|
ldflags: ["-Wl,--hash-style=both"],
|
2018-09-07 01:04:08 +02:00
|
|
|
version_script: ":libm.arm.map",
|
2021-01-28 02:27:31 +01:00
|
|
|
no_libcrt: true,
|
|
|
|
shared: {
|
|
|
|
// For backwards-compatibility, some arm32 builtins are exported from libm.so.
|
2022-02-10 20:37:28 +01:00
|
|
|
static_libs: ["libclang_rt.builtins-exported"],
|
2021-01-28 02:27:31 +01:00
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
arm64: {
|
|
|
|
srcs: [
|
2015-12-03 07:16:48 +01:00
|
|
|
"arm64/fenv.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
],
|
|
|
|
exclude_srcs: [
|
2017-11-09 23:40:11 +01:00
|
|
|
"upstream-freebsd/lib/msun/src/s_fma.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fmaf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fmax.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fmaxf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fmin.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fminf.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_llrint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_llrintf.c",
|
2022-10-28 02:00:00 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_llround.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_llroundf.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_lrint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_lrintf.c",
|
2022-10-28 02:00:00 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_lround.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_lroundf.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_rint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_rintf.c",
|
2017-11-09 23:40:11 +01:00
|
|
|
"upstream-freebsd/lib/msun/src/s_round.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_roundf.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_trunc.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_truncf.c",
|
|
|
|
],
|
2018-09-07 01:04:08 +02:00
|
|
|
version_script: ":libm.arm64.map",
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
|
2022-10-14 23:31:39 +02:00
|
|
|
riscv64: {
|
|
|
|
srcs: [
|
|
|
|
"riscv64/fenv.c",
|
2022-10-24 22:31:09 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
exclude_srcs: [
|
2022-12-09 21:54:38 +01:00
|
|
|
"upstream-freebsd/lib/msun/src/s_fma.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fmaf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fmax.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fmaxf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fmin.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_fminf.c",
|
2022-10-26 00:27:10 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_llrint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_llrintf.c",
|
2022-12-09 21:54:38 +01:00
|
|
|
"upstream-freebsd/lib/msun/src/s_llround.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_llroundf.c",
|
2022-10-26 00:27:10 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_lrint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_lrintf.c",
|
2022-12-09 21:54:38 +01:00
|
|
|
"upstream-freebsd/lib/msun/src/s_lround.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_lroundf.c",
|
2023-03-22 22:11:35 +01:00
|
|
|
"upstream-freebsd/lib/msun/src/s_rint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_rintf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_round.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_roundf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_trunc.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_truncf.c",
|
2022-10-14 23:31:39 +02:00
|
|
|
],
|
|
|
|
version_script: ":libm.riscv64.map",
|
|
|
|
},
|
|
|
|
|
2015-09-17 01:33:27 +02:00
|
|
|
x86: {
|
2015-12-03 07:16:48 +01:00
|
|
|
srcs: [
|
|
|
|
"i387/fenv.c",
|
2022-11-18 21:15:40 +01:00
|
|
|
"x86/lrint.S",
|
|
|
|
"x86/lrintf.S",
|
2015-12-03 07:16:48 +01:00
|
|
|
],
|
|
|
|
exclude_srcs: [
|
2016-03-11 22:01:20 +01:00
|
|
|
"upstream-freebsd/lib/msun/src/s_lrint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_lrintf.c",
|
2019-07-15 19:17:16 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_rint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_rintf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_trunc.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_truncf.c",
|
2015-12-03 07:16:48 +01:00
|
|
|
],
|
2015-09-17 01:33:27 +02:00
|
|
|
local_include_dirs: ["i387"],
|
2018-05-24 03:45:53 +02:00
|
|
|
pack_relocations: false,
|
2023-02-10 17:42:50 +01:00
|
|
|
// The x86 ABI doesn't include this, which is needed for the
|
|
|
|
// roundss/roundsd instructions that we've used since Android M.
|
|
|
|
cflags: ["-msse4.1"],
|
2018-01-19 01:26:19 +01:00
|
|
|
ldflags: ["-Wl,--hash-style=both"],
|
2018-09-07 01:04:08 +02:00
|
|
|
version_script: ":libm.x86.map",
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
x86_64: {
|
2015-12-03 07:16:48 +01:00
|
|
|
srcs: [
|
|
|
|
"amd64/fenv.c",
|
2022-11-18 21:15:40 +01:00
|
|
|
"x86_64/lrint.S",
|
|
|
|
"x86_64/lrintf.S",
|
2015-12-03 07:16:48 +01:00
|
|
|
],
|
|
|
|
exclude_srcs: [
|
2016-03-11 22:01:20 +01:00
|
|
|
"upstream-freebsd/lib/msun/src/s_llrint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_llrintf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_lrint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_lrintf.c",
|
2019-07-15 19:17:16 +02:00
|
|
|
"upstream-freebsd/lib/msun/src/s_rint.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_rintf.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_trunc.c",
|
|
|
|
"upstream-freebsd/lib/msun/src/s_truncf.c",
|
2015-12-03 07:16:48 +01:00
|
|
|
],
|
2018-09-07 01:04:08 +02:00
|
|
|
version_script: ":libm.x86_64.map",
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2016-05-04 02:09:38 +02:00
|
|
|
local_include_dirs: [
|
|
|
|
"upstream-freebsd/android/include/",
|
|
|
|
"upstream-freebsd/lib/msun/src/",
|
|
|
|
],
|
|
|
|
|
|
|
|
cflags: [
|
2016-06-13 22:23:42 +02:00
|
|
|
"-D_BSD_SOURCE",
|
2016-05-04 02:09:38 +02:00
|
|
|
"-DFLT_EVAL_METHOD=0",
|
|
|
|
"-include freebsd-compat.h",
|
2021-08-20 05:15:12 +02:00
|
|
|
"-include fenv-access.h",
|
2021-12-02 23:42:16 +01:00
|
|
|
"-fno-builtin",
|
2018-08-17 22:51:35 +02:00
|
|
|
"-fno-math-errno",
|
2018-03-15 21:52:22 +01:00
|
|
|
"-Wall",
|
2016-05-04 02:09:38 +02:00
|
|
|
"-Werror",
|
2021-01-26 23:02:23 +01:00
|
|
|
"-Wno-ignored-pragmas",
|
2016-05-04 02:09:38 +02:00
|
|
|
"-Wno-missing-braces",
|
|
|
|
"-Wno-parentheses",
|
|
|
|
"-Wno-sign-compare",
|
2021-10-10 02:57:45 +02:00
|
|
|
"-Wno-static-in-inline",
|
2016-05-04 02:09:38 +02:00
|
|
|
"-Wno-unknown-pragmas",
|
2018-03-15 21:52:22 +01:00
|
|
|
"-Wno-unused-const-variable",
|
|
|
|
"-Wno-unused-variable",
|
2016-05-04 02:09:38 +02:00
|
|
|
],
|
|
|
|
|
2018-08-21 16:49:25 +02:00
|
|
|
ldflags: [
|
|
|
|
"-Wl,--Bsymbolic-functions",
|
|
|
|
],
|
|
|
|
|
2018-12-13 20:49:34 +01:00
|
|
|
// b/120614316, non-critical readibility check
|
|
|
|
tidy_checks: ["-cert-dcl16-c"],
|
|
|
|
|
2016-05-04 02:09:38 +02:00
|
|
|
include_dirs: ["bionic/libc"],
|
2021-07-14 01:26:28 +02:00
|
|
|
target: {
|
|
|
|
bionic: {
|
|
|
|
system_shared_libs: ["libc"],
|
|
|
|
},
|
|
|
|
},
|
2016-05-04 02:09:38 +02:00
|
|
|
|
|
|
|
sanitize: {
|
2016-11-23 02:36:25 +01:00
|
|
|
address: false,
|
2019-05-01 23:26:13 +02:00
|
|
|
fuzzer: false,
|
2017-07-06 22:54:56 +02:00
|
|
|
integer_overflow: false,
|
2016-05-04 02:09:38 +02:00
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
stl: "none",
|
2019-05-03 15:57:34 +02:00
|
|
|
native_bridge_supported: true,
|
2018-11-27 16:56:17 +01:00
|
|
|
|
2018-12-13 10:26:48 +01:00
|
|
|
stubs: {
|
|
|
|
symbol_file: "libm.map.txt",
|
2020-02-27 10:33:25 +01:00
|
|
|
versions: [
|
|
|
|
"29",
|
2020-07-27 22:28:56 +02:00
|
|
|
"current",
|
2020-02-27 10:33:25 +01:00
|
|
|
],
|
2018-12-13 10:26:48 +01:00
|
|
|
},
|
2019-10-02 10:09:33 +02:00
|
|
|
|
2021-03-02 19:23:04 +01:00
|
|
|
llndk: {
|
|
|
|
symbol_file: "libm.map.txt",
|
|
|
|
},
|
|
|
|
|
2019-10-02 10:09:33 +02:00
|
|
|
apex_available: [
|
|
|
|
"//apex_available:platform",
|
|
|
|
"com.android.runtime",
|
|
|
|
],
|
2020-09-21 18:56:13 +02:00
|
|
|
|
|
|
|
lto: {
|
|
|
|
never: true,
|
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
}
|
2016-06-28 20:18:05 +02:00
|
|
|
|
|
|
|
ndk_library {
|
2017-04-07 23:09:18 +02:00
|
|
|
name: "libm",
|
2016-06-28 20:18:05 +02:00
|
|
|
symbol_file: "libm.map.txt",
|
|
|
|
first_version: "9",
|
|
|
|
}
|
2017-03-20 22:07:47 +01:00
|
|
|
|
2018-09-07 01:04:08 +02:00
|
|
|
genrule {
|
|
|
|
name: "libm.arm.map",
|
2023-04-12 00:20:19 +02:00
|
|
|
out: ["libm.arm.map.txt"],
|
2018-09-07 01:04:08 +02:00
|
|
|
srcs: ["libm.map.txt"],
|
2022-07-01 01:35:11 +02:00
|
|
|
tools: ["generate-version-script"],
|
|
|
|
cmd: "$(location generate-version-script) arm $(in) $(out)",
|
2018-09-07 01:04:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
genrule {
|
|
|
|
name: "libm.arm64.map",
|
2023-04-12 00:20:19 +02:00
|
|
|
out: ["libm.arm64.map.txt"],
|
2018-09-07 01:04:08 +02:00
|
|
|
srcs: ["libm.map.txt"],
|
2022-07-01 01:35:11 +02:00
|
|
|
tools: ["generate-version-script"],
|
|
|
|
cmd: "$(location generate-version-script) arm64 $(in) $(out)",
|
2018-09-07 01:04:08 +02:00
|
|
|
}
|
|
|
|
|
2022-10-14 23:31:39 +02:00
|
|
|
genrule {
|
|
|
|
name: "libm.riscv64.map",
|
2023-04-12 00:20:19 +02:00
|
|
|
out: ["libm.riscv64.map.txt"],
|
2022-10-14 23:31:39 +02:00
|
|
|
srcs: ["libm.map.txt"],
|
|
|
|
tools: ["generate-version-script"],
|
|
|
|
cmd: "$(location generate-version-script) riscv64 $(in) $(out)",
|
|
|
|
}
|
|
|
|
|
2018-09-07 01:04:08 +02:00
|
|
|
genrule {
|
|
|
|
name: "libm.x86.map",
|
2023-04-12 00:20:19 +02:00
|
|
|
out: ["libm.x86.map.txt"],
|
2018-09-07 01:04:08 +02:00
|
|
|
srcs: ["libm.map.txt"],
|
2022-07-01 01:35:11 +02:00
|
|
|
tools: ["generate-version-script"],
|
|
|
|
cmd: "$(location generate-version-script) x86 $(in) $(out)",
|
2018-09-07 01:04:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
genrule {
|
|
|
|
name: "libm.x86_64.map",
|
2023-04-12 00:20:19 +02:00
|
|
|
out: ["libm.x86_64.map.txt"],
|
2018-09-07 01:04:08 +02:00
|
|
|
srcs: ["libm.map.txt"],
|
2022-07-01 01:35:11 +02:00
|
|
|
tools: ["generate-version-script"],
|
|
|
|
cmd: "$(location generate-version-script) x86_64 $(in) $(out)",
|
2018-09-07 01:04:08 +02:00
|
|
|
}
|
2023-07-20 22:24:09 +02:00
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "libc_ldexp_srcs",
|
|
|
|
srcs: ["upstream-freebsd/lib/msun/src/s_scalbn.c"],
|
|
|
|
}
|