5 BASE_URL
=https
://raw.githubusercontent.com
/freebsd
/freebsd-src
/"${1}"/lib
/msun
/src
11 curl
-o "src/${LOCAL_FILENAME}" "${BASE_URL}/${REMOTE_FILENAME}" && break
18 download_source math.h fdlibm.h
19 download_source math_private.h math_private.h
22 download_source e_acos.c e_acos.cpp
25 download_source e_acosh.c e_acosh.cpp
28 download_source e_asin.c e_asin.cpp
31 download_source s_asinh.c s_asinh.cpp
34 download_source s_atan.c s_atan.cpp
37 download_source e_atanh.c e_atanh.cpp
40 download_source e_atan2.c e_atan2.cpp
43 download_source s_cbrt.c s_cbrt.cpp
46 download_source s_ceil.c s_ceil.cpp
47 download_source s_ceilf.c s_ceilf.cpp
50 download_source s_cos.c s_cos.cpp
51 download_source k_cos.c k_cos.cpp
54 download_source e_cosh.c e_cosh.cpp
57 download_source e_exp.c e_exp.cpp
60 download_source s_expm1.c s_expm1.cpp
62 # Math.floor and Math.round
63 download_source s_floor.c s_floor.cpp
66 download_source s_floorf.c s_floorf.cpp
69 download_source e_hypot.c e_hypot.cpp
72 download_source e_log.c e_log.cpp
75 download_source s_log1p.c s_log1p.cpp
78 download_source e_log10.c e_log10.cpp
79 download_source k_log.h k_log.h
82 download_source e_log2.c e_log2.cpp
84 # Math.pow (not used due to poor performance)
87 download_source s_sin.c s_sin.cpp
88 download_source k_sin.c k_sin.cpp
91 download_source e_sinh.c e_sinh.cpp
93 # Math.sqrt (not used due to poor performance)
96 download_source s_tan.c s_tan.cpp
97 download_source k_tan.c k_tan.cpp
100 download_source s_tanh.c s_tanh.cpp
103 download_source s_trunc.c s_trunc.cpp
104 download_source s_truncf.c s_truncf.cpp
107 download_source e_rem_pio2.c e_rem_pio2.cpp
108 download_source k_rem_pio2.c k_rem_pio2.cpp
109 download_source k_exp.c k_exp.cpp
110 download_source s_copysign.c s_copysign.cpp
111 download_source s_fabs.c s_fabs.cpp
112 download_source s_scalbn.c s_scalbn.cpp
114 # These are not not used in Math.* functions, but used internally.
115 download_source e_pow.c e_pow.cpp
117 download_source s_nearbyint.c s_nearbyint.cpp
118 download_source s_rint.c s_rint.cpp
119 download_source s_rintf.c s_rintf.cpp