1#
2# SPDX-License-Identifier: BSD-3-Clause
3#
4# Copyright © 2022 Keith Packard
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
9#
10# 1. Redistributions of source code must retain the above copyright
11#    notice, this list of conditions and the following disclaimer.
12#
13# 2. Redistributions in binary form must reproduce the above
14#    copyright notice, this list of conditions and the following
15#    disclaimer in the documentation and/or other materials provided
16#    with the distribution.
17#
18# 3. Neither the name of the copyright holder nor the names of its
19#    contributors may be used to endorse or promote products derived
20#    from this software without specific prior written permission.
21#
22# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
27# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
31# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
33# OF THE POSSIBILITY OF SUCH DAMAGE.
34#
35if(_HAVE_LONG_DOUBLE)
36  picolibc_sources(
37    e_acoshl.c
38    e_atanhl.c
39    e_coshl.c
40    e_expl.c
41    e_fmodl.c
42    e_hypotl.c
43    e_lgammal_r.c
44    e_log10l.c
45    e_log2l.c
46    e_logl.c
47    e_powl.c
48    e_sinhl.c
49    e_tgammal.c
50    invtrig.c
51    k_cosl.c
52    k_sinl.c
53    k_tanl.c
54    s_asinhl.c
55    s_ceill.c
56    s_copysignl.c
57    s_erfl.c
58    s_exp2l.c
59    s_expm1l.c
60    s_floorl.c
61    s_log1pl.c
62    s_modfl.c
63    s_nanl.c
64    s_nextafterl.c
65    s_nexttoward.c
66    s_nexttowardf.c
67    s_remquol.c
68    s_tanhl.c
69    s_truncl.c
70    e_acosl.c
71    e_asinl.c
72    e_atan2l.c
73    e_lgammal.c
74    e_remainderl.c
75    e_sqrtl.c
76    k_rem_pio2.c
77    polevll.c
78    s_atanl.c
79    s_ilogbl.c
80    s_cbrtl.c
81    s_cosl.c
82    s_fabsl.c
83    s_fdiml.c
84    s_fmal.c
85    s_fmaxl.c
86    s_fminl.c
87    s_frexpl.c
88    s_isinfl.c
89    s_isnanl.c
90    s_llrintl.c
91    s_llroundl.c
92    s_logbl.c
93    s_lrintl.c
94    s_lroundl.c
95    s_rintl.c
96    s_roundl.c
97    s_scalbln.c
98    s_scalbnl.c
99    s_sincosl.c
100    s_sinl.c
101    s_tanl.c
102    math_errl_check_oflowl.c
103    math_errl_check_uflowl.c
104    math_errl_divzerol.c
105    math_errl_invalidl.c
106    math_errl_oflowl.c
107    math_errl_uflowl.c
108    math_errl_with_errnol.c
109  )
110endif()
111