Xiaokang, Qin | d97d1ca | 2012-10-21 02:48:43 +0800 | [diff] [blame] | 1 | ifneq ($(TARGET_USE_PRIVATE_LIBM),true) |
Elliott Hughes | 1e83245 | 2014-07-11 01:24:15 +0000 | [diff] [blame] | 2 | LOCAL_PATH:= $(call my-dir) |
The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 3 | |
Dan Albert | 12e3f22 | 2014-09-30 16:56:43 -0700 | [diff] [blame] | 4 | bionic_coverage := false |
| 5 | |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 6 | # ----------------------------------------------------------------------------- |
| 7 | # libm.a |
| 8 | # ----------------------------------------------------------------------------- |
| 9 | include $(CLEAR_VARS) |
The Android Open Source Project | 4e468ed | 2008-12-17 18:03:48 -0800 | [diff] [blame] | 10 | |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 11 | LOCAL_MODULE := libm |
| 12 | |
| 13 | LOCAL_SRC_FILES := \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 14 | upstream-freebsd/lib/msun/bsdsrc/b_exp.c \ |
| 15 | upstream-freebsd/lib/msun/bsdsrc/b_log.c \ |
| 16 | upstream-freebsd/lib/msun/bsdsrc/b_tgamma.c \ |
Elliott Hughes | b8ee16f | 2014-11-06 11:16:55 -0800 | [diff] [blame] | 17 | upstream-freebsd/lib/msun/src/catrig.c \ |
| 18 | upstream-freebsd/lib/msun/src/catrigf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 19 | upstream-freebsd/lib/msun/src/e_acosf.c \ |
| 20 | upstream-freebsd/lib/msun/src/e_acosh.c \ |
| 21 | upstream-freebsd/lib/msun/src/e_acoshf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 22 | upstream-freebsd/lib/msun/src/e_asinf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 23 | upstream-freebsd/lib/msun/src/e_atan2f.c \ |
| 24 | upstream-freebsd/lib/msun/src/e_atanh.c \ |
| 25 | upstream-freebsd/lib/msun/src/e_atanhf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 26 | upstream-freebsd/lib/msun/src/e_coshf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 27 | upstream-freebsd/lib/msun/src/e_expf.c \ |
| 28 | upstream-freebsd/lib/msun/src/e_fmod.c \ |
| 29 | upstream-freebsd/lib/msun/src/e_fmodf.c \ |
| 30 | upstream-freebsd/lib/msun/src/e_gamma.c \ |
| 31 | upstream-freebsd/lib/msun/src/e_gammaf.c \ |
| 32 | upstream-freebsd/lib/msun/src/e_gammaf_r.c \ |
| 33 | upstream-freebsd/lib/msun/src/e_gamma_r.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 34 | upstream-freebsd/lib/msun/src/e_hypotf.c \ |
| 35 | upstream-freebsd/lib/msun/src/e_j0.c \ |
| 36 | upstream-freebsd/lib/msun/src/e_j0f.c \ |
| 37 | upstream-freebsd/lib/msun/src/e_j1.c \ |
| 38 | upstream-freebsd/lib/msun/src/e_j1f.c \ |
| 39 | upstream-freebsd/lib/msun/src/e_jn.c \ |
| 40 | upstream-freebsd/lib/msun/src/e_jnf.c \ |
| 41 | upstream-freebsd/lib/msun/src/e_lgamma.c \ |
| 42 | upstream-freebsd/lib/msun/src/e_lgammaf.c \ |
| 43 | upstream-freebsd/lib/msun/src/e_lgammaf_r.c \ |
| 44 | upstream-freebsd/lib/msun/src/e_lgamma_r.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 45 | upstream-freebsd/lib/msun/src/e_log10f.c \ |
| 46 | upstream-freebsd/lib/msun/src/e_log2.c \ |
| 47 | upstream-freebsd/lib/msun/src/e_log2f.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 48 | upstream-freebsd/lib/msun/src/e_logf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 49 | upstream-freebsd/lib/msun/src/e_powf.c \ |
| 50 | upstream-freebsd/lib/msun/src/e_remainder.c \ |
| 51 | upstream-freebsd/lib/msun/src/e_remainderf.c \ |
| 52 | upstream-freebsd/lib/msun/src/e_rem_pio2.c \ |
| 53 | upstream-freebsd/lib/msun/src/e_rem_pio2f.c \ |
| 54 | upstream-freebsd/lib/msun/src/e_scalb.c \ |
| 55 | upstream-freebsd/lib/msun/src/e_scalbf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 56 | upstream-freebsd/lib/msun/src/e_sinhf.c \ |
Calin Juravle | 1abc9ff | 2014-04-17 18:17:32 +0100 | [diff] [blame] | 57 | upstream-freebsd/lib/msun/src/imprecise.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 58 | upstream-freebsd/lib/msun/src/k_cos.c \ |
| 59 | upstream-freebsd/lib/msun/src/k_cosf.c \ |
| 60 | upstream-freebsd/lib/msun/src/k_exp.c \ |
| 61 | upstream-freebsd/lib/msun/src/k_expf.c \ |
| 62 | upstream-freebsd/lib/msun/src/k_rem_pio2.c \ |
| 63 | upstream-freebsd/lib/msun/src/k_sin.c \ |
| 64 | upstream-freebsd/lib/msun/src/k_sinf.c \ |
| 65 | upstream-freebsd/lib/msun/src/k_tan.c \ |
| 66 | upstream-freebsd/lib/msun/src/k_tanf.c \ |
| 67 | upstream-freebsd/lib/msun/src/s_asinh.c \ |
| 68 | upstream-freebsd/lib/msun/src/s_asinhf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 69 | upstream-freebsd/lib/msun/src/s_atanf.c \ |
| 70 | upstream-freebsd/lib/msun/src/s_carg.c \ |
| 71 | upstream-freebsd/lib/msun/src/s_cargf.c \ |
Elliott Hughes | b8ee16f | 2014-11-06 11:16:55 -0800 | [diff] [blame] | 72 | upstream-freebsd/lib/msun/src/s_cargl.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 73 | upstream-freebsd/lib/msun/src/s_cbrtf.c \ |
| 74 | upstream-freebsd/lib/msun/src/s_ccosh.c \ |
| 75 | upstream-freebsd/lib/msun/src/s_ccoshf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 76 | upstream-freebsd/lib/msun/src/s_cexp.c \ |
| 77 | upstream-freebsd/lib/msun/src/s_cexpf.c \ |
| 78 | upstream-freebsd/lib/msun/src/s_cimag.c \ |
| 79 | upstream-freebsd/lib/msun/src/s_cimagf.c \ |
Elliott Hughes | b8ee16f | 2014-11-06 11:16:55 -0800 | [diff] [blame] | 80 | upstream-freebsd/lib/msun/src/s_cimagl.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 81 | upstream-freebsd/lib/msun/src/s_conj.c \ |
| 82 | upstream-freebsd/lib/msun/src/s_conjf.c \ |
Elliott Hughes | b8ee16f | 2014-11-06 11:16:55 -0800 | [diff] [blame] | 83 | upstream-freebsd/lib/msun/src/s_conjl.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 84 | upstream-freebsd/lib/msun/src/s_copysign.c \ |
| 85 | upstream-freebsd/lib/msun/src/s_copysignf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 86 | upstream-freebsd/lib/msun/src/s_cosf.c \ |
| 87 | upstream-freebsd/lib/msun/src/s_cproj.c \ |
| 88 | upstream-freebsd/lib/msun/src/s_cprojf.c \ |
Elliott Hughes | b8ee16f | 2014-11-06 11:16:55 -0800 | [diff] [blame] | 89 | upstream-freebsd/lib/msun/src/s_cprojl.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 90 | upstream-freebsd/lib/msun/src/s_creal.c \ |
| 91 | upstream-freebsd/lib/msun/src/s_crealf.c \ |
Elliott Hughes | b8ee16f | 2014-11-06 11:16:55 -0800 | [diff] [blame] | 92 | upstream-freebsd/lib/msun/src/s_creall.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 93 | upstream-freebsd/lib/msun/src/s_csinh.c \ |
| 94 | upstream-freebsd/lib/msun/src/s_csinhf.c \ |
| 95 | upstream-freebsd/lib/msun/src/s_csqrt.c \ |
| 96 | upstream-freebsd/lib/msun/src/s_csqrtf.c \ |
Elliott Hughes | b8ee16f | 2014-11-06 11:16:55 -0800 | [diff] [blame] | 97 | upstream-freebsd/lib/msun/src/s_csqrtl.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 98 | upstream-freebsd/lib/msun/src/s_ctanh.c \ |
| 99 | upstream-freebsd/lib/msun/src/s_ctanhf.c \ |
| 100 | upstream-freebsd/lib/msun/src/s_erf.c \ |
| 101 | upstream-freebsd/lib/msun/src/s_erff.c \ |
| 102 | upstream-freebsd/lib/msun/src/s_exp2.c \ |
| 103 | upstream-freebsd/lib/msun/src/s_exp2f.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 104 | upstream-freebsd/lib/msun/src/s_expm1f.c \ |
| 105 | upstream-freebsd/lib/msun/src/s_fabs.c \ |
| 106 | upstream-freebsd/lib/msun/src/s_fabsf.c \ |
| 107 | upstream-freebsd/lib/msun/src/s_fdim.c \ |
| 108 | upstream-freebsd/lib/msun/src/s_finite.c \ |
| 109 | upstream-freebsd/lib/msun/src/s_finitef.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 110 | upstream-freebsd/lib/msun/src/s_fmax.c \ |
| 111 | upstream-freebsd/lib/msun/src/s_fmaxf.c \ |
| 112 | upstream-freebsd/lib/msun/src/s_fmin.c \ |
| 113 | upstream-freebsd/lib/msun/src/s_fminf.c \ |
| 114 | upstream-freebsd/lib/msun/src/s_frexp.c \ |
| 115 | upstream-freebsd/lib/msun/src/s_frexpf.c \ |
| 116 | upstream-freebsd/lib/msun/src/s_ilogb.c \ |
| 117 | upstream-freebsd/lib/msun/src/s_ilogbf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 118 | upstream-freebsd/lib/msun/src/s_llround.c \ |
| 119 | upstream-freebsd/lib/msun/src/s_llroundf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 120 | upstream-freebsd/lib/msun/src/s_log1pf.c \ |
| 121 | upstream-freebsd/lib/msun/src/s_logb.c \ |
| 122 | upstream-freebsd/lib/msun/src/s_logbf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 123 | upstream-freebsd/lib/msun/src/s_lround.c \ |
| 124 | upstream-freebsd/lib/msun/src/s_lroundf.c \ |
| 125 | upstream-freebsd/lib/msun/src/s_modf.c \ |
| 126 | upstream-freebsd/lib/msun/src/s_modff.c \ |
| 127 | upstream-freebsd/lib/msun/src/s_nan.c \ |
| 128 | upstream-freebsd/lib/msun/src/s_nearbyint.c \ |
| 129 | upstream-freebsd/lib/msun/src/s_nextafter.c \ |
| 130 | upstream-freebsd/lib/msun/src/s_nextafterf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 131 | upstream-freebsd/lib/msun/src/s_remquo.c \ |
| 132 | upstream-freebsd/lib/msun/src/s_remquof.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 133 | upstream-freebsd/lib/msun/src/s_round.c \ |
| 134 | upstream-freebsd/lib/msun/src/s_roundf.c \ |
| 135 | upstream-freebsd/lib/msun/src/s_scalbln.c \ |
| 136 | upstream-freebsd/lib/msun/src/s_scalbn.c \ |
| 137 | upstream-freebsd/lib/msun/src/s_scalbnf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 138 | upstream-freebsd/lib/msun/src/s_signgam.c \ |
| 139 | upstream-freebsd/lib/msun/src/s_significand.c \ |
| 140 | upstream-freebsd/lib/msun/src/s_significandf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 141 | upstream-freebsd/lib/msun/src/s_sinf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 142 | upstream-freebsd/lib/msun/src/s_tanf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 143 | upstream-freebsd/lib/msun/src/s_tanhf.c \ |
| 144 | upstream-freebsd/lib/msun/src/s_tgammaf.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 145 | upstream-freebsd/lib/msun/src/w_cabs.c \ |
| 146 | upstream-freebsd/lib/msun/src/w_cabsf.c \ |
Elliott Hughes | b8ee16f | 2014-11-06 11:16:55 -0800 | [diff] [blame] | 147 | upstream-freebsd/lib/msun/src/w_cabsl.c \ |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 148 | upstream-freebsd/lib/msun/src/w_drem.c \ |
| 149 | upstream-freebsd/lib/msun/src/w_dremf.c \ |
The Android Open Source Project | 4e468ed | 2008-12-17 18:03:48 -0800 | [diff] [blame] | 150 | |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 151 | LOCAL_SRC_FILES_32 += \ |
Elliott Hughes | 20adf52 | 2013-12-19 11:30:51 -0800 | [diff] [blame] | 152 | fake_long_double.c \ |
The Android Open Source Project | 4e468ed | 2008-12-17 18:03:48 -0800 | [diff] [blame] | 153 | |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 154 | LOCAL_SRC_FILES_64 := \ |
Calin Juravle | 4d77c11 | 2014-03-14 17:56:46 +0000 | [diff] [blame] | 155 | upstream-freebsd/lib/msun/src/e_acosl.c \ |
| 156 | upstream-freebsd/lib/msun/src/e_acoshl.c \ |
| 157 | upstream-freebsd/lib/msun/src/e_asinl.c \ |
| 158 | upstream-freebsd/lib/msun/src/e_atan2l.c \ |
| 159 | upstream-freebsd/lib/msun/src/e_atanhl.c \ |
| 160 | upstream-freebsd/lib/msun/src/e_fmodl.c \ |
| 161 | upstream-freebsd/lib/msun/src/e_hypotl.c \ |
Elliott Hughes | 7553185 | 2014-09-18 11:23:58 -0700 | [diff] [blame] | 162 | upstream-freebsd/lib/msun/src/e_lgammal.c \ |
Calin Juravle | 4d77c11 | 2014-03-14 17:56:46 +0000 | [diff] [blame] | 163 | upstream-freebsd/lib/msun/src/e_remainderl.c \ |
| 164 | upstream-freebsd/lib/msun/src/e_sqrtl.c \ |
| 165 | upstream-freebsd/lib/msun/src/s_asinhl.c \ |
| 166 | upstream-freebsd/lib/msun/src/s_atanl.c \ |
| 167 | upstream-freebsd/lib/msun/src/s_cbrtl.c \ |
| 168 | upstream-freebsd/lib/msun/src/s_ceill.c \ |
| 169 | upstream-freebsd/lib/msun/src/s_copysignl.c \ |
Elliott Hughes | c729d4f | 2014-09-12 16:09:40 -0700 | [diff] [blame] | 170 | upstream-freebsd/lib/msun/src/e_coshl.c \ |
Calin Juravle | 4d77c11 | 2014-03-14 17:56:46 +0000 | [diff] [blame] | 171 | upstream-freebsd/lib/msun/src/s_cosl.c \ |
| 172 | upstream-freebsd/lib/msun/src/s_fabsl.c \ |
| 173 | upstream-freebsd/lib/msun/src/s_floorl.c \ |
| 174 | upstream-freebsd/lib/msun/src/s_fmal.c \ |
| 175 | upstream-freebsd/lib/msun/src/s_fmaxl.c \ |
| 176 | upstream-freebsd/lib/msun/src/s_fminl.c \ |
| 177 | upstream-freebsd/lib/msun/src/s_modfl.c \ |
| 178 | upstream-freebsd/lib/msun/src/s_frexpl.c \ |
| 179 | upstream-freebsd/lib/msun/src/s_ilogbl.c \ |
| 180 | upstream-freebsd/lib/msun/src/s_llrintl.c \ |
| 181 | upstream-freebsd/lib/msun/src/s_llroundl.c \ |
| 182 | upstream-freebsd/lib/msun/src/s_logbl.c \ |
| 183 | upstream-freebsd/lib/msun/src/s_lrintl.c \ |
| 184 | upstream-freebsd/lib/msun/src/s_lroundl.c \ |
| 185 | upstream-freebsd/lib/msun/src/s_nextafterl.c \ |
| 186 | upstream-freebsd/lib/msun/src/s_nexttoward.c \ |
Calin Juravle | 1abc9ff | 2014-04-17 18:17:32 +0100 | [diff] [blame] | 187 | upstream-freebsd/lib/msun/src/s_nexttowardf.c \ |
Calin Juravle | 4d77c11 | 2014-03-14 17:56:46 +0000 | [diff] [blame] | 188 | upstream-freebsd/lib/msun/src/s_remquol.c \ |
| 189 | upstream-freebsd/lib/msun/src/s_rintl.c \ |
| 190 | upstream-freebsd/lib/msun/src/s_roundl.c \ |
| 191 | upstream-freebsd/lib/msun/src/s_scalbnl.c \ |
Elliott Hughes | c729d4f | 2014-09-12 16:09:40 -0700 | [diff] [blame] | 192 | upstream-freebsd/lib/msun/src/e_sinhl.c \ |
Calin Juravle | 4d77c11 | 2014-03-14 17:56:46 +0000 | [diff] [blame] | 193 | upstream-freebsd/lib/msun/src/s_sinl.c \ |
Elliott Hughes | c729d4f | 2014-09-12 16:09:40 -0700 | [diff] [blame] | 194 | upstream-freebsd/lib/msun/src/s_tanhl.c \ |
Calin Juravle | 4d77c11 | 2014-03-14 17:56:46 +0000 | [diff] [blame] | 195 | upstream-freebsd/lib/msun/src/s_tanl.c \ |
| 196 | upstream-freebsd/lib/msun/src/s_truncl.c \ |
| 197 | |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 198 | LOCAL_SRC_FILES_64 += \ |
Calin Juravle | 4d77c11 | 2014-03-14 17:56:46 +0000 | [diff] [blame] | 199 | upstream-freebsd/lib/msun/ld128/invtrig.c \ |
Elliott Hughes | 7553185 | 2014-09-18 11:23:58 -0700 | [diff] [blame] | 200 | upstream-freebsd/lib/msun/ld128/e_lgammal_r.c \ |
Calin Juravle | 4d77c11 | 2014-03-14 17:56:46 +0000 | [diff] [blame] | 201 | upstream-freebsd/lib/msun/ld128/k_cosl.c \ |
| 202 | upstream-freebsd/lib/msun/ld128/k_sinl.c \ |
| 203 | upstream-freebsd/lib/msun/ld128/k_tanl.c \ |
Elliott Hughes | 460ad74 | 2014-09-12 14:00:02 -0700 | [diff] [blame] | 204 | upstream-freebsd/lib/msun/ld128/s_erfl.c \ |
Calin Juravle | 4d77c11 | 2014-03-14 17:56:46 +0000 | [diff] [blame] | 205 | upstream-freebsd/lib/msun/ld128/s_exp2l.c \ |
| 206 | upstream-freebsd/lib/msun/ld128/s_expl.c \ |
| 207 | upstream-freebsd/lib/msun/ld128/s_logl.c \ |
| 208 | upstream-freebsd/lib/msun/ld128/s_nanl.c \ |
The Android Open Source Project | 4e468ed | 2008-12-17 18:03:48 -0800 | [diff] [blame] | 209 | |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 210 | # TODO: this comes from from upstream's libc, not libm, but it's an |
| 211 | # implementation detail that should have hidden visibility, so it needs |
| 212 | # to be in whatever library the math code is in. |
| 213 | LOCAL_SRC_FILES += \ |
| 214 | digittoint.c \ |
The Android Open Source Project | 4e468ed | 2008-12-17 18:03:48 -0800 | [diff] [blame] | 215 | |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 216 | # Functionality not in the BSDs. |
| 217 | LOCAL_SRC_FILES += \ |
| 218 | significandl.c \ |
| 219 | sincos.c \ |
| 220 | |
| 221 | # Modified versions of BSD code. |
| 222 | LOCAL_SRC_FILES += \ |
| 223 | signbit.c \ |
| 224 | |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 225 | # Arch specific optimizations. |
| 226 | |
| 227 | # ----------------------------------------------------------------------------- |
| 228 | # arm |
| 229 | # ----------------------------------------------------------------------------- |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 230 | LOCAL_SRC_FILES_arm += \ |
| 231 | arm/fenv.c \ |
Jingwei Zhang | 5d4f0e6 | 2014-10-31 18:29:18 +0800 | [diff] [blame] | 232 | upstream-freebsd/lib/msun/src/e_acos.c \ |
| 233 | upstream-freebsd/lib/msun/src/e_asin.c \ |
| 234 | upstream-freebsd/lib/msun/src/e_atan2.c \ |
| 235 | upstream-freebsd/lib/msun/src/e_cosh.c \ |
| 236 | upstream-freebsd/lib/msun/src/e_exp.c \ |
| 237 | upstream-freebsd/lib/msun/src/e_hypot.c \ |
| 238 | upstream-freebsd/lib/msun/src/e_log.c \ |
| 239 | upstream-freebsd/lib/msun/src/e_log10.c \ |
| 240 | upstream-freebsd/lib/msun/src/e_pow.c \ |
| 241 | upstream-freebsd/lib/msun/src/e_sinh.c \ |
| 242 | upstream-freebsd/lib/msun/src/s_atan.c \ |
| 243 | upstream-freebsd/lib/msun/src/s_cbrt.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 244 | upstream-freebsd/lib/msun/src/s_ceil.c \ |
| 245 | upstream-freebsd/lib/msun/src/s_ceilf.c \ |
Jingwei Zhang | 5d4f0e6 | 2014-10-31 18:29:18 +0800 | [diff] [blame] | 246 | upstream-freebsd/lib/msun/src/s_cos.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 247 | upstream-freebsd/lib/msun/src/s_fma.c \ |
| 248 | upstream-freebsd/lib/msun/src/s_fmaf.c \ |
| 249 | upstream-freebsd/lib/msun/src/s_floorf.c \ |
Jingwei Zhang | 5d4f0e6 | 2014-10-31 18:29:18 +0800 | [diff] [blame] | 250 | upstream-freebsd/lib/msun/src/s_expm1.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 251 | upstream-freebsd/lib/msun/src/s_llrint.c \ |
| 252 | upstream-freebsd/lib/msun/src/s_llrintf.c \ |
Jingwei Zhang | 5d4f0e6 | 2014-10-31 18:29:18 +0800 | [diff] [blame] | 253 | upstream-freebsd/lib/msun/src/s_log1p.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 254 | upstream-freebsd/lib/msun/src/s_lrint.c \ |
| 255 | upstream-freebsd/lib/msun/src/s_lrintf.c \ |
| 256 | upstream-freebsd/lib/msun/src/s_rint.c \ |
| 257 | upstream-freebsd/lib/msun/src/s_rintf.c \ |
Jingwei Zhang | 5d4f0e6 | 2014-10-31 18:29:18 +0800 | [diff] [blame] | 258 | upstream-freebsd/lib/msun/src/s_sin.c \ |
| 259 | upstream-freebsd/lib/msun/src/s_tan.c \ |
| 260 | upstream-freebsd/lib/msun/src/s_tanh.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 261 | upstream-freebsd/lib/msun/src/s_trunc.c \ |
| 262 | upstream-freebsd/lib/msun/src/s_truncf.c \ |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 263 | |
Shu Zhang | 3a629af | 2014-07-23 16:59:22 +0800 | [diff] [blame] | 264 | # s_floor.S requires neon instructions. |
| 265 | ifdef TARGET_2ND_ARCH |
| 266 | arch_variant := $(TARGET_2ND_ARCH_VARIANT) |
| 267 | else |
| 268 | arch_variant := $(TARGET_ARCH_VARIANT) |
| 269 | endif |
| 270 | |
| 271 | # Use the C version on armv7-a since it doesn't support neon instructions. |
| 272 | ifeq ($(arch_variant),armv7-a) |
Shu Zhang | c78fa26 | 2014-07-23 17:21:55 +0800 | [diff] [blame] | 273 | LOCAL_SRC_FILES_arm += \ |
| 274 | upstream-freebsd/lib/msun/src/e_sqrt.c \ |
| 275 | upstream-freebsd/lib/msun/src/e_sqrtf.c \ |
| 276 | upstream-freebsd/lib/msun/src/s_floor.c \ |
| 277 | |
Shu Zhang | 3a629af | 2014-07-23 16:59:22 +0800 | [diff] [blame] | 278 | else |
Shu Zhang | c78fa26 | 2014-07-23 17:21:55 +0800 | [diff] [blame] | 279 | LOCAL_SRC_FILES_arm += \ |
| 280 | arm/e_sqrt.S \ |
| 281 | arm/e_sqrtf.S \ |
| 282 | arm/s_floor.S \ |
| 283 | |
Shu Zhang | 3a629af | 2014-07-23 16:59:22 +0800 | [diff] [blame] | 284 | endif |
| 285 | |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 286 | # ----------------------------------------------------------------------------- |
| 287 | # arm64 |
| 288 | # ----------------------------------------------------------------------------- |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 289 | LOCAL_SRC_FILES_arm64 += \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 290 | arm64/ceil.S \ |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 291 | arm64/fenv.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 292 | arm64/fma.S \ |
| 293 | arm64/floor.S \ |
| 294 | arm64/lrint.S \ |
| 295 | arm64/rint.S \ |
| 296 | arm64/sqrt.S \ |
| 297 | arm64/trunc.S \ |
Jingwei Zhang | 5d4f0e6 | 2014-10-31 18:29:18 +0800 | [diff] [blame] | 298 | upstream-freebsd/lib/msun/src/e_acos.c \ |
| 299 | upstream-freebsd/lib/msun/src/e_asin.c \ |
| 300 | upstream-freebsd/lib/msun/src/e_atan2.c \ |
| 301 | upstream-freebsd/lib/msun/src/e_cosh.c \ |
| 302 | upstream-freebsd/lib/msun/src/e_exp.c \ |
| 303 | upstream-freebsd/lib/msun/src/e_hypot.c \ |
| 304 | upstream-freebsd/lib/msun/src/e_log.c \ |
| 305 | upstream-freebsd/lib/msun/src/e_log10.c \ |
| 306 | upstream-freebsd/lib/msun/src/e_pow.c \ |
| 307 | upstream-freebsd/lib/msun/src/e_sinh.c \ |
| 308 | upstream-freebsd/lib/msun/src/s_atan.c \ |
| 309 | upstream-freebsd/lib/msun/src/s_cbrt.c \ |
| 310 | upstream-freebsd/lib/msun/src/s_cos.c \ |
| 311 | upstream-freebsd/lib/msun/src/s_expm1.c \ |
| 312 | upstream-freebsd/lib/msun/src/s_log1p.c \ |
| 313 | upstream-freebsd/lib/msun/src/s_sin.c \ |
| 314 | upstream-freebsd/lib/msun/src/s_tan.c \ |
| 315 | upstream-freebsd/lib/msun/src/s_tanh.c \ |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 316 | |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 317 | # ----------------------------------------------------------------------------- |
| 318 | # mips |
| 319 | # ----------------------------------------------------------------------------- |
| 320 | libm_mips_arch_files := \ |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 321 | mips/fenv.c \ |
Jingwei Zhang | 5d4f0e6 | 2014-10-31 18:29:18 +0800 | [diff] [blame] | 322 | upstream-freebsd/lib/msun/src/e_acos.c \ |
| 323 | upstream-freebsd/lib/msun/src/e_asin.c \ |
| 324 | upstream-freebsd/lib/msun/src/e_atan2.c \ |
| 325 | upstream-freebsd/lib/msun/src/e_cosh.c \ |
| 326 | upstream-freebsd/lib/msun/src/e_exp.c \ |
| 327 | upstream-freebsd/lib/msun/src/e_hypot.c \ |
| 328 | upstream-freebsd/lib/msun/src/e_log.c \ |
| 329 | upstream-freebsd/lib/msun/src/e_log10.c \ |
| 330 | upstream-freebsd/lib/msun/src/e_pow.c \ |
| 331 | upstream-freebsd/lib/msun/src/e_sinh.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 332 | upstream-freebsd/lib/msun/src/e_sqrt.c \ |
| 333 | upstream-freebsd/lib/msun/src/e_sqrtf.c \ |
Jingwei Zhang | 5d4f0e6 | 2014-10-31 18:29:18 +0800 | [diff] [blame] | 334 | upstream-freebsd/lib/msun/src/s_atan.c \ |
| 335 | upstream-freebsd/lib/msun/src/s_cbrt.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 336 | upstream-freebsd/lib/msun/src/s_ceil.c \ |
| 337 | upstream-freebsd/lib/msun/src/s_ceilf.c \ |
Jingwei Zhang | 5d4f0e6 | 2014-10-31 18:29:18 +0800 | [diff] [blame] | 338 | upstream-freebsd/lib/msun/src/s_cos.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 339 | upstream-freebsd/lib/msun/src/s_fma.c \ |
| 340 | upstream-freebsd/lib/msun/src/s_fmaf.c \ |
Shu Zhang | 3a629af | 2014-07-23 16:59:22 +0800 | [diff] [blame] | 341 | upstream-freebsd/lib/msun/src/s_floor.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 342 | upstream-freebsd/lib/msun/src/s_floorf.c \ |
Jingwei Zhang | 5d4f0e6 | 2014-10-31 18:29:18 +0800 | [diff] [blame] | 343 | upstream-freebsd/lib/msun/src/s_expm1.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 344 | upstream-freebsd/lib/msun/src/s_llrint.c \ |
| 345 | upstream-freebsd/lib/msun/src/s_llrintf.c \ |
Jingwei Zhang | 5d4f0e6 | 2014-10-31 18:29:18 +0800 | [diff] [blame] | 346 | upstream-freebsd/lib/msun/src/s_log1p.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 347 | upstream-freebsd/lib/msun/src/s_lrint.c \ |
| 348 | upstream-freebsd/lib/msun/src/s_lrintf.c \ |
| 349 | upstream-freebsd/lib/msun/src/s_rint.c \ |
| 350 | upstream-freebsd/lib/msun/src/s_rintf.c \ |
Jingwei Zhang | 5d4f0e6 | 2014-10-31 18:29:18 +0800 | [diff] [blame] | 351 | upstream-freebsd/lib/msun/src/s_sin.c \ |
| 352 | upstream-freebsd/lib/msun/src/s_tan.c \ |
| 353 | upstream-freebsd/lib/msun/src/s_tanh.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 354 | upstream-freebsd/lib/msun/src/s_trunc.c \ |
| 355 | upstream-freebsd/lib/msun/src/s_truncf.c \ |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 356 | |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 357 | LOCAL_SRC_FILES_mips += $(libm_mips_arch_files) |
| 358 | LOCAL_SRC_FILES_mips64 += $(libm_mips_arch_files) |
Duane Sand | 3d535d2 | 2015-02-11 12:51:42 -0800 | [diff] [blame] | 359 | |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 360 | # ----------------------------------------------------------------------------- |
| 361 | # x86 |
| 362 | # ----------------------------------------------------------------------------- |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 363 | LOCAL_SRC_FILES_x86 += \ |
| 364 | i387/fenv.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 365 | upstream-freebsd/lib/msun/src/s_fma.c \ |
| 366 | upstream-freebsd/lib/msun/src/s_fmaf.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 367 | upstream-freebsd/lib/msun/src/s_llrint.c \ |
| 368 | upstream-freebsd/lib/msun/src/s_llrintf.c \ |
| 369 | upstream-freebsd/lib/msun/src/s_lrint.c \ |
| 370 | upstream-freebsd/lib/msun/src/s_lrintf.c \ |
| 371 | upstream-freebsd/lib/msun/src/s_rint.c \ |
| 372 | upstream-freebsd/lib/msun/src/s_rintf.c \ |
James Rose | 45789b6 | 2014-11-12 12:05:54 -0700 | [diff] [blame] | 373 | x86/sqrt.S \ |
| 374 | x86/sqrtf.S \ |
Jingwei Zhang | 5d4f0e6 | 2014-10-31 18:29:18 +0800 | [diff] [blame] | 375 | x86/e_acos.S \ |
| 376 | x86/e_asin.S \ |
| 377 | x86/e_atan2.S \ |
| 378 | x86/e_cosh.S \ |
| 379 | x86/e_exp.S \ |
| 380 | x86/e_hypot.S \ |
| 381 | x86/e_log10.S \ |
| 382 | x86/e_log.S \ |
| 383 | x86/e_pow.S \ |
| 384 | x86/e_sinh.S \ |
| 385 | x86/libm_reduce_pi04l.S \ |
| 386 | x86/libm_sincos_huge.S \ |
| 387 | x86/libm_tancot_huge.S \ |
| 388 | x86/s_atan.S \ |
| 389 | x86/s_cbrt.S \ |
| 390 | x86/s_cos.S \ |
| 391 | x86/s_expm1.S \ |
| 392 | x86/s_log1p.S \ |
| 393 | x86/s_sin.S \ |
| 394 | x86/s_tanh.S \ |
| 395 | x86/s_tan.S \ |
James Rose | 45789b6 | 2014-11-12 12:05:54 -0700 | [diff] [blame] | 396 | |
| 397 | ifeq ($(ARCH_X86_HAVE_SSE4_1),true) |
| 398 | LOCAL_SRC_FILES_x86 += \ |
| 399 | x86/ceil.S \ |
| 400 | x86/ceilf.S \ |
| 401 | x86/floor.S \ |
| 402 | x86/floorf.S \ |
| 403 | x86/trunc.S \ |
| 404 | x86/truncf.S \ |
| 405 | |
| 406 | else |
| 407 | LOCAL_SRC_FILES_x86 += \ |
| 408 | upstream-freebsd/lib/msun/src/s_ceil.c \ |
| 409 | upstream-freebsd/lib/msun/src/s_ceilf.c \ |
| 410 | upstream-freebsd/lib/msun/src/s_floor.c \ |
| 411 | upstream-freebsd/lib/msun/src/s_floorf.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 412 | upstream-freebsd/lib/msun/src/s_trunc.c \ |
| 413 | upstream-freebsd/lib/msun/src/s_truncf.c \ |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 414 | |
James Rose | 45789b6 | 2014-11-12 12:05:54 -0700 | [diff] [blame] | 415 | endif |
| 416 | |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 417 | # ----------------------------------------------------------------------------- |
| 418 | # x86_64 |
| 419 | # ----------------------------------------------------------------------------- |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 420 | LOCAL_SRC_FILES_x86_64 += \ |
| 421 | amd64/fenv.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 422 | upstream-freebsd/lib/msun/src/s_fma.c \ |
| 423 | upstream-freebsd/lib/msun/src/s_fmaf.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 424 | upstream-freebsd/lib/msun/src/s_llrint.c \ |
| 425 | upstream-freebsd/lib/msun/src/s_llrintf.c \ |
| 426 | upstream-freebsd/lib/msun/src/s_lrint.c \ |
| 427 | upstream-freebsd/lib/msun/src/s_lrintf.c \ |
| 428 | upstream-freebsd/lib/msun/src/s_rint.c \ |
| 429 | upstream-freebsd/lib/msun/src/s_rintf.c \ |
James Rose | 45789b6 | 2014-11-12 12:05:54 -0700 | [diff] [blame] | 430 | x86_64/sqrt.S \ |
| 431 | x86_64/sqrtf.S \ |
Jingwei Zhang | 5d4f0e6 | 2014-10-31 18:29:18 +0800 | [diff] [blame] | 432 | x86_64/e_acos.S \ |
| 433 | x86_64/e_asin.S \ |
| 434 | x86_64/e_atan2.S \ |
| 435 | x86_64/e_cosh.S \ |
| 436 | x86_64/e_exp.S \ |
| 437 | x86_64/e_hypot.S \ |
| 438 | x86_64/e_log10.S \ |
| 439 | x86_64/e_log.S \ |
| 440 | x86_64/e_pow.S \ |
| 441 | x86_64/e_sinh.S \ |
| 442 | x86_64/s_atan.S \ |
| 443 | x86_64/s_cbrt.S \ |
| 444 | x86_64/s_cos.S \ |
| 445 | x86_64/s_expm1.S \ |
| 446 | x86_64/s_log1p.S \ |
| 447 | x86_64/s_sin.S \ |
| 448 | x86_64/s_tanh.S \ |
| 449 | x86_64/s_tan.S \ |
James Rose | 45789b6 | 2014-11-12 12:05:54 -0700 | [diff] [blame] | 450 | |
| 451 | ifeq ($(ARCH_X86_HAVE_SSE4_1),true) |
| 452 | LOCAL_SRC_FILES_x86_64 += \ |
| 453 | x86_64/ceil.S \ |
| 454 | x86_64/ceilf.S \ |
| 455 | x86_64/floor.S \ |
| 456 | x86_64/floorf.S \ |
| 457 | x86_64/trunc.S \ |
| 458 | x86_64/truncf.S \ |
| 459 | |
| 460 | else |
| 461 | LOCAL_SRC_FILES_x86_64 += \ |
| 462 | upstream-freebsd/lib/msun/src/s_ceil.c \ |
| 463 | upstream-freebsd/lib/msun/src/s_ceilf.c \ |
| 464 | upstream-freebsd/lib/msun/src/s_floor.c \ |
| 465 | upstream-freebsd/lib/msun/src/s_floorf.c \ |
Amaury Le Leyzour | 32936c8 | 2015-02-17 15:05:51 -0800 | [diff] [blame] | 466 | upstream-freebsd/lib/msun/src/s_trunc.c \ |
| 467 | upstream-freebsd/lib/msun/src/s_truncf.c \ |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 468 | |
James Rose | 45789b6 | 2014-11-12 12:05:54 -0700 | [diff] [blame] | 469 | endif |
| 470 | |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 471 | LOCAL_C_INCLUDES_x86 += $(LOCAL_PATH)/i387 |
| 472 | |
| 473 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/upstream-freebsd/lib/msun/src/ |
| 474 | LOCAL_C_INCLUDES_64 += $(LOCAL_PATH)/upstream-freebsd/lib/msun/ld128/ |
| 475 | |
Elliott Hughes | 173ad0a | 2015-06-10 22:55:09 -0700 | [diff] [blame] | 476 | LOCAL_CLANG := true |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 477 | LOCAL_ARM_MODE := arm |
| 478 | LOCAL_CFLAGS := \ |
Elliott Hughes | ab61eb3 | 2013-11-20 16:09:06 -0800 | [diff] [blame] | 479 | -DFLT_EVAL_METHOD=0 \ |
Elliott Hughes | ab61eb3 | 2013-11-20 16:09:06 -0800 | [diff] [blame] | 480 | -include $(LOCAL_PATH)/freebsd-compat.h \ |
Elliott Hughes | 9a5a3e8 | 2014-05-05 20:28:28 -0700 | [diff] [blame] | 481 | -Wno-missing-braces \ |
| 482 | -Wno-parentheses \ |
| 483 | -Wno-sign-compare \ |
| 484 | -Wno-uninitialized \ |
Elliott Hughes | 1e83245 | 2014-07-11 01:24:15 +0000 | [diff] [blame] | 485 | -Wno-unknown-pragmas \ |
Elliott Hughes | de9ac71 | 2014-05-19 16:58:52 -0700 | [diff] [blame] | 486 | -fvisibility=hidden \ |
Elliott Hughes | ab61eb3 | 2013-11-20 16:09:06 -0800 | [diff] [blame] | 487 | |
Shu Zhang | 3a629af | 2014-07-23 16:59:22 +0800 | [diff] [blame] | 488 | LOCAL_ASFLAGS := \ |
| 489 | -Ibionic/libc \ |
| 490 | |
Ben Cheng | ff00dc8 | 2014-05-29 16:02:09 -0700 | [diff] [blame] | 491 | # Workaround the GCC "(long)fn -> lfn" optimization bug which will result in |
| 492 | # self recursions for lrint, lrintf, and lrintl. |
| 493 | # BUG: 14225968 |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 494 | LOCAL_CFLAGS += \ |
| 495 | -fno-builtin-rint \ |
| 496 | -fno-builtin-rintf \ |
| 497 | -fno-builtin-rintl \ |
Ben Cheng | ff00dc8 | 2014-05-29 16:02:09 -0700 | [diff] [blame] | 498 | |
Dan Albert | 12e3f22 | 2014-09-30 16:56:43 -0700 | [diff] [blame] | 499 | LOCAL_NATIVE_COVERAGE := $(bionic_coverage) |
Dan Albert | da19478 | 2014-12-18 08:03:49 -0800 | [diff] [blame] | 500 | LOCAL_ADDRESS_SANITIZER := false |
The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 501 | include $(BUILD_STATIC_LIBRARY) |
| 502 | |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 503 | # ----------------------------------------------------------------------------- |
| 504 | # libm.so |
| 505 | # ----------------------------------------------------------------------------- |
The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 506 | include $(CLEAR_VARS) |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 507 | |
Dmitriy Ivanov | 636f5dd | 2015-06-04 18:30:51 -0700 | [diff] [blame^] | 508 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/libm.map |
| 509 | |
Dmitriy Ivanov | 4a55c46 | 2015-03-09 19:38:56 -0700 | [diff] [blame] | 510 | # TODO: This is to work around b/19059885. Remove after root cause is fixed |
Dmitriy Ivanov | 88e777d | 2015-05-08 12:05:47 -0700 | [diff] [blame] | 511 | LOCAL_LDFLAGS_arm := -Wl,--hash-style=both |
Dmitriy Ivanov | 9185e04 | 2015-05-15 17:53:39 -0700 | [diff] [blame] | 512 | LOCAL_LDFLAGS_x86 := -Wl,--hash-style=both |
Dmitriy Ivanov | 4a55c46 | 2015-03-09 19:38:56 -0700 | [diff] [blame] | 513 | |
Dmitriy Ivanov | 636f5dd | 2015-06-04 18:30:51 -0700 | [diff] [blame^] | 514 | LOCAL_LDFLAGS := -Wl,--version-script,$(LOCAL_PATH)/libm.map |
| 515 | |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 516 | LOCAL_MODULE := libm |
Elliott Hughes | 173ad0a | 2015-06-10 22:55:09 -0700 | [diff] [blame] | 517 | LOCAL_CLANG := true |
The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 518 | LOCAL_SYSTEM_SHARED_LIBRARIES := libc |
Elliott Hughes | a0ee078 | 2013-01-30 19:06:37 -0800 | [diff] [blame] | 519 | LOCAL_WHOLE_STATIC_LIBRARIES := libm |
Dan Albert | 71f9b34 | 2014-06-24 04:31:08 +0000 | [diff] [blame] | 520 | |
Dan Albert | 12e3f22 | 2014-09-30 16:56:43 -0700 | [diff] [blame] | 521 | LOCAL_NATIVE_COVERAGE := $(bionic_coverage) |
Dan Albert | da19478 | 2014-12-18 08:03:49 -0800 | [diff] [blame] | 522 | LOCAL_ADDRESS_SANITIZER := false |
Dan Albert | 12e3f22 | 2014-09-30 16:56:43 -0700 | [diff] [blame] | 523 | |
Dan Albert | e91d9cd | 2014-10-16 07:44:47 -0700 | [diff] [blame] | 524 | LOCAL_CXX_STL := none |
| 525 | |
Dan Albert | 71f9b34 | 2014-06-24 04:31:08 +0000 | [diff] [blame] | 526 | # We'd really like to do this for all architectures, but since this wasn't done |
| 527 | # before, these symbols must continue to be exported on LP32 for binary |
| 528 | # compatibility. |
Christopher Ferris | d40d1a0 | 2015-01-22 17:16:33 -0800 | [diff] [blame] | 529 | LOCAL_LDFLAGS_64 := -Wl,--exclude-libs,libgcc.a |
| 530 | |
The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 531 | include $(BUILD_SHARED_LIBRARY) |
Xiaokang, Qin | d97d1ca | 2012-10-21 02:48:43 +0800 | [diff] [blame] | 532 | endif |