| # Copyright 2019 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| source_set("math") { |
| deps = [ |
| "$zx/third_party/ulib/musl:musl_internal", |
| ] |
| include_dirs = [ "$zx/third_party/ulib/musl/third_party/include" ] |
| sources = [ |
| "__cos.c", |
| "__cosdf.c", |
| "__cosl.c", |
| "__polevll.c", |
| "__rem_pio2.c", |
| "__rem_pio2_large.c", |
| "__rem_pio2f.c", |
| "__rem_pio2l.c", |
| "__sin.c", |
| "__sindf.c", |
| "__sinl.c", |
| "__tan.c", |
| "__tandf.c", |
| "__tanl.c", |
| "acos.c", |
| "acosf.c", |
| "asin.c", |
| "asinf.c", |
| "atan.c", |
| "atan2.c", |
| "atan2f.c", |
| "atanf.c", |
| "cbrt.c", |
| "cbrtf.c", |
| "cbrtl.c", |
| "cos.c", |
| "cosf.c", |
| "erf.c", |
| "erff.c", |
| "erfl.c", |
| "exp.c", |
| "exp2.c", |
| "exp2f.c", |
| "expf.c", |
| "expm1.c", |
| "expm1f.c", |
| "fma.c", |
| "fmaf.c", |
| "fmal.c", |
| "j0.c", |
| "j0f.c", |
| "j1.c", |
| "j1f.c", |
| "jn.c", |
| "jnf.c", |
| "lgamma_r.c", |
| "lgammaf_r.c", |
| "lgammal.c", |
| "log.c", |
| "log10.c", |
| "log10f.c", |
| "log1p.c", |
| "log1pf.c", |
| "log2.c", |
| "log2f.c", |
| "logf.c", |
| "pow.c", |
| "powf.c", |
| "powl.c", |
| "scalb.c", |
| "scalbf.c", |
| "sin.c", |
| "sincos.c", |
| "sincosf.c", |
| "sinf.c", |
| "tan.c", |
| "tanf.c", |
| "tgammal.c", |
| ] |
| if (current_cpu != "x64") { |
| # $zx/third_party/ulib/musl/src/math/x86_64 provides these in assembly. |
| sources += [ |
| "acosl.c", |
| "asinl.c", |
| "atan2l.c", |
| "atanl.c", |
| "exp2l.c", |
| "expl.c", |
| "expm1l.c", |
| "log10l.c", |
| "log1pl.c", |
| "log2l.c", |
| "logl.c", |
| ] |
| } |
| } |