From 9e8f1bd4ec847780eb9aaf168c43f1271f0e37f5 Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 16 Feb 1997 18:26:31 +0000 Subject: 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. --- lib/msun/src/s_rint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/msun/src/s_rint.c') diff --git a/lib/msun/src/s_rint.c b/lib/msun/src/s_rint.c index 44e9353..aa41452 100644 --- a/lib/msun/src/s_rint.c +++ b/lib/msun/src/s_rint.c @@ -45,9 +45,9 @@ TWO52[2]={ }; #ifdef __STDC__ - double rint(double x) + double __generic_rint(double x) #else - double rint(x) + double __generic_rint(x) double x; #endif { -- cgit v1.1