Updated to fedora-glibc-20050106T1443
[glibc.git] / sysdeps / ia64 / fpu / import_intel_libm
blob752ba37478712be3301f778879024f6d0dc113ea
1 #!/bin/sh
3 # Notes:
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
10 # glibc.
12 libm_dir=$1
14 import_s() {
15 # $1 = name
16 # $2 = source file-name
17 # $3 = destination file-name
18 echo "Importing $1 from $2 -> $3"
19 awk -f import_file.awk FUNC=$1 $2 > $3
22 import_c() {
23 # $1 = name
24 # $2 = source file-name
25 # $3 = destination file-name
26 echo "Importing $1 from $2 -> $3"
27 awk -f import_file.awk LICENSE_ONLY=y $2 > $3
30 do_imports() {
31 while read func_pattern src_file dst_file; do
32 if [ "$(expr $src_file : '.*\(c\)$')" = "c" ]; then
33 import_c "$func_pattern" "$src_file" "$dst_file"
34 else
35 import_s "$func_pattern" "$src_file" "$dst_file"
37 done
40 ./gen_import_file_list $libm_dir > import_file_list
42 do_imports < import_file_list