Merged revisions 7797-7917 via svnmerge from
[cacao.git] / src / native / vm / cldc1.1 / java_lang_Float.c
index 799500a935203a42cd2d30eccdce2d9e6296d7bb..5e89bf3f2b63ed33f36a1b0d999a930b075c687f 100644 (file)
@@ -1,6 +1,6 @@
 /* src/native/vm/cldc1.1/java_lang_Float.c
 
-   Copyright (C) 2006 R. Grafl, A. Krall, C. Kruegel, C. Oates,
+   Copyright (C) 2006, 2007 R. Grafl, A. Krall, C. Kruegel, C. Oates,
    R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
    C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
    Institut f. Computersprachen - TU Wien
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   Contact: cacao@cacaojvm.org
-
-   Authors: Phil Tomsich
-            Christian Thalinger
-
    $Id: java_lang_VMRuntime.c 5900 2006-11-04 17:30:44Z michi $
 
 */
 
 #include "native/jni.h"
 #include "native/native.h"
+
+#include "native/include/java_lang_Float.h"
+
 #include "vm/builtin.h"
 
 
+/* native methods implemented by this file ************************************/
+static JNINativeMethod methods[] = {
+       { "floatToIntBits", "(F)I",     (void *) (ptrint) &Java_java_lang_Float_floatToIntBits },
+};
+/* _Jv_java_lang_Float_init ****************************************************
+   Register native functions.
+*******************************************************************************/
+void _Jv_java_lang_Float_init(void)
+{
+       utf *u;
+       u = utf_new_char("java/lang/Float");
+       native_method_register(u, methods, NATIVE_METHODS_COUNT);
+}
+
 /*
  * Class:     java/lang/Float
  * Method:    floatToIntBits