Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/sh3/gen Use fabs_ieee754.c.



details:   https://anonhg.NetBSD.org/src/rev/1af40957872e
branches:  trunk
changeset: 792889:1af40957872e
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Jan 20 17:14:38 2014 +0000

description:
Use fabs_ieee754.c.

diffstat:

 lib/libc/arch/sh3/gen/Makefile.inc |   4 +-
 lib/libc/arch/sh3/gen/fabs.c       |  46 --------------------------------------
 2 files changed, 2 insertions(+), 48 deletions(-)

diffs (68 lines):

diff -r 75a27371207b -r 1af40957872e lib/libc/arch/sh3/gen/Makefile.inc
--- a/lib/libc/arch/sh3/gen/Makefile.inc        Mon Jan 20 15:32:23 2014 +0000
+++ b/lib/libc/arch/sh3/gen/Makefile.inc        Mon Jan 20 17:14:38 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.25 2009/12/06 07:12:17 uebayasi Exp $
+#      $NetBSD: Makefile.inc,v 1.26 2014/01/20 17:14:38 joerg Exp $
 
 SRCS+= setjmp.S _setjmp.S sigsetjmp.S
 
@@ -6,7 +6,7 @@
 
 SRCS+= _lwp.c
 
-SRCS+= fabs.c flt_rounds.c bswap16.c bswap32.c bswap64.c
+SRCS+= fabs_ieee754.c flt_rounds.c bswap16.c bswap32.c bswap64.c
 
 # Common ieee754 constants and functions
 SRCS+= infinityf_ieee754.c infinity_ieee754.c infinityl_dbl_ieee754.c
diff -r 75a27371207b -r 1af40957872e lib/libc/arch/sh3/gen/fabs.c
--- a/lib/libc/arch/sh3/gen/fabs.c      Mon Jan 20 15:32:23 2014 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,46 +0,0 @@
-/*     $NetBSD: fabs.c,v 1.3 2006/05/21 02:51:15 mrg Exp $     */
-
-/*
- * Copyright (c) 1996 Mark Brinicombe
- *
- * 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 Mark Brinicombe
- * 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 AUTHOR 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 AUTHOR 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.
- */
-
-/*
- * fabs(x) returns the absolute value of x.
- */
-
-double fabs(double x);
-
-double
-fabs(double x)
-{
-       if (x < 0)
-               x = -x;
-       return(x);
-}



Home | Main Index | Thread Index | Old Index