1 |
/* VMFloat.c - java.lang.VMFloat native functions |
/* VMFloat.c - java.lang.VMFloat native functions |
2 |
Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2003, 2004 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
45 |
* Method: floatToIntBits |
* Method: floatToIntBits |
46 |
* Signature: (F)I |
* Signature: (F)I |
47 |
*/ |
*/ |
48 |
JNIEXPORT jint JNICALL Java_java_lang_VMFloat_floatToIntBits |
JNIEXPORT jint JNICALL |
49 |
(JNIEnv * env, jclass cls, jfloat value) |
Java_java_lang_VMFloat_floatToIntBits |
50 |
|
(JNIEnv * env __attribute__((__unused__)), |
51 |
|
jclass cls __attribute__((__unused__)), |
52 |
|
jfloat value) |
53 |
{ |
{ |
54 |
jvalue u; |
jvalue u; |
55 |
jint e, f; |
jint e, f; |
68 |
* Method: floatToRawIntBits |
* Method: floatToRawIntBits |
69 |
* Signature: (F)I |
* Signature: (F)I |
70 |
*/ |
*/ |
71 |
JNIEXPORT jint JNICALL Java_java_lang_VMFloat_floatToRawIntBits |
JNIEXPORT jint JNICALL |
72 |
(JNIEnv * env, jclass cls, jfloat value) |
Java_java_lang_VMFloat_floatToRawIntBits |
73 |
|
(JNIEnv * env __attribute__((__unused__)), |
74 |
|
jclass cls __attribute__((__unused__)), |
75 |
|
jfloat value) |
76 |
{ |
{ |
77 |
jvalue u; |
jvalue u; |
78 |
u.f = value; |
u.f = value; |
84 |
* Method: intBitsToFloat |
* Method: intBitsToFloat |
85 |
* Signature: (I)F |
* Signature: (I)F |
86 |
*/ |
*/ |
87 |
JNIEXPORT jfloat JNICALL Java_java_lang_VMFloat_intBitsToFloat |
JNIEXPORT jfloat JNICALL |
88 |
(JNIEnv * env, jclass cls, jint bits) |
Java_java_lang_VMFloat_intBitsToFloat |
89 |
|
(JNIEnv * env __attribute__((__unused__)), |
90 |
|
jclass cls __attribute__((__unused__)), |
91 |
|
jint bits) |
92 |
{ |
{ |
93 |
jvalue u; |
jvalue u; |
94 |
u.i = bits; |
u.i = bits; |