3 while (!
match($
0, "^/[/*] static char cvs_id")) {
8 while (!
match($
0, "^// WARRANTY DISCLAIMER")) {
14 "// Redistribution and use in source and binary forms, with or without\n" \
15 "// modification, are permitted provided that the following conditions are\n" \
18 "// * Redistributions of source code must retain the above copyright\n" \
19 "// notice, this list of conditions and the following disclaimer.\n" \
21 "// * Redistributions in binary form must reproduce the above copyright\n" \
22 "// notice, this list of conditions and the following disclaimer in the\n" \
23 "// documentation and/or other materials provided with the distribution.\n" \
25 "// * The name of Intel Corporation may not be used to endorse or promote\n" \
26 "// products derived from this software without specific prior written\n" \
28 if (LICENSE_ONLY ==
"y") {
39 /^
([a
-zA
-Z_0
-9]*_
(tb
[l0
-9]|Tt
|[tT
]able
|data
|low
|coeffs
|constants
|CONSTANTS
|reduction
|Stirling
)(_?
([1-9cdimpqstPQT
]+|tail
))?
|(Constants
|Poly
|coeff
)_.
+|(double_sin_?cos
|double_cis
)[fl
]?_.
+):/ {
40 table_name=
substr($
1,1,length($
1)-1);
41 printf "LOCAL_OBJECT_START(%s)\n", table_name
;
43 while (!
match($
0, "^[ \t]*data")) {
47 while (match($
0, "(//|^[ \t]*data)")) {
51 printf "LOCAL_OBJECT_END(%s)\n\n", table_name
;
54 /^
[.
]proc
[ \t]+__libm_
(error_region
|callout
)/ {
55 printf "LOCAL_LIBM_ENTRY(%s)\n", $
2;
59 /^
[.
]endp
[ \t]+__libm_
(error_region
|callout
)/ {
60 printf "LOCAL_LIBM_END(%s)\n", $
2;
66 if (match(name
, "^"FUNC
"$")) {
73 if (match(name
, "^"FUNC
"$")) {
80 "atan2|atan2f|atan2l|atanl" \
84 "|exp10|exp10f|exp10l" \
85 "|expm1|expm1f|expm1l" \
87 "|hypot|hypotf|hypotl" \
89 "|floor|floorf|floorl" \
90 "|log1p|log1pf|log1pl" \
91 "|log|log10|log10f|log10l|log2l|logf|logl" \
92 "|remainder|remainderf|remainderl|" \
93 "|rint|rintf|rintl|" \
94 "|scalb|scalbf|scalbl" \
96 "|sincos|sincosf|sincosl" \
101 if (match(name
, ieee754_funcs
)) {
102 type=
"GLOBAL_IEEE754";
103 } else if (match (name
, local_funcs
)) {
108 printf "%s_ENTRY(%s)\n", type
, name
;
110 while (!
match($
0, "^"name
"#?:")) {
114 while (!
match($
0, "^.endp")) {
119 printf "%s_END(%s)\n", type
, name
;
120 if (match(name
, "^exp10[fl]?$")) {
122 printf "weak_alias (exp10%s, pow10%s)\n", t
, t
128 split($
1, part
, ":");
130 if (match(name
, "^"FUNC
"$")) {
131 printf "GLOBAL_LIBM_ENTRY(%s)\n", name
;
133 while (!
match($
0, "^"name
"#?:")) {
137 while (!
match($
0, "^.endp")) {
142 printf "GLOBAL_LIBM_END(%s)\n", name
;