summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-12-09 20:32:07 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-12-09 20:32:07 +0000
commitaaed5b099da331dec541f18ab4d6107d19a7a42d (patch)
tree0bf6e70e1e122799d8ebcbe30ed8c6fd6d72b68e
parentc59845ec3f1de5043f41f9512104f71073999f02 (diff)
ditto frexpl and ldexpl
-rw-r--r--lib/libc/arch/alpha/gen/ldexp.c5
-rw-r--r--lib/libc/arch/amd64/gen/fabs.S3
-rw-r--r--lib/libc/arch/arm/gen/ldexp.c5
-rw-r--r--lib/libc/arch/hppa/gen/ldexp.c5
-rw-r--r--lib/libc/arch/i386/gen/fabs.S3
-rw-r--r--lib/libc/arch/m68k/gen/fabs.S3
-rw-r--r--lib/libc/arch/m88k/gen/fabs.S3
-rw-r--r--lib/libc/arch/mips64/gen/fabs.S3
-rw-r--r--lib/libc/arch/powerpc/gen/ldexp.c5
-rw-r--r--lib/libc/arch/sh/gen/ldexp.c5
-rw-r--r--lib/libc/arch/sparc/gen/ldexp.c5
-rw-r--r--lib/libc/arch/sparc64/gen/fabs.S3
-rw-r--r--lib/libc/arch/vax/gen/frexp.c9
-rw-r--r--lib/libc/arch/vax/gen/ldexp.S3
-rw-r--r--lib/libc/gen/frexp.c10
15 files changed, 54 insertions, 16 deletions
diff --git a/lib/libc/arch/alpha/gen/ldexp.c b/lib/libc/arch/alpha/gen/ldexp.c
index e3ea95e0f6c..c54e6653043 100644
--- a/lib/libc/arch/alpha/gen/ldexp.c
+++ b/lib/libc/arch/alpha/gen/ldexp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldexp.c,v 1.4 2005/08/07 16:40:13 espie Exp $ */
+/* $OpenBSD: ldexp.c,v 1.5 2008/12/09 20:32:06 martynas Exp $ */
/* $NetBSD: ldexp.c,v 1.1 1995/02/10 17:50:24 cgd Exp $ */
/*
@@ -29,6 +29,7 @@
*/
#include <sys/types.h>
+#include <machine/cdefs.h>
#include <machine/ieee.h>
#include <errno.h>
#include <math.h>
@@ -133,3 +134,5 @@ ldexp(val, exp)
u.s.dbl_exp = newexp;
return (u.v);
}
+
+__weak_alias(ldexpl, ldexp);
diff --git a/lib/libc/arch/amd64/gen/fabs.S b/lib/libc/arch/amd64/gen/fabs.S
index ab31ac612fb..ffd9205fe6d 100644
--- a/lib/libc/arch/amd64/gen/fabs.S
+++ b/lib/libc/arch/amd64/gen/fabs.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.S,v 1.2 2004/02/08 17:29:57 deraadt Exp $ */
+/* $OpenBSD: fabs.S,v 1.3 2008/12/09 20:32:06 martynas Exp $ */
/* $NetBSD: fabs.S,v 1.1 2001/06/19 00:25:02 fvdl Exp $ */
#include <machine/asm.h>
@@ -8,6 +8,7 @@
* the FP stack directly?
*/
+WEAK_ALIAS(fabsl, fabs)
ENTRY(fabs)
movsd %xmm0, -8(%rsp)
fldl -8(%rsp)
diff --git a/lib/libc/arch/arm/gen/ldexp.c b/lib/libc/arch/arm/gen/ldexp.c
index 172f0c817c7..90e528024da 100644
--- a/lib/libc/arch/arm/gen/ldexp.c
+++ b/lib/libc/arch/arm/gen/ldexp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldexp.c,v 1.3 2008/06/26 05:42:04 ray Exp $ */
+/* $OpenBSD: ldexp.c,v 1.4 2008/12/09 20:32:06 martynas Exp $ */
/* $NetBSD: ldexp.c,v 1.2 2001/11/08 22:45:45 bjh21 Exp $ */
/*-
@@ -31,7 +31,6 @@
*/
#include <sys/cdefs.h>
-
#include <sys/types.h>
#include <machine/ieee.h>
#include <errno.h>
@@ -143,3 +142,5 @@ ldexp(val, expo)
return (u.v);
}
}
+
+__weak_alias(ldexpl, ldexp);
diff --git a/lib/libc/arch/hppa/gen/ldexp.c b/lib/libc/arch/hppa/gen/ldexp.c
index 2b0be1ed842..4143659aa39 100644
--- a/lib/libc/arch/hppa/gen/ldexp.c
+++ b/lib/libc/arch/hppa/gen/ldexp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldexp.c,v 1.3 2005/08/07 16:40:14 espie Exp $ */
+/* $OpenBSD: ldexp.c,v 1.4 2008/12/09 20:32:06 martynas Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -35,6 +35,7 @@
*/
#include <sys/types.h>
+#include <machine/cdefs.h>
#include <machine/ieee.h>
#include <errno.h>
@@ -138,3 +139,5 @@ ldexp(val, exp)
u.s.dbl_exp = newexp;
return (u.v);
}
+
+__weak_alias(ldexpl, ldexp);
diff --git a/lib/libc/arch/i386/gen/fabs.S b/lib/libc/arch/i386/gen/fabs.S
index 7d1bbe8fb76..4c37f84ac9c 100644
--- a/lib/libc/arch/i386/gen/fabs.S
+++ b/lib/libc/arch/i386/gen/fabs.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.S,v 1.5 2005/08/07 11:30:38 espie Exp $ */
+/* $OpenBSD: fabs.S,v 1.6 2008/12/09 20:32:06 martynas Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -33,6 +33,7 @@
#include <machine/asm.h>
+WEAK_ALIAS(fabsl, fabs)
ENTRY(fabs)
fldl 4(%esp)
fabs
diff --git a/lib/libc/arch/m68k/gen/fabs.S b/lib/libc/arch/m68k/gen/fabs.S
index 95ecf4131e8..596a5bca5c3 100644
--- a/lib/libc/arch/m68k/gen/fabs.S
+++ b/lib/libc/arch/m68k/gen/fabs.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.S,v 1.4 2005/08/07 16:40:14 espie Exp $ */
+/* $OpenBSD: fabs.S,v 1.5 2008/12/09 20:32:06 martynas Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -36,6 +36,7 @@
#include "DEFS.h"
+WEAK_ALIAS(fabsl, fabs)
ENTRY(fabs)
fmoved sp@(4),fp0
fjnlt L1
diff --git a/lib/libc/arch/m88k/gen/fabs.S b/lib/libc/arch/m88k/gen/fabs.S
index da20d00e8ed..6ab7b08911d 100644
--- a/lib/libc/arch/m88k/gen/fabs.S
+++ b/lib/libc/arch/m88k/gen/fabs.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.S,v 1.5 2005/08/07 16:40:14 espie Exp $ */
+/* $OpenBSD: fabs.S,v 1.6 2008/12/09 20:32:06 martynas Exp $ */
/*-
* Copyright (c) 1996 Nivas Madhur
* All rights reserved.
@@ -35,6 +35,7 @@
* Will work only if the argument passed is in IEEE format!
*/
+WEAK_ALIAS(fabsl, fabs)
ENTRY(fabs)
subu r31,r31,16
st.d r2,r31,0
diff --git a/lib/libc/arch/mips64/gen/fabs.S b/lib/libc/arch/mips64/gen/fabs.S
index 42c1afe3506..02c517ab8cf 100644
--- a/lib/libc/arch/mips64/gen/fabs.S
+++ b/lib/libc/arch/mips64/gen/fabs.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.S,v 1.3 2005/08/07 16:40:15 espie Exp $ */
+/* $OpenBSD: fabs.S,v 1.4 2008/12/09 20:32:06 martynas Exp $ */
/*-
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
@@ -39,6 +39,7 @@
*
* Return absolute value of x.
*/
+WEAK_ALIAS(fabsl, fabs)
LEAF(fabs, 0)
.set noreorder
j ra
diff --git a/lib/libc/arch/powerpc/gen/ldexp.c b/lib/libc/arch/powerpc/gen/ldexp.c
index 065b24e52ce..cfe71da30a2 100644
--- a/lib/libc/arch/powerpc/gen/ldexp.c
+++ b/lib/libc/arch/powerpc/gen/ldexp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldexp.c,v 1.4 2005/08/07 16:40:15 espie Exp $ */
+/* $OpenBSD: ldexp.c,v 1.5 2008/12/09 20:32:06 martynas Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -35,6 +35,7 @@
*/
#include <sys/types.h>
+#include <machine/cdefs.h>
#include <machine/ieee.h>
#include <errno.h>
@@ -138,3 +139,5 @@ ldexp(val, exp)
u.s.dbl_exp = newexp;
return (u.v);
}
+
+__weak_alias(ldexpl, ldexp);
diff --git a/lib/libc/arch/sh/gen/ldexp.c b/lib/libc/arch/sh/gen/ldexp.c
index 6c3723ded7c..df9c653b607 100644
--- a/lib/libc/arch/sh/gen/ldexp.c
+++ b/lib/libc/arch/sh/gen/ldexp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldexp.c,v 1.1 2006/10/10 22:07:10 miod Exp $ */
+/* $OpenBSD: ldexp.c,v 1.2 2008/12/09 20:32:06 martynas Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -35,6 +35,7 @@
*/
#include <sys/types.h>
+#include <machine/cdefs.h>
#include <machine/ieee.h>
#include <errno.h>
@@ -138,3 +139,5 @@ ldexp(val, exp)
u.s.dbl_exp = newexp;
return (u.v);
}
+
+__weak_alias(ldexpl, ldexp);
diff --git a/lib/libc/arch/sparc/gen/ldexp.c b/lib/libc/arch/sparc/gen/ldexp.c
index b73b64dcd41..94e64791891 100644
--- a/lib/libc/arch/sparc/gen/ldexp.c
+++ b/lib/libc/arch/sparc/gen/ldexp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldexp.c,v 1.4 2005/08/07 16:40:15 espie Exp $ */
+/* $OpenBSD: ldexp.c,v 1.5 2008/12/09 20:32:06 martynas Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -33,6 +33,7 @@
*/
#include <sys/types.h>
+#include <machine/cdefs.h>
#include <machine/ieee.h>
#include <errno.h>
@@ -136,3 +137,5 @@ ldexp(val, exp)
u.s.dbl_exp = newexp;
return (u.v);
}
+
+__weak_alias(ldexpl, ldexp);
diff --git a/lib/libc/arch/sparc64/gen/fabs.S b/lib/libc/arch/sparc64/gen/fabs.S
index 93f92df2768..fd9107b1b45 100644
--- a/lib/libc/arch/sparc64/gen/fabs.S
+++ b/lib/libc/arch/sparc64/gen/fabs.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: fabs.S,v 1.3 2003/06/02 20:18:32 millert Exp $ */
+/* $OpenBSD: fabs.S,v 1.4 2008/12/09 20:32:06 martynas Exp $ */
/* $NetBSD: fabs.S,v 1.2 2000/07/23 07:12:22 eeh Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -37,6 +37,7 @@
/* fabs - floating absolute value */
+WEAK_ALIAS(fabsl, fabs)
ENTRY(fabs)
retl
fabsd %f0, %f0 ! return absolute value
diff --git a/lib/libc/arch/vax/gen/frexp.c b/lib/libc/arch/vax/gen/frexp.c
index 1f281ec87d0..70ddf96e424 100644
--- a/lib/libc/arch/vax/gen/frexp.c
+++ b/lib/libc/arch/vax/gen/frexp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frexp.c,v 1.5 2005/08/07 16:40:15 espie Exp $ */
+/* $OpenBSD: frexp.c,v 1.6 2008/12/09 20:32:06 martynas Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -28,6 +28,7 @@
* SUCH DAMAGE.
*/
+#include <machine/cdefs.h>
#include <sys/types.h>
#include <math.h>
@@ -57,3 +58,9 @@ frexp(value, eptr)
return((double)0);
}
}
+
+#if LDBL_MANT_DIG == 53
+#ifdef __weak_alias
+__weak_alias(frexpl, frexp);
+#endif /* __weak_alias */
+#endif /* LDBL_MANT_DIG == 53 */
diff --git a/lib/libc/arch/vax/gen/ldexp.S b/lib/libc/arch/vax/gen/ldexp.S
index f46904c98ae..1cbd167c495 100644
--- a/lib/libc/arch/vax/gen/ldexp.S
+++ b/lib/libc/arch/vax/gen/ldexp.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldexp.S,v 1.6 2008/05/21 20:39:32 miod Exp $ */
+/* $OpenBSD: ldexp.S,v 1.7 2008/12/09 20:32:06 martynas Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -52,6 +52,7 @@
.globl _C_LABEL(errno)
+WEAK_ALIAS(ldexpl, ldexp)
ENTRY(ldexp, R2)
movd 4(ap),r0 /* fetch "value" */
extzv $7,$8,r0,r2 /* r2 := biased exponent */
diff --git a/lib/libc/gen/frexp.c b/lib/libc/gen/frexp.c
index 737611a52f9..230edd8e20a 100644
--- a/lib/libc/gen/frexp.c
+++ b/lib/libc/gen/frexp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frexp.c,v 1.2 2005/08/08 08:05:34 espie Exp $ */
+/* $OpenBSD: frexp.c,v 1.3 2008/12/09 20:32:06 martynas Exp $ */
/*-
* Copyright (c) 2004 David Schultz <das@FreeBSD.ORG>
@@ -29,7 +29,9 @@
*/
#include <sys/types.h>
+#include <machine/cdefs.h>
#include <machine/ieee.h>
+#include <float.h>
#include <math.h>
double
@@ -64,3 +66,9 @@ frexp(double v, int *ex)
}
return (u.v);
}
+
+#if LDBL_MANT_DIG == 53
+#ifdef __weak_alias
+__weak_alias(frexpl, frexp);
+#endif /* __weak_alias */
+#endif /* LDBL_MANT_DIG == 53 */