/[classpath]/classpath/java/lang/Double.java
ViewVC logotype

Diff of /classpath/java/lang/Double.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31 by mark, Thu Oct 10 13:38:21 2002 UTC revision 1.32 by mark, Wed Jul 16 12:21:07 2003 UTC
# Line 1  Line 1 
1  /* Double.java -- object wrapper for double  /* Double.java -- object wrapper for double
2     Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.     Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
3       Free Software Foundation, Inc.
4    
5  This file is part of GNU Classpath.  This file is part of GNU Classpath.
6    
# Line 35  this exception to your version of the li Line 36  this exception to your version of the li
36  obligated to do so.  If you do not wish to do so, delete this  obligated to do so.  If you do not wish to do so, delete this
37  exception statement from your version. */  exception statement from your version. */
38    
   
39  package java.lang;  package java.lang;
40    
41  import gnu.classpath.Configuration;  import gnu.classpath.Configuration;
# Line 428  public final class Double extends Number Line 428  public final class Double extends Number
428     * @return the bits of the <code>double</code>     * @return the bits of the <code>double</code>
429     * @see #longBitsToDouble(long)     * @see #longBitsToDouble(long)
430     */     */
431    public static native long doubleToLongBits(double value);    public static long doubleToLongBits(double value)
432      {
433        return VMDouble.doubleToLongBits(value);
434      }
435    
436    /**    /**
437     * Convert the double to the IEEE 754 floating-point "double format" bit     * Convert the double to the IEEE 754 floating-point "double format" bit
# Line 444  public final class Double extends Number Line 447  public final class Double extends Number
447     * @return the bits of the <code>double</code>     * @return the bits of the <code>double</code>
448     * @see #longBitsToDouble(long)     * @see #longBitsToDouble(long)
449     */     */
450    public static native long doubleToRawLongBits(double value);    public static long doubleToRawLongBits(double value)
451      {
452        return VMDouble.doubleToRawLongBits(value);
453      }
454    
455    /**    /**
456     * Convert the argument in IEEE 754 floating-point "double format" bit     * Convert the argument in IEEE 754 floating-point "double format" bit
# Line 459  public final class Double extends Number Line 465  public final class Double extends Number
465     * @see #doubleToLongBits(double)     * @see #doubleToLongBits(double)
466     * @see #doubleToRawLongBits(double)     * @see #doubleToRawLongBits(double)
467     */     */
468    public static native double longBitsToDouble(long bits);    public static double longBitsToDouble(long bits)
469      {
470        return VMDouble.longBitsToDouble(bits);
471      }
472    
473    /**    /**
474     * Compare two Doubles numerically by comparing their <code>double</code>     * Compare two Doubles numerically by comparing their <code>double</code>

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26