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

Diff of /classpath/java/lang/Float.java

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

revision 1.25 by ericb, Mon Feb 25 20:02:58 2002 UTC revision 1.26 by mark, Wed Jul 16 12:21:07 2003 UTC
# Line 1  Line 1 
1  /* Float.java -- object wrapper for float  /* Float.java -- object wrapper for float
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 38  exception statement from your version. * Line 39  exception statement from your version. *
39    
40  package java.lang;  package java.lang;
41    
 import gnu.classpath.Configuration;  
   
42  /**  /**
43   * Instances of class <code>Float</code> represent primitive   * Instances of class <code>Float</code> represent primitive
44   * <code>float</code> values.   * <code>float</code> values.
# Line 102  public final class Float extends Number Line 101  public final class Float extends Number
101    private final float value;    private final float value;
102    
103    /**    /**
    * Load native routines necessary for this class.  
    */  
   static  
   {  
     if (Configuration.INIT_LOAD_LIBRARY)  
       {  
         System.loadLibrary("javalang");  
       }  
   }  
   
   /**  
104     * Create a <code>Float</code> from the primitive <code>float</code>     * Create a <code>Float</code> from the primitive <code>float</code>
105     * specified.     * specified.
106     *     *
# Line 438  public final class Float extends Number Line 426  public final class Float extends Number
426     * @return the bits of the <code>float</code>     * @return the bits of the <code>float</code>
427     * @see #intBitsToFloat(int)     * @see #intBitsToFloat(int)
428     */     */
429    public static native int floatToIntBits(float value);    public static int floatToIntBits(float value)
430      {
431        return VMFloat.floatToIntBits(value);
432      }
433    
434    /**    /**
435     * Convert the float to the IEEE 754 floating-point "single format" bit     * Convert the float to the IEEE 754 floating-point "single format" bit
# Line 453  public final class Float extends Number Line 444  public final class Float extends Number
444     * @return the bits of the <code>float</code>     * @return the bits of the <code>float</code>
445     * @see #intBitsToFloat(int)     * @see #intBitsToFloat(int)
446     */     */
447    public static native int floatToRawIntBits(float value);    public static int floatToRawIntBits(float value)
448      {
449        return VMFloat.floatToRawIntBits(value);
450      }
451    
452    /**    /**
453     * Convert the argument in IEEE 754 floating-point "single format" bit     * Convert the argument in IEEE 754 floating-point "single format" bit
# Line 468  public final class Float extends Number Line 462  public final class Float extends Number
462     * @see #floatToIntBits(float)     * @see #floatToIntBits(float)
463     * @see #floatToRawIntBits(float)     * @see #floatToRawIntBits(float)
464     */     */
465    public static native float intBitsToFloat(int bits);    public static float intBitsToFloat(int bits)
466      {
467        return VMFloat.intBitsToFloat(bits);
468      }
469    
470    /**    /**
471     * Compare two Floats numerically by comparing their <code>float</code>     * Compare two Floats numerically by comparing their <code>float</code>

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

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