--- old/src/hotspot/share/utilities/globalDefinitions.hpp 2020-08-07 00:36:36.000000000 +0300 +++ new/src/hotspot/share/utilities/globalDefinitions.hpp 2020-08-07 00:36:35.000000000 +0300 @@ -233,8 +233,8 @@ return (byte_size + (HeapWordSize-1)) >> LogHeapWordSize; } -inline jfloat jfloat_cast(jint x); -inline jdouble jdouble_cast(jlong x); +inline jfloat jfloat_cast(jint x); +inline jdouble jdouble_cast(jlong x); //------------------------------------------- // Constant for jlong (standardized by C++11) @@ -688,6 +688,10 @@ return is_subword_type(t) || t == T_INT || t == T_LONG; } +inline bool is_floating_point_type(BasicType t) { + return (t == T_FLOAT || t == T_DOUBLE); +} + extern char type2char_tab[T_CONFLICT+1]; // Map a BasicType to a jchar inline char type2char(BasicType t) { return (uint)t < T_CONFLICT+1 ? type2char_tab[t] : 0; } extern int type2size[T_CONFLICT+1]; // Map BasicType to result stack elements