Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libm Provide scalbnl, scalbnf, logbl, logbf, fmaxl for vax.
details: https://anonhg.NetBSD.org/src/rev/040b771aced8
branches: trunk
changeset: 326572:040b771aced8
user: martin <martin%NetBSD.org@localhost>
date: Mon Feb 03 21:22:21 2014 +0000
description:
Provide scalbnl, scalbnf, logbl, logbf, fmaxl for vax.
diffstat:
lib/libm/arch/vax/n_scalbn.S | 4 +++-
lib/libm/arch/vax/n_support.S | 13 ++++++++++++-
lib/libm/noieee_src/n_fmax.c | 6 +++++-
3 files changed, 20 insertions(+), 3 deletions(-)
diffs (70 lines):
diff -r 97372b25946f -r 040b771aced8 lib/libm/arch/vax/n_scalbn.S
--- a/lib/libm/arch/vax/n_scalbn.S Mon Feb 03 20:22:19 2014 +0000
+++ b/lib/libm/arch/vax/n_scalbn.S Mon Feb 03 21:22:21 2014 +0000
@@ -30,9 +30,11 @@
#include <machine/asm.h>
#include <sys/errno.h>
-RCSID("$NetBSD: n_scalbn.S,v 1.4 2013/05/24 12:45:40 martin Exp $")
+RCSID("$NetBSD: n_scalbn.S,v 1.5 2014/02/03 21:22:21 martin Exp $")
WEAK_ALIAS(scalbn,_scalbn)
+WEAK_ALIAS(scalbnl,_scalbnl)
+WEAK_ALIAS(scalbnf,_scalbnf)
WEAK_ALIAS(ldexp,_scalbn)
WEAK_ALIAS(ldexpf,_scalbnf)
WEAK_ALIAS(ldexpl,_scalbnl)
diff -r 97372b25946f -r 040b771aced8 lib/libm/arch/vax/n_support.S
--- a/lib/libm/arch/vax/n_support.S Mon Feb 03 20:22:19 2014 +0000
+++ b/lib/libm/arch/vax/n_support.S Mon Feb 03 21:22:21 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: n_support.S,v 1.6 2003/08/07 16:44:45 agc Exp $ */
+/* $NetBSD: n_support.S,v 1.7 2014/02/03 21:22:21 martin Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@@ -31,6 +31,8 @@
*/
#include <machine/asm.h>
+WEAK_ALIAS(logbl,logb)
+
.text
_sccsid:
.asciz "@(#)support.s\t1.3 (Berkeley) 8/21/85; 8.1 (ucb.elefunt) 6/4/93"
@@ -59,6 +61,15 @@
Lz: ret
/*
+ * float logbf(float x);
+ */
+ENTRY(logbf, 0)
+ cvtfd 4(%ap),-(%sp)
+ calls $2,_C_LABEL(logb)
+ cvtdf %r0,%r0
+ ret
+
+/*
* double logb(double x);
*/
ENTRY(logb, 0)
diff -r 97372b25946f -r 040b771aced8 lib/libm/noieee_src/n_fmax.c
--- a/lib/libm/noieee_src/n_fmax.c Mon Feb 03 20:22:19 2014 +0000
+++ b/lib/libm/noieee_src/n_fmax.c Mon Feb 03 21:22:21 2014 +0000
@@ -26,11 +26,15 @@
#include <sys/cdefs.h>
#if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: n_fmax.c,v 1.1 2011/01/09 02:32:13 jakllsch Exp $");
+__RCSID("$NetBSD: n_fmax.c,v 1.2 2014/02/03 21:22:21 martin Exp $");
#endif
#include <math.h>
+#ifdef __weak_alias
+__weak_alias(fmaxl, fmax);
+#endif
+
double
fmax(double x, double y)
{
Home |
Main Index |
Thread Index |
Old Index