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