This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Add GCJ LOCAL markers to Float.java and Double.java


This seemed to be desired.  OK?

	* java/lang/Float.java, java/lang/Double.java: Add GCJ LOCAL
	markers.

Index: Float.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/Float.java,v
retrieving revision 1.14
diff -u -r1.14 Float.java
--- Float.java	13 Jun 2002 18:16:25 -0000	1.14
+++ Float.java	23 Sep 2003 19:00:04 -0000
@@ -438,7 +438,9 @@
    * @return the bits of the <code>float</code>
    * @see #intBitsToFloat(int)
    */
+  // GCJ LOCAL: We diverge from Classpath for efficiency.
   public static native int floatToIntBits(float value);
+  // END GCJ LOCAL
 
   /**
    * Convert the float to the IEEE 754 floating-point "single format" bit
@@ -453,7 +455,9 @@
    * @return the bits of the <code>float</code>
    * @see #intBitsToFloat(int)
    */
+  // GCJ LOCAL: We diverge from Classpath for efficiency.
   public static native int floatToRawIntBits(float value);
+  // END GCJ LOCAL
 
   /**
    * Convert the argument in IEEE 754 floating-point "single format" bit
@@ -468,7 +472,9 @@
    * @see #floatToIntBits(float)
    * @see #floatToRawIntBits(float)
    */
+  // GCJ LOCAL: We diverge from Classpath for efficiency.
   public static native float intBitsToFloat(int bits);
+  // END GCJ LOCAL
 
   /**
    * Compare two Floats numerically by comparing their <code>float</code>
Index: Double.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/Double.java,v
retrieving revision 1.17
diff -u -r1.17 Double.java
--- Double.java	3 Nov 2002 20:27:30 -0000	1.17
+++ Double.java	23 Sep 2003 19:00:04 -0000
@@ -428,7 +428,9 @@
    * @return the bits of the <code>double</code>
    * @see #longBitsToDouble(long)
    */
+  // GCJ LOCAL: We diverge from Classpath for efficiency.
   public static native long doubleToLongBits(double value);
+  // END GCJ LOCAL
 
   /**
    * Convert the double to the IEEE 754 floating-point "double format" bit
@@ -444,7 +446,9 @@
    * @return the bits of the <code>double</code>
    * @see #longBitsToDouble(long)
    */
+  // GCJ LOCAL: We diverge from Classpath for efficiency.
   public static native long doubleToRawLongBits(double value);
+  // END GCJ LOCAL
 
   /**
    * Convert the argument in IEEE 754 floating-point "double format" bit
@@ -459,7 +463,9 @@
    * @see #doubleToLongBits(double)
    * @see #doubleToRawLongBits(double)
    */
+  // GCJ LOCAL: We diverge from Classpath for efficiency.
   public static native double longBitsToDouble(long bits);
+  // END GCJ LOCAL
 
   /**
    * Compare two Doubles numerically by comparing their <code>double</code>

-- 
Nathanael Nerode  <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]