2012-10-20 20:48:43 +02:00
|
|
|
ifneq ($(TARGET_USE_PRIVATE_LIBM),true)
|
2014-07-11 03:24:15 +02:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
2008-10-21 16:00:00 +02:00
|
|
|
|
2014-10-01 01:56:43 +02:00
|
|
|
bionic_coverage := false
|
|
|
|
|
2015-06-23 23:18:14 +02:00
|
|
|
# Clang/llvm has incompatible long double (fp128) for x86_64.
|
|
|
|
# https://llvm.org/bugs/show_bug.cgi?id=23897
|
|
|
|
ifeq ($(TARGET_ARCH),x86_64)
|
|
|
|
libm_clang := false
|
|
|
|
endif
|
|
|
|
|
2015-01-23 02:16:33 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# libm.a
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE := libm
|
Upgrade libm.
This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies
the set of functions we support on ARM, MIPS, and x86, fixes "long double",
adds ISO C99 support, and adds basic unit tests.
It turns out that our "long double" functions have always been broken
for non-normal numbers. This patch fixes that by not using the upstream
implementations and just forwarding to the regular "double" implementation
instead (since "long double" on Android is just "double" anyway, which is
what BSD doesn't support).
All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64.
Bug: 3169850
Bug: 8012787
Bug: https://code.google.com/p/android/issues/detail?id=6697
Change-Id: If0c343030959c24bfc50d4d21c9530052c581837
2013-01-31 04:06:37 +01:00
|
|
|
|
2015-01-23 02:16:33 +01:00
|
|
|
LOCAL_SRC_FILES := \
|
Upgrade libm.
This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies
the set of functions we support on ARM, MIPS, and x86, fixes "long double",
adds ISO C99 support, and adds basic unit tests.
It turns out that our "long double" functions have always been broken
for non-normal numbers. This patch fixes that by not using the upstream
implementations and just forwarding to the regular "double" implementation
instead (since "long double" on Android is just "double" anyway, which is
what BSD doesn't support).
All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64.
Bug: 3169850
Bug: 8012787
Bug: https://code.google.com/p/android/issues/detail?id=6697
Change-Id: If0c343030959c24bfc50d4d21c9530052c581837
2013-01-31 04:06:37 +01:00
|
|
|
upstream-freebsd/lib/msun/bsdsrc/b_exp.c \
|
|
|
|
upstream-freebsd/lib/msun/bsdsrc/b_log.c \
|
|
|
|
upstream-freebsd/lib/msun/bsdsrc/b_tgamma.c \
|
2014-11-06 20:16:55 +01:00
|
|
|
upstream-freebsd/lib/msun/src/catrig.c \
|
|
|
|
upstream-freebsd/lib/msun/src/catrigf.c \
|
Upgrade libm.
This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies
the set of functions we support on ARM, MIPS, and x86, fixes "long double",
adds ISO C99 support, and adds basic unit tests.
It turns out that our "long double" functions have always been broken
for non-normal numbers. This patch fixes that by not using the upstream
implementations and just forwarding to the regular "double" implementation
instead (since "long double" on Android is just "double" anyway, which is
what BSD doesn't support).
All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64.
Bug: 3169850
Bug: 8012787
Bug: https://code.google.com/p/android/issues/detail?id=6697
Change-Id: If0c343030959c24bfc50d4d21c9530052c581837
2013-01-31 04:06:37 +01:00
|
|
|
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_asinf.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_coshf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_expf.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_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_log10f.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_log2.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_log2f.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_logf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_powf.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_sinhf.c \
|
2014-04-17 19:17:32 +02:00
|
|
|
upstream-freebsd/lib/msun/src/imprecise.c \
|
Upgrade libm.
This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies
the set of functions we support on ARM, MIPS, and x86, fixes "long double",
adds ISO C99 support, and adds basic unit tests.
It turns out that our "long double" functions have always been broken
for non-normal numbers. This patch fixes that by not using the upstream
implementations and just forwarding to the regular "double" implementation
instead (since "long double" on Android is just "double" anyway, which is
what BSD doesn't support).
All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64.
Bug: 3169850
Bug: 8012787
Bug: https://code.google.com/p/android/issues/detail?id=6697
Change-Id: If0c343030959c24bfc50d4d21c9530052c581837
2013-01-31 04:06:37 +01:00
|
|
|
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_atanf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_carg.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_cargf.c \
|
2014-11-06 20:16:55 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_cargl.c \
|
Upgrade libm.
This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies
the set of functions we support on ARM, MIPS, and x86, fixes "long double",
adds ISO C99 support, and adds basic unit tests.
It turns out that our "long double" functions have always been broken
for non-normal numbers. This patch fixes that by not using the upstream
implementations and just forwarding to the regular "double" implementation
instead (since "long double" on Android is just "double" anyway, which is
what BSD doesn't support).
All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64.
Bug: 3169850
Bug: 8012787
Bug: https://code.google.com/p/android/issues/detail?id=6697
Change-Id: If0c343030959c24bfc50d4d21c9530052c581837
2013-01-31 04:06:37 +01:00
|
|
|
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 \
|
2014-11-06 20:16:55 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_cimagl.c \
|
Upgrade libm.
This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies
the set of functions we support on ARM, MIPS, and x86, fixes "long double",
adds ISO C99 support, and adds basic unit tests.
It turns out that our "long double" functions have always been broken
for non-normal numbers. This patch fixes that by not using the upstream
implementations and just forwarding to the regular "double" implementation
instead (since "long double" on Android is just "double" anyway, which is
what BSD doesn't support).
All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64.
Bug: 3169850
Bug: 8012787
Bug: https://code.google.com/p/android/issues/detail?id=6697
Change-Id: If0c343030959c24bfc50d4d21c9530052c581837
2013-01-31 04:06:37 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_conj.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_conjf.c \
|
2014-11-06 20:16:55 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_conjl.c \
|
Upgrade libm.
This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies
the set of functions we support on ARM, MIPS, and x86, fixes "long double",
adds ISO C99 support, and adds basic unit tests.
It turns out that our "long double" functions have always been broken
for non-normal numbers. This patch fixes that by not using the upstream
implementations and just forwarding to the regular "double" implementation
instead (since "long double" on Android is just "double" anyway, which is
what BSD doesn't support).
All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64.
Bug: 3169850
Bug: 8012787
Bug: https://code.google.com/p/android/issues/detail?id=6697
Change-Id: If0c343030959c24bfc50d4d21c9530052c581837
2013-01-31 04:06:37 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_copysign.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_copysignf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_cosf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_cproj.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_cprojf.c \
|
2014-11-06 20:16:55 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_cprojl.c \
|
Upgrade libm.
This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies
the set of functions we support on ARM, MIPS, and x86, fixes "long double",
adds ISO C99 support, and adds basic unit tests.
It turns out that our "long double" functions have always been broken
for non-normal numbers. This patch fixes that by not using the upstream
implementations and just forwarding to the regular "double" implementation
instead (since "long double" on Android is just "double" anyway, which is
what BSD doesn't support).
All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64.
Bug: 3169850
Bug: 8012787
Bug: https://code.google.com/p/android/issues/detail?id=6697
Change-Id: If0c343030959c24bfc50d4d21c9530052c581837
2013-01-31 04:06:37 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_creal.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_crealf.c \
|
2014-11-06 20:16:55 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_creall.c \
|
Upgrade libm.
This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies
the set of functions we support on ARM, MIPS, and x86, fixes "long double",
adds ISO C99 support, and adds basic unit tests.
It turns out that our "long double" functions have always been broken
for non-normal numbers. This patch fixes that by not using the upstream
implementations and just forwarding to the regular "double" implementation
instead (since "long double" on Android is just "double" anyway, which is
what BSD doesn't support).
All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64.
Bug: 3169850
Bug: 8012787
Bug: https://code.google.com/p/android/issues/detail?id=6697
Change-Id: If0c343030959c24bfc50d4d21c9530052c581837
2013-01-31 04:06:37 +01:00
|
|
|
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 \
|
2014-11-06 20:16:55 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_csqrtl.c \
|
Upgrade libm.
This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies
the set of functions we support on ARM, MIPS, and x86, fixes "long double",
adds ISO C99 support, and adds basic unit tests.
It turns out that our "long double" functions have always been broken
for non-normal numbers. This patch fixes that by not using the upstream
implementations and just forwarding to the regular "double" implementation
instead (since "long double" on Android is just "double" anyway, which is
what BSD doesn't support).
All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64.
Bug: 3169850
Bug: 8012787
Bug: https://code.google.com/p/android/issues/detail?id=6697
Change-Id: If0c343030959c24bfc50d4d21c9530052c581837
2013-01-31 04:06:37 +01:00
|
|
|
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_exp2.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_exp2f.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_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_llround.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_llroundf.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_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_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_sinf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_tanf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_tanhf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_tgammaf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/w_cabs.c \
|
|
|
|
upstream-freebsd/lib/msun/src/w_cabsf.c \
|
2014-11-06 20:16:55 +01:00
|
|
|
upstream-freebsd/lib/msun/src/w_cabsl.c \
|
Upgrade libm.
This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies
the set of functions we support on ARM, MIPS, and x86, fixes "long double",
adds ISO C99 support, and adds basic unit tests.
It turns out that our "long double" functions have always been broken
for non-normal numbers. This patch fixes that by not using the upstream
implementations and just forwarding to the regular "double" implementation
instead (since "long double" on Android is just "double" anyway, which is
what BSD doesn't support).
All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64.
Bug: 3169850
Bug: 8012787
Bug: https://code.google.com/p/android/issues/detail?id=6697
Change-Id: If0c343030959c24bfc50d4d21c9530052c581837
2013-01-31 04:06:37 +01:00
|
|
|
upstream-freebsd/lib/msun/src/w_drem.c \
|
|
|
|
upstream-freebsd/lib/msun/src/w_dremf.c \
|
|
|
|
|
2015-01-23 02:16:33 +01:00
|
|
|
LOCAL_SRC_FILES_32 += \
|
2013-12-19 20:30:51 +01:00
|
|
|
fake_long_double.c \
|
2014-03-14 18:56:46 +01:00
|
|
|
|
2015-01-23 02:16:33 +01:00
|
|
|
LOCAL_SRC_FILES_64 := \
|
2014-03-14 18:56:46 +01: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 \
|
2014-09-18 20:23:58 +02:00
|
|
|
upstream-freebsd/lib/msun/src/e_lgammal.c \
|
2014-03-14 18:56:46 +01:00
|
|
|
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 \
|
|
|
|
upstream-freebsd/lib/msun/src/s_copysignl.c \
|
2014-09-13 01:09:40 +02:00
|
|
|
upstream-freebsd/lib/msun/src/e_coshl.c \
|
2014-03-14 18:56:46 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_cosl.c \
|
|
|
|
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 \
|
2013-12-19 20:30:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_modfl.c \
|
2014-03-14 18:56:46 +01:00
|
|
|
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 \
|
2014-04-17 19:17:32 +02:00
|
|
|
upstream-freebsd/lib/msun/src/s_nexttowardf.c \
|
2014-03-14 18:56:46 +01:00
|
|
|
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 \
|
2014-09-13 01:09:40 +02:00
|
|
|
upstream-freebsd/lib/msun/src/e_sinhl.c \
|
2014-03-14 18:56:46 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_sinl.c \
|
2014-09-13 01:09:40 +02:00
|
|
|
upstream-freebsd/lib/msun/src/s_tanhl.c \
|
2014-03-14 18:56:46 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_tanl.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_truncl.c \
|
2013-02-11 21:18:16 +01:00
|
|
|
|
2015-01-23 02:16:33 +01:00
|
|
|
LOCAL_SRC_FILES_64 += \
|
2014-03-14 18:56:46 +01:00
|
|
|
upstream-freebsd/lib/msun/ld128/invtrig.c \
|
2014-09-18 20:23:58 +02:00
|
|
|
upstream-freebsd/lib/msun/ld128/e_lgammal_r.c \
|
2014-03-14 18:56:46 +01: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 \
|
2014-09-12 23:00:02 +02:00
|
|
|
upstream-freebsd/lib/msun/ld128/s_erfl.c \
|
2014-03-14 18:56:46 +01:00
|
|
|
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 \
|
2013-02-11 21:18:16 +01:00
|
|
|
|
2015-01-23 02:16:33 +01:00
|
|
|
# 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.
|
|
|
|
LOCAL_SRC_FILES += \
|
|
|
|
digittoint.c \
|
|
|
|
|
|
|
|
# Functionality not in the BSDs.
|
|
|
|
LOCAL_SRC_FILES += \
|
|
|
|
significandl.c \
|
|
|
|
sincos.c \
|
|
|
|
|
|
|
|
# Modified versions of BSD code.
|
|
|
|
LOCAL_SRC_FILES += \
|
|
|
|
signbit.c \
|
|
|
|
|
2015-08-25 00:57:08 +02:00
|
|
|
# Home-grown stuff.
|
|
|
|
LOCAL_SRC_FILES += \
|
|
|
|
fabs.cpp \
|
|
|
|
|
2015-02-18 00:05:51 +01:00
|
|
|
# Arch specific optimizations.
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# arm
|
|
|
|
# -----------------------------------------------------------------------------
|
2015-01-23 02:16:33 +01:00
|
|
|
LOCAL_SRC_FILES_arm += \
|
|
|
|
arm/fenv.c \
|
2014-10-31 11:29:18 +01:00
|
|
|
upstream-freebsd/lib/msun/src/e_acos.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_asin.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_atan2.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_cosh.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_exp.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_hypot.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_log.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_log10.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_pow.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_sinh.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_atan.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_cbrt.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_ceil.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_ceilf.c \
|
2014-10-31 11:29:18 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_cos.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_fma.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_fmaf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_floorf.c \
|
2014-10-31 11:29:18 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_expm1.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_llrint.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_llrintf.c \
|
2014-10-31 11:29:18 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_log1p.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_lrint.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_lrintf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_rint.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_rintf.c \
|
2014-10-31 11:29:18 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_sin.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_tan.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_tanh.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_trunc.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_truncf.c \
|
2015-01-23 02:16:33 +01:00
|
|
|
|
2014-07-23 10:59:22 +02:00
|
|
|
# s_floor.S requires neon instructions.
|
|
|
|
ifdef TARGET_2ND_ARCH
|
|
|
|
arch_variant := $(TARGET_2ND_ARCH_VARIANT)
|
|
|
|
else
|
|
|
|
arch_variant := $(TARGET_ARCH_VARIANT)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Use the C version on armv7-a since it doesn't support neon instructions.
|
|
|
|
ifeq ($(arch_variant),armv7-a)
|
2014-07-23 11:21:55 +02:00
|
|
|
LOCAL_SRC_FILES_arm += \
|
|
|
|
upstream-freebsd/lib/msun/src/e_sqrt.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_sqrtf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_floor.c \
|
|
|
|
|
2014-07-23 10:59:22 +02:00
|
|
|
else
|
2014-07-23 11:21:55 +02:00
|
|
|
LOCAL_SRC_FILES_arm += \
|
2015-08-14 01:00:49 +02:00
|
|
|
arm/sqrt.S \
|
|
|
|
arm/floor.S \
|
2014-07-23 11:21:55 +02:00
|
|
|
|
2014-07-23 10:59:22 +02:00
|
|
|
endif
|
|
|
|
|
2015-02-18 00:05:51 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# arm64
|
|
|
|
# -----------------------------------------------------------------------------
|
2015-01-23 02:16:33 +01:00
|
|
|
LOCAL_SRC_FILES_arm64 += \
|
2015-02-18 00:05:51 +01:00
|
|
|
arm64/ceil.S \
|
2015-01-23 02:16:33 +01:00
|
|
|
arm64/fenv.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
arm64/fma.S \
|
|
|
|
arm64/floor.S \
|
|
|
|
arm64/lrint.S \
|
|
|
|
arm64/rint.S \
|
|
|
|
arm64/sqrt.S \
|
|
|
|
arm64/trunc.S \
|
2014-10-31 11:29:18 +01:00
|
|
|
upstream-freebsd/lib/msun/src/e_acos.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_asin.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_atan2.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_cosh.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_exp.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_hypot.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_log.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_log10.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_pow.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_sinh.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_atan.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_cbrt.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_cos.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_expm1.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_log1p.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_sin.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_tan.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_tanh.c \
|
2015-01-23 02:16:33 +01:00
|
|
|
|
2015-02-18 00:05:51 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# mips
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libm_mips_arch_files := \
|
2015-01-23 02:16:33 +01:00
|
|
|
mips/fenv.c \
|
2014-10-31 11:29:18 +01:00
|
|
|
upstream-freebsd/lib/msun/src/e_acos.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_asin.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_atan2.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_cosh.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_exp.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_hypot.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_log.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_log10.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_pow.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_sinh.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/e_sqrt.c \
|
|
|
|
upstream-freebsd/lib/msun/src/e_sqrtf.c \
|
2014-10-31 11:29:18 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_atan.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_cbrt.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_ceil.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_ceilf.c \
|
2014-10-31 11:29:18 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_cos.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_fma.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_fmaf.c \
|
2014-07-23 10:59:22 +02:00
|
|
|
upstream-freebsd/lib/msun/src/s_floor.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_floorf.c \
|
2014-10-31 11:29:18 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_expm1.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_llrint.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_llrintf.c \
|
2014-10-31 11:29:18 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_log1p.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_lrint.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_lrintf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_rint.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_rintf.c \
|
2014-10-31 11:29:18 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_sin.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_tan.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_tanh.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_trunc.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_truncf.c \
|
2015-01-23 02:16:33 +01:00
|
|
|
|
2015-02-18 00:05:51 +01:00
|
|
|
LOCAL_SRC_FILES_mips += $(libm_mips_arch_files)
|
|
|
|
LOCAL_SRC_FILES_mips64 += $(libm_mips_arch_files)
|
2015-02-11 21:51:42 +01:00
|
|
|
|
2015-02-18 00:05:51 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# x86
|
|
|
|
# -----------------------------------------------------------------------------
|
2015-01-23 02:16:33 +01:00
|
|
|
LOCAL_SRC_FILES_x86 += \
|
|
|
|
i387/fenv.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_fma.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_fmaf.c \
|
|
|
|
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 \
|
|
|
|
upstream-freebsd/lib/msun/src/s_rint.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_rintf.c \
|
2014-11-12 20:05:54 +01:00
|
|
|
x86/sqrt.S \
|
|
|
|
x86/sqrtf.S \
|
2014-10-31 11:29:18 +01:00
|
|
|
x86/e_acos.S \
|
|
|
|
x86/e_asin.S \
|
|
|
|
x86/e_atan2.S \
|
|
|
|
x86/e_cosh.S \
|
|
|
|
x86/e_exp.S \
|
|
|
|
x86/e_hypot.S \
|
|
|
|
x86/e_log10.S \
|
|
|
|
x86/e_log.S \
|
|
|
|
x86/e_pow.S \
|
|
|
|
x86/e_sinh.S \
|
|
|
|
x86/libm_reduce_pi04l.S \
|
|
|
|
x86/libm_sincos_huge.S \
|
|
|
|
x86/libm_tancot_huge.S \
|
|
|
|
x86/s_atan.S \
|
|
|
|
x86/s_cbrt.S \
|
|
|
|
x86/s_cos.S \
|
|
|
|
x86/s_expm1.S \
|
|
|
|
x86/s_log1p.S \
|
|
|
|
x86/s_sin.S \
|
|
|
|
x86/s_tanh.S \
|
|
|
|
x86/s_tan.S \
|
2014-11-12 20:05:54 +01:00
|
|
|
|
|
|
|
ifeq ($(ARCH_X86_HAVE_SSE4_1),true)
|
|
|
|
LOCAL_SRC_FILES_x86 += \
|
|
|
|
x86/ceil.S \
|
|
|
|
x86/ceilf.S \
|
|
|
|
x86/floor.S \
|
|
|
|
x86/floorf.S \
|
|
|
|
x86/trunc.S \
|
|
|
|
x86/truncf.S \
|
|
|
|
|
|
|
|
else
|
|
|
|
LOCAL_SRC_FILES_x86 += \
|
|
|
|
upstream-freebsd/lib/msun/src/s_ceil.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_ceilf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_floor.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_floorf.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_trunc.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_truncf.c \
|
2015-01-23 02:16:33 +01:00
|
|
|
|
2014-11-12 20:05:54 +01:00
|
|
|
endif
|
|
|
|
|
2015-02-18 00:05:51 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# x86_64
|
|
|
|
# -----------------------------------------------------------------------------
|
2015-01-23 02:16:33 +01:00
|
|
|
LOCAL_SRC_FILES_x86_64 += \
|
|
|
|
amd64/fenv.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_fma.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_fmaf.c \
|
|
|
|
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 \
|
|
|
|
upstream-freebsd/lib/msun/src/s_rint.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_rintf.c \
|
2014-11-12 20:05:54 +01:00
|
|
|
x86_64/sqrt.S \
|
|
|
|
x86_64/sqrtf.S \
|
2014-10-31 11:29:18 +01:00
|
|
|
x86_64/e_acos.S \
|
|
|
|
x86_64/e_asin.S \
|
|
|
|
x86_64/e_atan2.S \
|
|
|
|
x86_64/e_cosh.S \
|
|
|
|
x86_64/e_exp.S \
|
|
|
|
x86_64/e_hypot.S \
|
|
|
|
x86_64/e_log10.S \
|
|
|
|
x86_64/e_log.S \
|
|
|
|
x86_64/e_pow.S \
|
|
|
|
x86_64/e_sinh.S \
|
|
|
|
x86_64/s_atan.S \
|
|
|
|
x86_64/s_cbrt.S \
|
|
|
|
x86_64/s_cos.S \
|
|
|
|
x86_64/s_expm1.S \
|
|
|
|
x86_64/s_log1p.S \
|
|
|
|
x86_64/s_sin.S \
|
|
|
|
x86_64/s_tanh.S \
|
|
|
|
x86_64/s_tan.S \
|
2014-11-12 20:05:54 +01:00
|
|
|
|
|
|
|
ifeq ($(ARCH_X86_HAVE_SSE4_1),true)
|
|
|
|
LOCAL_SRC_FILES_x86_64 += \
|
|
|
|
x86_64/ceil.S \
|
|
|
|
x86_64/ceilf.S \
|
|
|
|
x86_64/floor.S \
|
|
|
|
x86_64/floorf.S \
|
|
|
|
x86_64/trunc.S \
|
|
|
|
x86_64/truncf.S \
|
|
|
|
|
|
|
|
else
|
|
|
|
LOCAL_SRC_FILES_x86_64 += \
|
|
|
|
upstream-freebsd/lib/msun/src/s_ceil.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_ceilf.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_floor.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_floorf.c \
|
2015-02-18 00:05:51 +01:00
|
|
|
upstream-freebsd/lib/msun/src/s_trunc.c \
|
|
|
|
upstream-freebsd/lib/msun/src/s_truncf.c \
|
2015-01-23 02:16:33 +01:00
|
|
|
|
2014-11-12 20:05:54 +01:00
|
|
|
endif
|
|
|
|
|
2015-01-23 02:16:33 +01:00
|
|
|
LOCAL_C_INCLUDES_x86 += $(LOCAL_PATH)/i387
|
2013-02-09 00:46:37 +01:00
|
|
|
|
2015-01-23 02:16:33 +01:00
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/upstream-freebsd/lib/msun/src/
|
|
|
|
LOCAL_C_INCLUDES_64 += $(LOCAL_PATH)/upstream-freebsd/lib/msun/ld128/
|
|
|
|
|
2015-06-23 23:18:14 +02:00
|
|
|
LOCAL_CLANG := $(libm_clang)
|
2015-01-23 02:16:33 +01:00
|
|
|
LOCAL_ARM_MODE := arm
|
|
|
|
LOCAL_CFLAGS := \
|
2015-08-25 00:57:08 +02:00
|
|
|
-D__BIONIC_NO_MATH_INLINES \
|
2013-11-21 01:09:06 +01:00
|
|
|
-DFLT_EVAL_METHOD=0 \
|
|
|
|
-include $(LOCAL_PATH)/freebsd-compat.h \
|
2015-10-24 00:42:27 +02:00
|
|
|
-Werror \
|
2014-05-06 05:28:28 +02:00
|
|
|
-Wno-missing-braces \
|
|
|
|
-Wno-parentheses \
|
|
|
|
-Wno-sign-compare \
|
|
|
|
-Wno-uninitialized \
|
2014-07-11 03:24:15 +02:00
|
|
|
-Wno-unknown-pragmas \
|
2014-05-20 01:58:52 +02:00
|
|
|
-fvisibility=hidden \
|
2013-11-21 01:09:06 +01:00
|
|
|
|
2014-07-23 10:59:22 +02:00
|
|
|
LOCAL_ASFLAGS := \
|
|
|
|
-Ibionic/libc \
|
|
|
|
|
2014-05-30 01:02:09 +02:00
|
|
|
# Workaround the GCC "(long)fn -> lfn" optimization bug which will result in
|
|
|
|
# self recursions for lrint, lrintf, and lrintl.
|
|
|
|
# BUG: 14225968
|
2015-01-23 02:16:33 +01:00
|
|
|
LOCAL_CFLAGS += \
|
|
|
|
-fno-builtin-rint \
|
|
|
|
-fno-builtin-rintf \
|
|
|
|
-fno-builtin-rintl \
|
2014-05-30 01:02:09 +02:00
|
|
|
|
2014-10-01 01:56:43 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2008-10-21 16:00:00 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2015-01-23 02:16:33 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# libm.so
|
|
|
|
# -----------------------------------------------------------------------------
|
2008-10-21 16:00:00 +02:00
|
|
|
include $(CLEAR_VARS)
|
2015-01-23 02:16:33 +01:00
|
|
|
|
2015-06-05 03:30:51 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/libm.map
|
|
|
|
|
2015-09-28 19:14:17 +02:00
|
|
|
# TODO: This is to work around b/24465209. Remove after root cause is fixed
|
2015-05-08 21:05:47 +02:00
|
|
|
LOCAL_LDFLAGS_arm := -Wl,--hash-style=both
|
2015-05-16 02:53:39 +02:00
|
|
|
LOCAL_LDFLAGS_x86 := -Wl,--hash-style=both
|
2015-03-10 03:38:56 +01:00
|
|
|
|
2015-06-05 03:30:51 +02:00
|
|
|
LOCAL_LDFLAGS := -Wl,--version-script,$(LOCAL_PATH)/libm.map
|
|
|
|
|
2015-01-23 02:16:33 +01:00
|
|
|
LOCAL_MODULE := libm
|
2015-06-23 23:18:14 +02:00
|
|
|
LOCAL_CLANG := $(libm_clang)
|
2008-10-21 16:00:00 +02:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES := libc
|
Upgrade libm.
This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies
the set of functions we support on ARM, MIPS, and x86, fixes "long double",
adds ISO C99 support, and adds basic unit tests.
It turns out that our "long double" functions have always been broken
for non-normal numbers. This patch fixes that by not using the upstream
implementations and just forwarding to the regular "double" implementation
instead (since "long double" on Android is just "double" anyway, which is
what BSD doesn't support).
All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64.
Bug: 3169850
Bug: 8012787
Bug: https://code.google.com/p/android/issues/detail?id=6697
Change-Id: If0c343030959c24bfc50d4d21c9530052c581837
2013-01-31 04:06:37 +01:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := libm
|
2014-06-24 06:31:08 +02:00
|
|
|
|
2014-10-01 01:56:43 +02:00
|
|
|
LOCAL_NATIVE_COVERAGE := $(bionic_coverage)
|
2015-06-16 22:57:54 +02:00
|
|
|
LOCAL_SANITIZE := never
|
2014-10-01 01:56:43 +02:00
|
|
|
|
2014-10-16 16:44:47 +02:00
|
|
|
LOCAL_CXX_STL := none
|
|
|
|
|
2014-06-24 06:31:08 +02:00
|
|
|
# We'd really like to do this for all architectures, but since this wasn't done
|
|
|
|
# before, these symbols must continue to be exported on LP32 for binary
|
|
|
|
# compatibility.
|
2015-01-23 02:16:33 +01:00
|
|
|
LOCAL_LDFLAGS_64 := -Wl,--exclude-libs,libgcc.a
|
|
|
|
|
2008-10-21 16:00:00 +02:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2012-10-20 20:48:43 +02:00
|
|
|
endif
|