aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/lang/natFloat.cc
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2006-02-08 18:06:11 +0000
committerTom Tromey <tromey@gcc.gnu.org>2006-02-08 18:06:11 +0000
commit855dd2bcff9e32e053bf66e336405ded26e9c927 (patch)
tree9a1df881ae846a312ad5ddcb0929d04574b40956 /libjava/java/lang/natFloat.cc
parent59c02d8a613e46512e852d54ab2ff9209f47acc7 (diff)
downloadgcc-855dd2bcff9e32e053bf66e336405ded26e9c927.zip
gcc-855dd2bcff9e32e053bf66e336405ded26e9c927.tar.gz
gcc-855dd2bcff9e32e053bf66e336405ded26e9c927.tar.bz2
re PR java/22578 (should inline floatToIntBits et al)
gcc/java PR java/22578: * check-init.c (check_init): Handle VIEW_CONVERT_EXPR. * builtins.c (convert_real): New function. (java_builtins): Handle Float.intBitsToFloat, Float.floatToRawIntBits, Double.longBitsToDouble, Double.doubleToRawLongBits. libjava PR java/22578: * gcj/javaprims.h: Updated. * sources.am, Makefile.in: Rebuilt. * java/lang/natDouble.cc (doubleToLongBits): Moved to VMDouble. (doubleToRawLongBits): Likewise. (longBitsToDouble): Likewise. (toString): Likewise. (parseDouble): Likewise. * java/lang/natFloat.cc (floatToIntBits): Moved to VMFloat. (floatToRawIntBits): Likewise. (intBitsToFloat): Likewise. * java/lang/VMDouble.java: New file. * java/lang/VMFloat.java: New file. * java/lang/Float.java, java/lang/Double.java: Removed. From-SVN: r110759
Diffstat (limited to 'libjava/java/lang/natFloat.cc')
-rw-r--r--libjava/java/lang/natFloat.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/libjava/java/lang/natFloat.cc b/libjava/java/lang/natFloat.cc
index f035dd5..f090b81 100644
--- a/libjava/java/lang/natFloat.cc
+++ b/libjava/java/lang/natFloat.cc
@@ -1,6 +1,6 @@
-// natFloat.cc - Implementation of java.lang.Float native methods.
+// natFloat.cc - Implementation of java.lang.VMFloat native methods.
-/* Copyright (C) 1998, 1999, 2001 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2001, 2006 Free Software Foundation
This file is part of libgcj.
@@ -11,6 +11,7 @@ details. */
#include <config.h>
#include <java/lang/Float.h>
+#include <java/lang/VMFloat.h>
#include <jvm.h>
union u
@@ -20,7 +21,7 @@ union u
};
jint
-java::lang::Float::floatToIntBits(jfloat value)
+java::lang::VMFloat::floatToIntBits(jfloat value)
{
union u u;
u.d = value;
@@ -34,7 +35,7 @@ java::lang::Float::floatToIntBits(jfloat value)
}
jint
-java::lang::Float::floatToRawIntBits(jfloat value)
+java::lang::VMFloat::floatToRawIntBits(jfloat value)
{
union u u;
u.d = value;
@@ -42,7 +43,7 @@ java::lang::Float::floatToRawIntBits(jfloat value)
}
jfloat
-java::lang::Float::intBitsToFloat(jint bits)
+java::lang::VMFloat::intBitsToFloat(jint bits)
{
union u u;
u.l = bits;