Double.java (doubleToRawLongBits): Now native.
* java/lang/Double.java (doubleToRawLongBits): Now native. * java/lang/Float.java (floatToRawIntBits): Likewise. * java/lang/natDouble.cc (doubleToRawLongBits): New method. * java/lang/natFloat.cc (floatToRawIntBits): Likewise. From-SVN: r39572
This commit is contained in:
parent
30f87f1a70
commit
0e206b71aa
5 changed files with 27 additions and 17 deletions
|
@ -1,6 +1,6 @@
|
|||
// natFloat.cc - Implementation of java.lang.Float native methods.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* Copyright (C) 1998, 1999, 2001 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
|
@ -33,6 +33,14 @@ java::lang::Float::floatToIntBits(jfloat value)
|
|||
return u.l;
|
||||
}
|
||||
|
||||
jint
|
||||
java::lang::Float::floatToRawIntBits(jfloat value)
|
||||
{
|
||||
union u u;
|
||||
u.d = value;
|
||||
return u.l;
|
||||
}
|
||||
|
||||
jfloat
|
||||
java::lang::Float::intBitsToFloat(jint bits)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue