From owner-cvs-lib Sun Feb 16 10:28:11 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA17899 for cvs-lib-outgoing; Sun, 16 Feb 1997 10:28:11 -0800 (PST) Received: (from bde@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA17807; Sun, 16 Feb 1997 10:26:35 -0800 (PST) Date: Sun, 16 Feb 1997 10:26:35 -0800 (PST) From: Bruce Evans Message-Id: <199702161826.KAA17807@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib, cvs-sys, cvs-etc Subject: cvs commit: src/lib/msun Makefile src/etc make.conf src/lib/msun/src get_hw_float.c e_acos.c e_asin.c e_atan2.c e_exp.c e_fmod.c e_log.c e_log10.c e_remainder.c e_scalb.c e_sqrt.c s_atan.c s_ceil.c s_copysign.c s_cos.c s_finite.c s_floor.c s_ilogb.c s_logb.c s_rint.c s_scalbn.c s_significand.c s_sin.c s_tan.c src/sys/i386/include asmacros.h Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 97/02/16 10:26:33 Modified: etc make.conf lib/msun Makefile lib/msun/src e_acos.c e_asin.c e_atan2.c e_exp.c e_fmod.c e_log.c e_log10.c e_remainder.c e_scalb.c e_sqrt.c s_atan.c s_ceil.c s_copysign.c s_cos.c s_finite.c s_floor.c s_ilogb.c s_logb.c s_rint.c s_scalbn.c s_significand.c s_sin.c s_tan.c sys/i386/include asmacros.h Added: lib/msun/src get_hw_float.c Log: Select between the generic math functions and the i387-specific ones at runtime. etc/make.conf: Nuked HAVE_FPU option. lib/msun/Makefile: Always build the i387 objects. Copy the i387 source files at build time so that the i387 objects have different names. This is simpler than renaming the files in the cvs repository or repeating half of bsd.lib.mk to add explicit rules. lib/msun/src/*.c: Renamed all functions that have an i387-specific version by adding `__generic_' to their names. lib/msun/src/get_hw_float.c: New file for getting machdep.hw_float from the kernel. sys/i386/include/asmacros.h: Abuse the ENTRY() macro to generate jump vectors and associated code. This works much like PIC PLT dynamic initialization. The PIC case is messy. The old i387 entry points are renamed. Renaming is easier here because the names are given by macro expansions. Revision Changes Path 1.42 +0 -6 src/etc/make.conf 1.16 +13 -9 src/lib/msun/Makefile 1.4 +2 -2 src/lib/msun/src/e_acos.c 1.5 +2 -2 src/lib/msun/src/e_asin.c 1.5 +2 -2 src/lib/msun/src/e_atan2.c 1.5 +2 -2 src/lib/msun/src/e_exp.c 1.4 +2 -2 src/lib/msun/src/e_fmod.c 1.4 +2 -2 src/lib/msun/src/e_log.c 1.5 +2 -2 src/lib/msun/src/e_log10.c 1.4 +2 -2 src/lib/msun/src/e_remainder.c 1.4 +4 -4 src/lib/msun/src/e_scalb.c 1.4 +2 -2 src/lib/msun/src/e_sqrt.c 1.4 +2 -2 src/lib/msun/src/s_atan.c 1.4 +2 -2 src/lib/msun/src/s_ceil.c 1.4 +2 -2 src/lib/msun/src/s_copysign.c 1.4 +2 -2 src/lib/msun/src/s_cos.c 1.4 +2 -2 src/lib/msun/src/s_finite.c 1.4 +2 -2 src/lib/msun/src/s_floor.c 1.4 +2 -2 src/lib/msun/src/s_ilogb.c 1.4 +2 -2 src/lib/msun/src/s_logb.c 1.5 +2 -2 src/lib/msun/src/s_rint.c 1.4 +2 -2 src/lib/msun/src/s_scalbn.c 1.4 +2 -2 src/lib/msun/src/s_significand.c 1.4 +2 -2 src/lib/msun/src/s_sin.c 1.4 +2 -2 src/lib/msun/src/s_tan.c 1.12 +77 -0 src/sys/i386/include/asmacros.h