summaryrefslogtreecommitdiff
path: root/lib/libc/arch/vax/gen
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 /lib/libc/arch/vax/gen
parentc59845ec3f1de5043f41f9512104f71073999f02 (diff)
ditto frexpl and ldexpl
Diffstat (limited to 'lib/libc/arch/vax/gen')
-rw-r--r--lib/libc/arch/vax/gen/frexp.c9
-rw-r--r--lib/libc/arch/vax/gen/ldexp.S3
2 files changed, 10 insertions, 2 deletions
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 */