Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/vax/gen Split isnan() into its own file.



details:   https://anonhg.NetBSD.org/src/rev/5c3b3e9d4711
branches:  trunk
changeset: 538701:5c3b3e9d4711
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Oct 26 06:51:32 2002 +0000

description:
Split isnan() into its own file.

diffstat:

 lib/libc/arch/vax/gen/Makefile.inc |   4 +-
 lib/libc/arch/vax/gen/isinf.c      |  18 ++---------
 lib/libc/arch/vax/gen/isnan.c      |  57 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 63 insertions(+), 16 deletions(-)

diffs (117 lines):

diff -r ed0e75732724 -r 5c3b3e9d4711 lib/libc/arch/vax/gen/Makefile.inc
--- a/lib/libc/arch/vax/gen/Makefile.inc        Sat Oct 26 06:44:54 2002 +0000
+++ b/lib/libc/arch/vax/gen/Makefile.inc        Sat Oct 26 06:51:32 2002 +0000
@@ -1,7 +1,7 @@
-#      $NetBSD: Makefile.inc,v 1.6 2002/03/27 18:38:50 matt Exp $
+#      $NetBSD: Makefile.inc,v 1.7 2002/10/26 06:51:32 thorpej Exp $
 
 SRCS+= byte_swap_2.S byte_swap_4.S bswap64.S \
-       fabs.S frexp.c infinity.c isinf.c ldexp.S modf.S \
+       fabs.S frexp.c infinity.c isinf.c isnan.c ldexp.S modf.S \
        udiv.S urem.S \
        __setjmp14.S __sigsetjmp14.S _setjmp.S 
 
diff -r ed0e75732724 -r 5c3b3e9d4711 lib/libc/arch/vax/gen/isinf.c
--- a/lib/libc/arch/vax/gen/isinf.c     Sat Oct 26 06:44:54 2002 +0000
+++ b/lib/libc/arch/vax/gen/isinf.c     Sat Oct 26 06:51:32 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: isinf.c,v 1.5 2000/01/22 22:45:01 mycroft Exp $        */
+/*     $NetBSD: isinf.c,v 1.6 2002/10/26 06:51:33 thorpej Exp $        */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)isinf.c    8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: isinf.c,v 1.5 2000/01/22 22:45:01 mycroft Exp $");
+__RCSID("$NetBSD: isinf.c,v 1.6 2002/10/26 06:51:33 thorpej Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -46,22 +46,12 @@
 #include <math.h>
 
 #ifdef __weak_alias
-__weak_alias(isnan,_isnan)
 __weak_alias(isinf,_isinf)
 #endif
 
 /* ARGSUSED */
 int
-isnan(d)
-       double d;
+isinf(double d)
 {
-       return(0);
+       return (0);
 }
-
-/* ARGSUSED */
-int
-isinf(d)
-       double d;
-{
-       return(0);
-}
diff -r ed0e75732724 -r 5c3b3e9d4711 lib/libc/arch/vax/gen/isnan.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/arch/vax/gen/isnan.c     Sat Oct 26 06:51:32 2002 +0000
@@ -0,0 +1,57 @@
+/*     $NetBSD: isnan.c,v 1.1 2002/10/26 06:51:33 thorpej Exp $        */
+
+/*-
+ * Copyright (c) 1991, 1993
+ *     The Regents of the University of California.  All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include <sys/cdefs.h>
+#if defined(LIBC_SCCS) && !defined(lint)
+#if 0
+static char sccsid[] = "@(#)isinf.c    8.1 (Berkeley) 6/4/93";
+#else
+__RCSID("$NetBSD: isnan.c,v 1.1 2002/10/26 06:51:33 thorpej Exp $");
+#endif
+#endif /* LIBC_SCCS and not lint */
+
+#include "namespace.h"
+#include <math.h>
+
+#ifdef __weak_alias
+__weak_alias(isnan,_isnan)
+#endif
+
+/* ARGSUSED */
+int
+isnan(double d)
+{
+       return (0);
+}



Home | Main Index | Thread Index | Old Index