1.1 --- a/src/share/vm/utilities/globalDefinitions_xlc.hpp Thu May 22 11:36:23 2014 -0400 1.2 +++ b/src/share/vm/utilities/globalDefinitions_xlc.hpp Tue Jul 29 13:54:16 2014 +0200 1.3 @@ -114,16 +114,6 @@ 1.4 typedef uint32_t juint; 1.5 typedef uint64_t julong; 1.6 1.7 -//---------------------------------------------------------------------------------------------------- 1.8 -// Special (possibly not-portable) casts 1.9 -// Cast floats into same-size integers and vice-versa w/o changing bit-pattern 1.10 -// %%%%%% These seem like standard C++ to me--how about factoring them out? - Ungar 1.11 - 1.12 -inline jint jint_cast (jfloat x) { return *(jint* )&x; } 1.13 -inline jlong jlong_cast (jdouble x) { return *(jlong* )&x; } 1.14 - 1.15 -inline jfloat jfloat_cast (jint x) { return *(jfloat* )&x; } 1.16 -inline jdouble jdouble_cast(jlong x) { return *(jdouble*)&x; } 1.17 1.18 //---------------------------------------------------------------------------------------------------- 1.19 // Constant for jlong (specifying an long long canstant is C++ compiler specific)