Print this page
11210 libm should be cstyle(1ONBLD) clean
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libm/common/C/libm_protos.h
+++ new/usr/src/lib/libm/common/C/libm_protos.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
↓ open down ↓ |
10 lines elided |
↑ open up ↑ |
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 +
21 22 /*
22 23 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
23 24 */
25 +
24 26 /*
25 27 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
26 28 * Use is subject to license terms.
27 29 */
28 30
29 31 #ifndef _C_LIBM_PROTOS_H
30 32 #define _C_LIBM_PROTOS_H
31 33
32 34 /*
33 35 * Many symbols used to be namespaced with __libm to prevent collisions. All
34 36 * but these two were otherwise scoped local and directly bound, so that
35 37 * collision could not occur.
36 38 *
37 39 * For reasons unknown, these two are global (but private).
38 40 */
39 -#define __rem_pio2 __libm__rem_pio2
40 -#define __rem_pio2m __libm__rem_pio2m
41 +#define __rem_pio2 __libm__rem_pio2
42 +#define __rem_pio2m __libm__rem_pio2m
41 43
42 44 #ifndef _ASM
43 45 #ifdef __STDC__
44 -#define __P(p) p
46 +#define __P(p) p
45 47 #else
46 -#define __P(p) ()
48 +#define __P(p) ()
47 49 #endif
48 50
49 51 #include <sys/ieeefp.h>
50 52
51 53 extern double _SVID_libm_err __P((double, double, int));
52 54 extern double __k_cos __P((double, double));
53 55 extern double __k_cos_ __P((double *));
54 56 extern double __k_lgamma __P((double, int *));
55 57 extern double __k_sin __P((double, double));
56 58 extern double __k_sin_ __P((double *));
57 59 extern double __k_sincos __P((double, double, double *));
58 60 extern double __k_sincos_ __P((double *, double *));
59 61 extern double __k_tan __P((double, double, int));
60 62 extern double __k_cexp __P((double, int *));
61 63 extern long double __k_cexpl __P((long double, int *));
62 64 extern double __k_clog_r __P((double, double, double *));
63 65 extern long double __k_clog_rl __P((long double, long double, long double *));
64 66 extern double __k_atan2 __P((double, double, double *));
65 67 extern long double __k_atan2l __P((long double, long double, long double *));
66 68 extern int __rem_pio2 __P((double, double *));
67 69 extern int __rem_pio2m __P((double *, double *, int, int, int, const int *));
68 70
69 71 /*
70 72 * entry points that are in-lined
71 73 */
72 74 extern double copysign __P((double, double));
73 75 extern int finite __P((double));
74 76 extern enum fp_class_type fp_class __P((double));
75 77 extern double infinity __P((void));
76 78 extern int isinf __P((double));
77 79 extern int signbit __P((double));
78 80
79 81 /*
80 82 * new C99 entry points
81 83 */
82 84 extern double fdim __P((double, double));
83 85 extern double fma __P((double, double, double));
84 86 extern double fmax __P((double, double));
85 87 extern double fmin __P((double, double));
86 88 extern double frexp __P((double, int *));
87 89 extern double ldexp __P((double, int));
88 90 extern double modf __P((double, double *));
89 91 extern double nan __P((const char *));
90 92 extern double nearbyint __P((double));
91 93 extern double nexttoward __P((double, long double));
92 94 extern double remquo __P((double, double, int *));
93 95 extern double round __P((double));
94 96 extern double scalbln __P((double, long int));
95 97 extern double tgamma __P((double));
96 98 extern double trunc __P((double));
97 99 extern float fdimf __P((float, float));
98 100 extern float fmaf __P((float, float, float));
99 101 extern float fmaxf __P((float, float));
100 102 extern float fminf __P((float, float));
101 103 extern float frexpf __P((float, int *));
102 104 extern float ldexpf __P((float, int));
103 105 extern float modff __P((float, float *));
104 106 extern float nanf __P((const char *));
105 107 extern float nearbyintf __P((float));
106 108 extern float nextafterf __P((float, float));
107 109 extern float nexttowardf __P((float, long double));
108 110 extern float remquof __P((float, float, int *));
109 111 extern float roundf __P((float));
110 112 extern float scalblnf __P((float, long int));
111 113 extern float tgammaf __P((float));
112 114 extern float truncf __P((float));
113 115 extern long double frexpl(long double, int *);
114 116 extern long double fdiml __P((long double, long double));
115 117 extern long double fmal __P((long double, long double, long double));
116 118 extern long double fmaxl __P((long double, long double));
117 119 extern long double fminl __P((long double, long double));
118 120 extern long double ldexpl __P((long double, int));
119 121 extern long double modfl __P((long double, long double *));
120 122 extern long double nanl __P((const char *));
121 123 extern long double nearbyintl __P((long double));
122 124 extern long double nextafterl __P((long double, long double));
123 125 extern long double nexttowardl __P((long double, long double));
124 126 extern long double remquol __P((long double, long double, int *));
125 127 extern long double roundl __P((long double));
126 128 extern long double scalblnl __P((long double, long int));
127 129 extern long double tgammal __P((long double));
128 130 extern long double truncl __P((long double));
129 131 extern long int lrint __P((double));
130 132 extern long int lrintf __P((float));
↓ open down ↓ |
74 lines elided |
↑ open up ↑ |
131 133 extern long int lrintl __P((long double));
132 134 extern long int lround __P((double));
133 135 extern long int lroundf __P((float));
134 136 extern long int lroundl __P((long double));
135 137 extern long long int llrint __P((double));
136 138 extern long long int llrintf __P((float));
137 139 extern long long int llrintl __P((long double));
138 140 extern long long int llround __P((double));
139 141 extern long long int llroundf __P((float));
140 142 extern long long int llroundl __P((long double));
141 -#endif /* _ASM */
142 -
143 -#endif /* _C_LIBM_PROTOS_H */
143 +#endif /* _ASM */
144 +#endif /* _C_LIBM_PROTOS_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX