Print this page
5261 libm should stop using synonyms.h
5298 fabs is 0-sized, confuses dis(1) and others
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Gordon Ross <gwr@nexenta.com>
5262 libm needs to be carefully unifdef'd
5268 libm doesn't need to hide symbols which are already local
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Gordon Ross <gwr@nexenta.com>
Approved by: Gordon Ross <gwr@nexenta.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libmvec/Makefile.com
+++ new/usr/src/lib/libmvec/Makefile.com
1 1 #
2 2 # This file and its contents are supplied under the terms of the
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 #
13 13 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
14 14 #
15 15
16 16 LIBMDIR = $(SRC)/lib/libm
17 17
18 18 mvecOBJS = \
19 19 __vTBL_atan1.o \
20 20 __vTBL_atan2.o \
21 21 __vTBL_rsqrt.o \
22 22 __vTBL_sincos.o \
23 23 __vTBL_sincos2.o \
24 24 __vTBL_sqrtf.o \
25 25 __vatan.o \
26 26 __vatan2.o \
27 27 __vatan2f.o \
28 28 __vatanf.o \
29 29 __vc_abs.o \
30 30 __vc_exp.o \
31 31 __vc_log.o \
32 32 __vc_pow.o \
33 33 __vcos.o \
34 34 __vcosbig.o \
35 35 __vcosbigf.o \
36 36 __vcosf.o \
37 37 __vexp.o \
38 38 __vexpf.o \
39 39 __vhypot.o \
40 40 __vhypotf.o \
41 41 __vlog.o \
42 42 __vlogf.o \
43 43 __vpow.o \
44 44 __vpowf.o \
45 45 __vrem_pio2m.o \
46 46 __vrhypot.o \
47 47 __vrhypotf.o \
48 48 __vrsqrt.o \
49 49 __vrsqrtf.o \
50 50 __vsin.o \
51 51 __vsinbig.o \
52 52 __vsinbigf.o \
53 53 __vsincos.o \
54 54 __vsincosbig.o \
55 55 __vsincosbigf.o \
56 56 __vsincosf.o \
57 57 __vsinf.o \
58 58 __vsqrt.o \
59 59 __vsqrtf.o \
60 60 __vz_abs.o \
61 61 __vz_exp.o \
62 62 __vz_log.o \
63 63 __vz_pow.o \
64 64 vatan2_.o \
65 65 vatan2f_.o \
66 66 vatan_.o \
67 67 vatanf_.o \
68 68 vc_abs_.o \
69 69 vc_exp_.o \
70 70 vc_log_.o \
71 71 vc_pow_.o \
72 72 vcos_.o \
73 73 vcosf_.o \
74 74 vexp_.o \
75 75 vexpf_.o \
76 76 vhypot_.o \
77 77 vhypotf_.o \
78 78 vlog_.o \
79 79 vlogf_.o \
80 80 vpow_.o \
81 81 vpowf_.o \
82 82 vrhypot_.o \
83 83 vrhypotf_.o \
84 84 vrsqrt_.o \
↓ open down ↓ |
84 lines elided |
↑ open up ↑ |
85 85 vrsqrtf_.o \
86 86 vsin_.o \
87 87 vsincos_.o \
88 88 vsincosf_.o \
89 89 vsinf_.o \
90 90 vsqrt_.o \
91 91 vsqrtf_.o \
92 92 vz_abs_.o \
93 93 vz_exp_.o \
94 94 vz_log_.o \
95 - vz_pow_.o \
96 - #end
95 + vz_pow_.o
97 96
98 97 mvecvisCOBJS = \
99 98 __vTBL_atan1.o \
100 99 __vTBL_atan2.o \
101 100 __vTBL_rsqrt.o \
102 101 __vTBL_sincos.o \
103 102 __vTBL_sincos2.o \
104 103 __vTBL_sqrtf.o \
105 104 __vcosbig.o \
106 105 __vcosbigf.o \
107 106 __vrem_pio2m.o \
108 107 __vsinbig.o \
109 108 __vsinbigf.o \
110 109 __vsincosbig.o \
111 - __vsincosbigf.o \
112 - #end
110 + __vsincosbigf.o
113 111
114 112 mvecvisSOBJS = \
115 113 __vatan.o \
116 114 __vatan2.o \
117 115 __vatan2f.o \
118 116 __vatanf.o \
119 117 __vcos.o \
120 118 __vcosf.o \
121 119 __vexp.o \
122 120 __vexpf.o \
123 121 __vhypot.o \
124 122 __vhypotf.o \
125 123 __vlog.o \
126 124 __vlogf.o \
127 125 __vpow.o \
↓ open down ↓ |
5 lines elided |
↑ open up ↑ |
128 126 __vpowf.o \
129 127 __vrhypot.o \
130 128 __vrhypotf.o \
131 129 __vrsqrt.o \
132 130 __vrsqrtf.o \
133 131 __vsin.o \
134 132 __vsincos.o \
135 133 __vsincosf.o \
136 134 __vsinf.o \
137 135 __vsqrt.o \
138 - __vsqrtf.o \
139 - #end
136 + __vsqrtf.o
140 137
141 138 mvecvis2COBJS = \
142 139 __vTBL_sincos.o \
143 140 __vTBL_sincos2.o \
144 141 __vTBL_sqrtf.o \
145 142 __vcosbig.o \
146 143 __vcosbig_ultra3.o \
147 144 __vrem_pio2m.o \
148 145 __vsinbig.o \
149 - __vsinbig_ultra3.o \
150 - #end
146 + __vsinbig_ultra3.o
151 147
152 148 mvecvis2SOBJS = \
153 149 __vcos_ultra3.o \
154 150 __vlog_ultra3.o \
155 151 __vsin_ultra3.o \
156 - __vsqrtf_ultra3.o \
157 - #end
152 + __vsqrtf_ultra3.o
158 153
159 154 include $(SRC)/lib/Makefile.lib
160 155 include $(SRC)/lib/Makefile.rootfs
161 156 include $(LIBMDIR)/Makefile.libm.com
162 157
163 158 LIBS = $(DYNLIB)
164 159 SRCDIR = ../common/
165 -DYNFLAGS += -zignore
160 +DYNFLAGS += $(ZIGNORE)
166 161
167 162 LINTERROFF = -erroff=E_FP_DIVISION_BY_ZERO
168 163 LINTERROFF += -erroff=E_FP_INVALID
169 164 LINTERROFF += -erroff=E_BAD_PTR_CAST_ALIGN
170 165 LINTERROFF += -erroff=E_ASSIGMENT_CAUSE_LOSS_PREC
171 166 LINTERROFF += -erroff=E_FUNC_SET_NOT_USED
172 167
173 168 LINTFLAGS += $(LINTERROFF)
174 169 LINTFLAGS64 += $(LINTERROFF)
175 170 LINTFLAGS64 += -errchk=longptr64
176 171
177 172 CLAGS += $(LINTERROFF)
178 173 CFLAGS64 += $(LINTERROFF)
179 174
180 -ASDEF += -DLIBMVEC_SO_BUILD
181 -
182 175 FLTRPATH_sparc = $$ORIGIN/cpu/$$ISALIST/libmvec_isa.so.1
183 176 FLTRPATH_sparcv9 = $$ORIGIN/../cpu/$$ISALIST/sparcv9/libmvec_isa.so.1
184 177 FLTRPATH_i386 = $$ORIGIN/libmvec/$$HWCAP
185 178 FLTRPATH = $(FLTRPATH_$(TARGET_ARCH))
186 179
187 180 sparc_CFLAGS += -_cc=-W0,-xintrinsic
188 181 sparcv9_CFLAGS += -_cc=-W0,-xintrinsic
189 182 CPPFLAGS_i386 += -Dfabs=__fabs
190 183
191 -CPPFLAGS += -DLIBMVEC_SO_BUILD
184 +SRCS_mvec_i386 = ../common/__vsqrtf.c
185 +
186 +SRCS_mvec_sparc = $(SRCS_mvec_i386)
187 +
188 +SRCS_mvec_sparcv9 = $(SRCS_mvec_i386)
192 189
193 -SRCS_mvec_i386 = \
194 - ../common/__vsqrtf.c \
195 - #end
196 -
197 -SRCS_mvec_sparc = \
198 - $(SRCS_mvec_i386) \
199 - #end
200 -SRCS_mvec_sparcv9 = \
201 - $(SRCS_mvec_i386) \
202 - #end
203 190
204 191 SRCS_mvec = \
205 192 $(SRCS_mvec_$(TARGETMACH)) \
206 193 ../common/__vTBL_atan1.c \
207 194 ../common/__vTBL_atan2.c \
208 195 ../common/__vTBL_rsqrt.c \
209 196 ../common/__vTBL_sincos.c \
210 197 ../common/__vTBL_sincos2.c \
211 198 ../common/__vTBL_sqrtf.c \
212 199 ../common/__vatan.c \
213 200 ../common/__vatan2.c \
214 201 ../common/__vatan2f.c \
215 202 ../common/__vatanf.c \
216 203 ../common/__vc_abs.c \
217 204 ../common/__vc_exp.c \
218 205 ../common/__vc_log.c \
219 206 ../common/__vc_pow.c \
220 207 ../common/__vcos.c \
221 208 ../common/__vcosbig.c \
222 209 ../common/__vcosbigf.c \
223 210 ../common/__vcosf.c \
224 211 ../common/__vexp.c \
225 212 ../common/__vexpf.c \
226 213 ../common/__vhypot.c \
227 214 ../common/__vhypotf.c \
228 215 ../common/__vlog.c \
229 216 ../common/__vlogf.c \
230 217 ../common/__vpow.c \
231 218 ../common/__vpowf.c \
232 219 ../common/__vrem_pio2m.c \
233 220 ../common/__vrhypot.c \
234 221 ../common/__vrhypotf.c \
235 222 ../common/__vrsqrt.c \
236 223 ../common/__vrsqrtf.c \
237 224 ../common/__vsin.c \
238 225 ../common/__vsinbig.c \
239 226 ../common/__vsinbigf.c \
240 227 ../common/__vsincos.c \
241 228 ../common/__vsincosbig.c \
242 229 ../common/__vsincosbigf.c \
243 230 ../common/__vsincosf.c \
244 231 ../common/__vsinf.c \
245 232 ../common/__vsqrt.c \
246 233 ../common/__vz_abs.c \
247 234 ../common/__vz_exp.c \
248 235 ../common/__vz_log.c \
249 236 ../common/__vz_pow.c \
250 237 ../common/vatan2_.c \
251 238 ../common/vatan2f_.c \
252 239 ../common/vatan_.c \
253 240 ../common/vatanf_.c \
254 241 ../common/vc_abs_.c \
255 242 ../common/vc_exp_.c \
256 243 ../common/vc_log_.c \
257 244 ../common/vc_pow_.c \
258 245 ../common/vcos_.c \
259 246 ../common/vcosf_.c \
260 247 ../common/vexp_.c \
261 248 ../common/vexpf_.c \
262 249 ../common/vhypot_.c \
263 250 ../common/vhypotf_.c \
264 251 ../common/vlog_.c \
265 252 ../common/vlogf_.c \
266 253 ../common/vpow_.c \
267 254 ../common/vpowf_.c \
268 255 ../common/vrhypot_.c \
269 256 ../common/vrhypotf_.c \
270 257 ../common/vrsqrt_.c \
↓ open down ↓ |
58 lines elided |
↑ open up ↑ |
271 258 ../common/vrsqrtf_.c \
272 259 ../common/vsin_.c \
273 260 ../common/vsincos_.c \
274 261 ../common/vsincosf_.c \
275 262 ../common/vsinf_.c \
276 263 ../common/vsqrt_.c \
277 264 ../common/vsqrtf_.c \
278 265 ../common/vz_abs_.c \
279 266 ../common/vz_exp_.c \
280 267 ../common/vz_log_.c \
281 - ../common/vz_pow_.c \
282 - #end
268 + ../common/vz_pow_.c
283 269
284 270 .KEEP_STATE:
285 271
286 272 all: $(LIBS)
287 273
288 274 lint: lintcheck
289 275
290 276 pics/%.o: ../$(TARGET_ARCH)/src/%.S
291 277 $(COMPILE.s) -o $@ $<
292 278 $(POST_PROCESS_O)
293 279
294 280 pics/%.o: ../common/$$(CHIP)/%.S
295 281 $(COMPILE.s) -o $@ $<
296 282 $(POST_PROCESS_O)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX