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 |
|
|
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; |
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 |
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 |
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> |