Makefile.in: Rebuilt.
authorTom Tromey <tromey@redhat.com>
Wed, 24 Jan 2001 17:43:25 +0000 (17:43 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 24 Jan 2001 17:43:25 +0000 (17:43 +0000)
* Makefile.in: Rebuilt.
* Makefile.am (c_source_files): Added sf_fabs.c.
* java/lang/sf_fabs.c: New file.

From-SVN: r39238

libjava/ChangeLog
libjava/Makefile.am
libjava/Makefile.in
libjava/java/lang/sf_fabs.c [new file with mode: 0644]

index 15a1466485c883607cd1410a0f878a2cf2a058ff..9f44e4aaad875480c6693b91b8308c32e0777253 100644 (file)
@@ -1,3 +1,9 @@
+2001-01-24  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (c_source_files): Added sf_fabs.c.
+       * java/lang/sf_fabs.c: New file.
+
 2001-01-19  Warren Levy  <warrenl@redhat.com>
 
        * java/text/SimpleDateFormat.java (format): Compute hour for cases
index c20819ecde549d8c1683b3f2368771bcd9ef7e7a..fc5e5ef22599cce636cf885ade633ea31effa82f 100644 (file)
@@ -1216,7 +1216,7 @@ c_source_files = \
   java/lang/e_remainder.c java/lang/s_floor.c     java/lang/w_remainder.c \
   java/lang/e_scalb.c     java/lang/s_rint.c      java/lang/w_sqrt.c      \
   java/lang/e_sqrt.c      java/lang/s_scalbn.c    java/lang/sf_rint.c     \
-  java/lang/k_cos.c       java/lang/s_sin.c
+  java/lang/k_cos.c       java/lang/s_sin.c       java/lang/sf_fabs.c
 
 #java/awt/natToolkit.cc
 
index 76298e0ba00b692d8f18816d3711fe1f6c4e8b0b..f5117b13684662bab3ded57466c39324d8b462cb 100644 (file)
@@ -976,7 +976,7 @@ c_source_files = \
   java/lang/e_remainder.c java/lang/s_floor.c     java/lang/w_remainder.c \
   java/lang/e_scalb.c     java/lang/s_rint.c      java/lang/w_sqrt.c      \
   java/lang/e_sqrt.c      java/lang/s_scalbn.c    java/lang/sf_rint.c     \
-  java/lang/k_cos.c       java/lang/s_sin.c
+  java/lang/k_cos.c       java/lang/s_sin.c       java/lang/sf_fabs.c
 
 
 #java/awt/natToolkit.cc
@@ -1592,18 +1592,19 @@ DEP_FILES =  .deps/$(srcdir)/$(CONVERT_DIR)/gen-from-JIS.P \
 .deps/java/lang/s_fabs.P .deps/java/lang/s_floor.P \
 .deps/java/lang/s_rint.P .deps/java/lang/s_scalbn.P \
 .deps/java/lang/s_sin.P .deps/java/lang/s_tan.P \
-.deps/java/lang/sf_rint.P .deps/java/lang/strtod.P \
-.deps/java/lang/w_acos.P .deps/java/lang/w_asin.P \
-.deps/java/lang/w_atan2.P .deps/java/lang/w_exp.P \
-.deps/java/lang/w_fmod.P .deps/java/lang/w_log.P \
-.deps/java/lang/w_pow.P .deps/java/lang/w_remainder.P \
-.deps/java/lang/w_sqrt.P .deps/java/math/BigDecimal.P \
-.deps/java/math/BigInteger.P .deps/java/net/BindException.P \
-.deps/java/net/ConnectException.P .deps/java/net/ContentHandler.P \
-.deps/java/net/ContentHandlerFactory.P .deps/java/net/DatagramPacket.P \
-.deps/java/net/DatagramSocket.P .deps/java/net/DatagramSocketImpl.P \
-.deps/java/net/FileNameMap.P .deps/java/net/HttpURLConnection.P \
-.deps/java/net/InetAddress.P .deps/java/net/JarURLConnection.P \
+.deps/java/lang/sf_fabs.P .deps/java/lang/sf_rint.P \
+.deps/java/lang/strtod.P .deps/java/lang/w_acos.P \
+.deps/java/lang/w_asin.P .deps/java/lang/w_atan2.P \
+.deps/java/lang/w_exp.P .deps/java/lang/w_fmod.P \
+.deps/java/lang/w_log.P .deps/java/lang/w_pow.P \
+.deps/java/lang/w_remainder.P .deps/java/lang/w_sqrt.P \
+.deps/java/math/BigDecimal.P .deps/java/math/BigInteger.P \
+.deps/java/net/BindException.P .deps/java/net/ConnectException.P \
+.deps/java/net/ContentHandler.P .deps/java/net/ContentHandlerFactory.P \
+.deps/java/net/DatagramPacket.P .deps/java/net/DatagramSocket.P \
+.deps/java/net/DatagramSocketImpl.P .deps/java/net/FileNameMap.P \
+.deps/java/net/HttpURLConnection.P .deps/java/net/InetAddress.P \
+.deps/java/net/JarURLConnection.P \
 .deps/java/net/MalformedURLException.P .deps/java/net/MulticastSocket.P \
 .deps/java/net/NoRouteToHostException.P \
 .deps/java/net/PlainDatagramSocketImpl.P \
diff --git a/libjava/java/lang/sf_fabs.c b/libjava/java/lang/sf_fabs.c
new file mode 100644 (file)
index 0000000..2aaed32
--- /dev/null
@@ -0,0 +1,47 @@
+/* sf_fabs.c -- float version of s_fabs.c.
+ * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
+ */
+
+/*
+ * ====================================================
+ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
+ *
+ * Developed at SunPro, a Sun Microsystems, Inc. business.
+ * Permission to use, copy, modify, and distribute this
+ * software is freely granted, provided that this notice 
+ * is preserved.
+ * ====================================================
+ */
+
+/*
+ * fabsf(x) returns the absolute value of x.
+ */
+
+#include "fdlibm.h"
+
+#ifdef __STDC__
+       float fabsf(float x)
+#else
+       float fabsf(x)
+       float x;
+#endif
+{
+       __uint32_t ix;
+       GET_FLOAT_WORD(ix,x);
+       SET_FLOAT_WORD(x,ix&0x7fffffff);
+        return x;
+}
+
+#ifdef _DOUBLE_IS_32BITS
+
+#ifdef __STDC__
+       double fabs(double x)
+#else
+       double fabs(x)
+       double x;
+#endif
+{
+       return (double) fabsf((float) x);
+}
+
+#endif /* defined(_DOUBLE_IS_32BITS) */