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>


  75                 vexpf_.o \
  76                 vhypot_.o \
  77                 vhypotf_.o \
  78                 vlog_.o \
  79                 vlogf_.o \
  80                 vpow_.o \
  81                 vpowf_.o \
  82                 vrhypot_.o \
  83                 vrhypotf_.o \
  84                 vrsqrt_.o \
  85                 vrsqrtf_.o \
  86                 vsin_.o \
  87                 vsincos_.o \
  88                 vsincosf_.o \
  89                 vsinf_.o \
  90                 vsqrt_.o \
  91                 vsqrtf_.o \
  92                 vz_abs_.o \
  93                 vz_exp_.o \
  94                 vz_log_.o \
  95                 vz_pow_.o \
  96                 #end
  97 
  98 mvecvisCOBJS    = \
  99                 __vTBL_atan1.o \
 100                 __vTBL_atan2.o \
 101                 __vTBL_rsqrt.o \
 102                 __vTBL_sincos.o \
 103                 __vTBL_sincos2.o \
 104                 __vTBL_sqrtf.o \
 105                 __vcosbig.o \
 106                 __vcosbigf.o \
 107                 __vrem_pio2m.o \
 108                 __vsinbig.o \
 109                 __vsinbigf.o \
 110                 __vsincosbig.o \
 111                 __vsincosbigf.o \
 112                 #end
 113 
 114 mvecvisSOBJS    = \
 115                 __vatan.o \
 116                 __vatan2.o \
 117                 __vatan2f.o \
 118                 __vatanf.o \
 119                 __vcos.o \
 120                 __vcosf.o \
 121                 __vexp.o \
 122                 __vexpf.o \
 123                 __vhypot.o \
 124                 __vhypotf.o \
 125                 __vlog.o \
 126                 __vlogf.o \
 127                 __vpow.o \
 128                 __vpowf.o \
 129                 __vrhypot.o \
 130                 __vrhypotf.o \
 131                 __vrsqrt.o \
 132                 __vrsqrtf.o \
 133                 __vsin.o \
 134                 __vsincos.o \
 135                 __vsincosf.o \
 136                 __vsinf.o \
 137                 __vsqrt.o \
 138                 __vsqrtf.o \
 139                 #end
 140 
 141 mvecvis2COBJS   = \
 142                 __vTBL_sincos.o \
 143                 __vTBL_sincos2.o \
 144                 __vTBL_sqrtf.o \
 145                 __vcosbig.o \
 146                 __vcosbig_ultra3.o \
 147                 __vrem_pio2m.o \
 148                 __vsinbig.o \
 149                 __vsinbig_ultra3.o \
 150                 #end
 151 
 152 mvecvis2SOBJS   = \
 153                 __vcos_ultra3.o \
 154                 __vlog_ultra3.o \
 155                 __vsin_ultra3.o \
 156                 __vsqrtf_ultra3.o \
 157                 #end
 158 
 159 include         $(SRC)/lib/Makefile.lib
 160 include         $(SRC)/lib/Makefile.rootfs
 161 include         $(LIBMDIR)/Makefile.libm.com
 162 
 163 LIBS            = $(DYNLIB)
 164 SRCDIR          = ../common/
 165 DYNFLAGS        += -zignore
 166 
 167 LINTERROFF      = -erroff=E_FP_DIVISION_BY_ZERO 
 168 LINTERROFF      += -erroff=E_FP_INVALID
 169 LINTERROFF      += -erroff=E_BAD_PTR_CAST_ALIGN
 170 LINTERROFF      += -erroff=E_ASSIGMENT_CAUSE_LOSS_PREC
 171 LINTERROFF      += -erroff=E_FUNC_SET_NOT_USED
 172 
 173 LINTFLAGS       += $(LINTERROFF)
 174 LINTFLAGS64     += $(LINTERROFF)
 175 LINTFLAGS64     += -errchk=longptr64
 176 
 177 CLAGS           += $(LINTERROFF)
 178 CFLAGS64        += $(LINTERROFF)
 179 
 180 ASDEF           += -DLIBMVEC_SO_BUILD
 181 
 182 FLTRPATH_sparc          = $$ORIGIN/cpu/$$ISALIST/libmvec_isa.so.1
 183 FLTRPATH_sparcv9        = $$ORIGIN/../cpu/$$ISALIST/sparcv9/libmvec_isa.so.1
 184 FLTRPATH_i386           = $$ORIGIN/libmvec/$$HWCAP
 185 FLTRPATH                = $(FLTRPATH_$(TARGET_ARCH))
 186 
 187 sparc_CFLAGS += -_cc=-W0,-xintrinsic
 188 sparcv9_CFLAGS += -_cc=-W0,-xintrinsic
 189 CPPFLAGS_i386   += -Dfabs=__fabs
 190 
 191 CPPFLAGS        += -DLIBMVEC_SO_BUILD




 192 
 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 
 204 SRCS_mvec = \
 205         $(SRCS_mvec_$(TARGETMACH)) \
 206         ../common/__vTBL_atan1.c \
 207         ../common/__vTBL_atan2.c \
 208         ../common/__vTBL_rsqrt.c \
 209         ../common/__vTBL_sincos.c \
 210         ../common/__vTBL_sincos2.c \
 211         ../common/__vTBL_sqrtf.c \
 212         ../common/__vatan.c \
 213         ../common/__vatan2.c \
 214         ../common/__vatan2f.c \
 215         ../common/__vatanf.c \
 216         ../common/__vc_abs.c \
 217         ../common/__vc_exp.c \
 218         ../common/__vc_log.c \
 219         ../common/__vc_pow.c \
 220         ../common/__vcos.c \
 221         ../common/__vcosbig.c \
 222         ../common/__vcosbigf.c \


 261         ../common/vexpf_.c \
 262         ../common/vhypot_.c \
 263         ../common/vhypotf_.c \
 264         ../common/vlog_.c \
 265         ../common/vlogf_.c \
 266         ../common/vpow_.c \
 267         ../common/vpowf_.c \
 268         ../common/vrhypot_.c \
 269         ../common/vrhypotf_.c \
 270         ../common/vrsqrt_.c \
 271         ../common/vrsqrtf_.c \
 272         ../common/vsin_.c \
 273         ../common/vsincos_.c \
 274         ../common/vsincosf_.c \
 275         ../common/vsinf_.c \
 276         ../common/vsqrt_.c \
 277         ../common/vsqrtf_.c \
 278         ../common/vz_abs_.c \
 279         ../common/vz_exp_.c \
 280         ../common/vz_log_.c \
 281         ../common/vz_pow_.c \
 282         #end
 283 
 284 .KEEP_STATE:
 285 
 286 all:    $(LIBS)
 287 
 288 lint:   lintcheck
 289 
 290 pics/%.o: ../$(TARGET_ARCH)/src/%.S
 291         $(COMPILE.s) -o $@ $<
 292         $(POST_PROCESS_O)
 293 
 294 pics/%.o: ../common/$$(CHIP)/%.S
 295         $(COMPILE.s) -o $@ $<
 296         $(POST_PROCESS_O)


  75                 vexpf_.o \
  76                 vhypot_.o \
  77                 vhypotf_.o \
  78                 vlog_.o \
  79                 vlogf_.o \
  80                 vpow_.o \
  81                 vpowf_.o \
  82                 vrhypot_.o \
  83                 vrhypotf_.o \
  84                 vrsqrt_.o \
  85                 vrsqrtf_.o \
  86                 vsin_.o \
  87                 vsincos_.o \
  88                 vsincosf_.o \
  89                 vsinf_.o \
  90                 vsqrt_.o \
  91                 vsqrtf_.o \
  92                 vz_abs_.o \
  93                 vz_exp_.o \
  94                 vz_log_.o \
  95                 vz_pow_.o

  96 
  97 mvecvisCOBJS    = \
  98                 __vTBL_atan1.o \
  99                 __vTBL_atan2.o \
 100                 __vTBL_rsqrt.o \
 101                 __vTBL_sincos.o \
 102                 __vTBL_sincos2.o \
 103                 __vTBL_sqrtf.o \
 104                 __vcosbig.o \
 105                 __vcosbigf.o \
 106                 __vrem_pio2m.o \
 107                 __vsinbig.o \
 108                 __vsinbigf.o \
 109                 __vsincosbig.o \
 110                 __vsincosbigf.o

 111 
 112 mvecvisSOBJS    = \
 113                 __vatan.o \
 114                 __vatan2.o \
 115                 __vatan2f.o \
 116                 __vatanf.o \
 117                 __vcos.o \
 118                 __vcosf.o \
 119                 __vexp.o \
 120                 __vexpf.o \
 121                 __vhypot.o \
 122                 __vhypotf.o \
 123                 __vlog.o \
 124                 __vlogf.o \
 125                 __vpow.o \
 126                 __vpowf.o \
 127                 __vrhypot.o \
 128                 __vrhypotf.o \
 129                 __vrsqrt.o \
 130                 __vrsqrtf.o \
 131                 __vsin.o \
 132                 __vsincos.o \
 133                 __vsincosf.o \
 134                 __vsinf.o \
 135                 __vsqrt.o \
 136                 __vsqrtf.o

 137 
 138 mvecvis2COBJS   = \
 139                 __vTBL_sincos.o \
 140                 __vTBL_sincos2.o \
 141                 __vTBL_sqrtf.o \
 142                 __vcosbig.o \
 143                 __vcosbig_ultra3.o \
 144                 __vrem_pio2m.o \
 145                 __vsinbig.o \
 146                 __vsinbig_ultra3.o

 147 
 148 mvecvis2SOBJS   = \
 149                 __vcos_ultra3.o \
 150                 __vlog_ultra3.o \
 151                 __vsin_ultra3.o \
 152                 __vsqrtf_ultra3.o

 153 
 154 include         $(SRC)/lib/Makefile.lib
 155 include         $(SRC)/lib/Makefile.rootfs
 156 include         $(LIBMDIR)/Makefile.libm.com
 157 
 158 LIBS            = $(DYNLIB)
 159 SRCDIR          = ../common/
 160 DYNFLAGS        += $(ZIGNORE)
 161 
 162 LINTERROFF      = -erroff=E_FP_DIVISION_BY_ZERO 
 163 LINTERROFF      += -erroff=E_FP_INVALID
 164 LINTERROFF      += -erroff=E_BAD_PTR_CAST_ALIGN
 165 LINTERROFF      += -erroff=E_ASSIGMENT_CAUSE_LOSS_PREC
 166 LINTERROFF      += -erroff=E_FUNC_SET_NOT_USED
 167 
 168 LINTFLAGS       += $(LINTERROFF)
 169 LINTFLAGS64     += $(LINTERROFF)
 170 LINTFLAGS64     += -errchk=longptr64
 171 
 172 CLAGS           += $(LINTERROFF)
 173 CFLAGS64        += $(LINTERROFF)
 174 


 175 FLTRPATH_sparc          = $$ORIGIN/cpu/$$ISALIST/libmvec_isa.so.1
 176 FLTRPATH_sparcv9        = $$ORIGIN/../cpu/$$ISALIST/sparcv9/libmvec_isa.so.1
 177 FLTRPATH_i386           = $$ORIGIN/libmvec/$$HWCAP
 178 FLTRPATH                = $(FLTRPATH_$(TARGET_ARCH))
 179 
 180 sparc_CFLAGS += -_cc=-W0,-xintrinsic
 181 sparcv9_CFLAGS += -_cc=-W0,-xintrinsic
 182 CPPFLAGS_i386   += -Dfabs=__fabs
 183 
 184 SRCS_mvec_i386 = ../common/__vsqrtf.c
 185 
 186 SRCS_mvec_sparc = $(SRCS_mvec_i386)
 187 
 188 SRCS_mvec_sparcv9 = $(SRCS_mvec_i386)
 189 










 190 
 191 SRCS_mvec = \
 192         $(SRCS_mvec_$(TARGETMACH)) \
 193         ../common/__vTBL_atan1.c \
 194         ../common/__vTBL_atan2.c \
 195         ../common/__vTBL_rsqrt.c \
 196         ../common/__vTBL_sincos.c \
 197         ../common/__vTBL_sincos2.c \
 198         ../common/__vTBL_sqrtf.c \
 199         ../common/__vatan.c \
 200         ../common/__vatan2.c \
 201         ../common/__vatan2f.c \
 202         ../common/__vatanf.c \
 203         ../common/__vc_abs.c \
 204         ../common/__vc_exp.c \
 205         ../common/__vc_log.c \
 206         ../common/__vc_pow.c \
 207         ../common/__vcos.c \
 208         ../common/__vcosbig.c \
 209         ../common/__vcosbigf.c \


 248         ../common/vexpf_.c \
 249         ../common/vhypot_.c \
 250         ../common/vhypotf_.c \
 251         ../common/vlog_.c \
 252         ../common/vlogf_.c \
 253         ../common/vpow_.c \
 254         ../common/vpowf_.c \
 255         ../common/vrhypot_.c \
 256         ../common/vrhypotf_.c \
 257         ../common/vrsqrt_.c \
 258         ../common/vrsqrtf_.c \
 259         ../common/vsin_.c \
 260         ../common/vsincos_.c \
 261         ../common/vsincosf_.c \
 262         ../common/vsinf_.c \
 263         ../common/vsqrt_.c \
 264         ../common/vsqrtf_.c \
 265         ../common/vz_abs_.c \
 266         ../common/vz_exp_.c \
 267         ../common/vz_log_.c \
 268         ../common/vz_pow_.c

 269 
 270 .KEEP_STATE:
 271 
 272 all:    $(LIBS)
 273 
 274 lint:   lintcheck
 275 
 276 pics/%.o: ../$(TARGET_ARCH)/src/%.S
 277         $(COMPILE.s) -o $@ $<
 278         $(POST_PROCESS_O)
 279 
 280 pics/%.o: ../common/$$(CHIP)/%.S
 281         $(COMPILE.s) -o $@ $<
 282         $(POST_PROCESS_O)