|
Packit Service |
82fcde |
#!/bin/sh
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
libm_dir=$1
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
import() {
|
|
Packit Service |
82fcde |
# $1 = name
|
|
Packit Service |
82fcde |
# $2 = source file-name
|
|
Packit Service |
82fcde |
# $3 = destination file-name
|
|
Packit Service |
82fcde |
echo "$1 $libm_dir/$2 $3"
|
|
Packit Service |
82fcde |
}
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
import_c() {
|
|
Packit Service |
82fcde |
# $1 = name
|
|
Packit Service |
82fcde |
# $2 = source file-name
|
|
Packit Service |
82fcde |
# $3 = destination file-name
|
|
Packit Service |
82fcde |
echo "$1 $libm_dir/$2 $3"
|
|
Packit Service |
82fcde |
}
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
dummy_files="
|
|
Packit Service |
82fcde |
libm_cpu_defs.h
|
|
Packit Service |
82fcde |
libm_error_codes.h
|
|
Packit Service |
82fcde |
libm_support.h
|
|
Packit Service |
82fcde |
libm_error.c
|
|
Packit Service |
82fcde |
"
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
for f in $dummy_files
|
|
Packit Service |
82fcde |
do
|
|
Packit Service |
82fcde |
import_c DUMMY $f $f
|
|
Packit Service |
82fcde |
done
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
import_c scalblnf scalblnf.c s_scalblnf.c
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
for f in acos acosh asin atanh cosh exp2 exp10 fmod log2 pow remainder \
|
|
Packit Service |
82fcde |
scalb sinh sqrt; do
|
|
Packit Service |
82fcde |
for t in "" f l; do
|
|
Packit Service |
82fcde |
import $f$t $f$t.s e_$f$t.S
|
|
Packit Service |
82fcde |
done
|
|
Packit Service |
82fcde |
done
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
for f in atan2 exp; do
|
|
Packit Service |
82fcde |
for t in "" f; do
|
|
Packit Service |
82fcde |
import $f$t $f$t.s e_$f$t.S
|
|
Packit Service |
82fcde |
done
|
|
Packit Service |
82fcde |
done
|
|
Packit Service |
82fcde |
import "atan" atan.s s_atan.S
|
|
Packit Service |
82fcde |
import "atanf" atanf.s s_atanf.S
|
|
Packit Service |
82fcde |
import "atan(2)?l" atanl.s s_atanl.S
|
|
Packit Service |
82fcde |
import "exp(m1)?l" expl_m1.s s_expm1l.S
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
for t in "" f l; do
|
|
Packit Service |
82fcde |
import "log(10)?$t" log$t.s e_log$t.S
|
|
Packit Service |
82fcde |
import tgamma$t tgamma$t.s w_tgamma$t.S
|
|
Packit Service |
82fcde |
import "(hypot|cabs)$t" hypot$t.s e_hypot$t.S
|
|
Packit Service |
82fcde |
done
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
for f in asinh cbrt ceil erf erfc fabs floor \
|
|
Packit Service |
82fcde |
ilogb log1p logb modf nearbyint nextafter nexttoward \
|
|
Packit Service |
82fcde |
rint round significand fdim fma fmax tanh trunc; do
|
|
Packit Service |
82fcde |
for t in "" f l; do
|
|
Packit Service |
82fcde |
import $f$t $f$t.s s_$f$t.S
|
|
Packit Service |
82fcde |
done
|
|
Packit Service |
82fcde |
done
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
for t in "" f l; do
|
|
Packit Service |
82fcde |
import "(tan|cot)$t" tancot$t.s s_tan$t.S
|
|
Packit Service |
82fcde |
done
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
for t in "" f l; do
|
|
Packit Service |
82fcde |
import "(sin|cos)$t" sincos$t.s s_cos$t.S
|
|
Packit Service |
82fcde |
import_c frexp$t frexp$t.c s_frexp$t.c
|
|
Packit Service |
82fcde |
import_c ldexp$t ldexp$t.c s_ldexp$t.c
|
|
Packit Service |
82fcde |
import_c scalbn$t scalbn$t.c s_scalbn$t.c
|
|
Packit Service |
82fcde |
done
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
import expm1 exp_m1.s s_expm1.S
|
|
Packit Service |
82fcde |
import expm1f expf_m1.s s_expm1f.S
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
for f in frexp frexpf frexpl reduce; do
|
|
Packit Service |
82fcde |
import __libm_$f libm_$f.s libm_$f.S
|
|
Packit Service |
82fcde |
done
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
for t in "" f l; do
|
|
Packit Service |
82fcde |
import __libm_ldexp$t libm_ldexp$t.s s_libm_ldexp$t.S
|
|
Packit Service |
82fcde |
import "(__libm_)?(sincos|cis)$t" libm_sincos$t.s libm_sincos$t.S
|
|
Packit Service |
82fcde |
import __libm_lgamma$t libm_lgamma$t.s libm_lgamma$t.S
|
|
Packit Service |
82fcde |
import __libm_scalbn$t libm_scalbn$t.s s_libm_scalbn$t.S
|
|
Packit Service |
82fcde |
done
|
|
Packit Service |
82fcde |
import __libm_scalblnf libm_scalblnf.s libm_scalblnf.S
|
|
Packit Service |
82fcde |
import "__libm_(sin|cos|sincos)_large" libm_sincos_large.s \
|
|
Packit Service |
82fcde |
libm_sincos_large.S
|