1 // natFloat.cc - Implementation of java.lang.VMFloat native methods.
3 /* Copyright (C) 1998, 1999, 2001, 2006 Free Software Foundation
5 This file is part of libgcj.
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
13 #include <java/lang/Float.h>
14 #include <java/lang/VMFloat.h>
24 java::lang::VMFloat::floatToIntBits(jfloat value)
28 jint e = u.l & 0x7f800000;
29 jint f = u.l & 0x007fffff;
31 if (e == 0x7f800000 && f != 0)
38 java::lang::VMFloat::floatToRawIntBits(jfloat value)
46 java::lang::VMFloat::intBitsToFloat(jint bits)