5 # We don't import copysign finite, fpclassify, isinf, isnan, and signbit
6 # since our own versions are nicer and just as correct and fast (except
7 # perhaps that they don't handle non-finite arguments well?).
9 # Also, leave out cabs for now since it doesn't seem overridable in
16 # $2 = source file-name
17 # $3 = destination file-name
18 echo "Importing $1 from $2 -> $3"
20 awk -f import_file.
awk FUNC
=$1 $2 > $3
25 # $2 = source file-name
26 # $3 = destination file-name
27 echo "Importing $1 from $2 -> $3"
29 awk -f import_file.
awk LICENSE_ONLY
=y
$2 > $3
33 while read func_pattern src_file dst_file
; do
36 import_c
"$func_pattern" "$src_file" "$dst_file"
39 import_s
"$func_pattern" "$src_file" "$dst_file"
45 .
/gen_import_file_list
$libm_dir > import_file_list
47 do_imports
< import_file_list
83 echo "/* Not needed. */" > $f
98 for f
in lgammaf_r.c lgammal_r.c lgamma_r.c
100 import_c
$f $libm_dir/$f e_
$f
103 for f
in lgamma.c lgammaf.c lgammal.c
105 import_c
$f $libm_dir/$f w_
$f