3 while (!
match($
0, "^/[/*] static char cvs_id")) {
8 while (!
match($
0, "^// WARRANTY DISCLAIMER")) {
17 "// Redistribution and use in source and binary forms, with or without\n" \
18 "// modification, are permitted provided that the following conditions are\n" \
21 "// * Redistributions of source code must retain the above copyright\n" \
22 "// notice, this list of conditions and the following disclaimer.\n" \
24 "// * Redistributions in binary form must reproduce the above copyright\n" \
25 "// notice, this list of conditions and the following disclaimer in the\n" \
26 "// documentation and/or other materials provided with the distribution.\n" \
28 "// * The name of Intel Corporation may not be used to endorse or promote\n" \
29 "// products derived from this software without specific prior written\n" \
31 if (LICENSE_ONLY ==
"y") {
43 /^
([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
]?_.
+):/ {
44 table_name=
substr($
1,1,length($
1)-1);
45 printf "LOCAL_OBJECT_START(%s)\n", table_name
;
47 while (!
match($
0, "^[ \t]*data")) {
51 while (match($
0, "(//|^[ \t]*data)")) {
55 printf "LOCAL_OBJECT_END(%s)\n\n", table_name
;
58 /^
[.
]proc
[ \t]+__libm_
(error_region
|callout
)/ {
59 printf "LOCAL_LIBM_ENTRY(%s)\n", $
2;
63 /^
[.
]endp
[ \t]+__libm_
(error_region
|callout
)/ {
64 printf "LOCAL_LIBM_END(%s)\n", $
2;
70 if (match(name
, "^"FUNC
"$")) {
77 if (match(name
, "^"FUNC
"$")) {
84 "atan2|atan2f|atan2l|atanl" \
88 "|exp10|exp10f|exp10l" \
89 "|expm1|expm1f|expm1l" \
91 "|hypot|hypotf|hypotl" \
93 "|floor|floorf|floorl" \
94 "|log1p|log1pf|log1pl" \
95 "|log|log10|log10f|log10l|log2l|logf|logl" \
96 "|remainder|remainderf|remainderl|" \
97 "|rint|rintf|rintl|" \
98 "|scalb|scalbf|scalbl" \
100 "|sincos|sincosf|sincosl" \
101 "|sinh|sinhf|sinhl" \
102 "|sqrt|sqrtf|sqrtl" \
105 if (match(name
, ieee754_funcs
)) {
106 type=
"GLOBAL_IEEE754";
107 } else if (match (name
, local_funcs
)) {
112 printf "%s_ENTRY(%s)\n", type
, name
;
114 while (!
match($
0, "^"name
"#?:")) {
118 while (!
match($
0, "^.endp")) {
122 printf "%s_END(%s)\n", type
, name
;
123 if (match(name
, "^exp10[fl]?$")) {
125 printf "weak_alias (exp10%s, pow10%s)\n", t
, t
131 split($
1, part
, ":");
133 if (match(name
, "^"FUNC
"$")) {
134 printf "GLOBAL_LIBM_ENTRY(%s)\n", name
;
136 while (!
match($
0, "^"name
"#?:")) {
140 while (!
match($
0, "^.endp")) {
145 printf "GLOBAL_LIBM_END(%s)\n", name
;