< prev index next >

src/share/vm/utilities/globalDefinitions_sparcWorks.hpp

Print this page




 214 
 215    typedef int (*int_fnP_cond_tP_mutex_tP_timestruc_tP)(cond_t *cv, mutex_t *mx, timestruc_t *abst);
 216    typedef int (*int_fnP_cond_tP_mutex_tP)(cond_t *cv, mutex_t *mx);
 217 
 218    // typedef for missing API in libc
 219    typedef int (*int_fnP_mutex_tP_i_vP)(mutex_t *, int, void *);
 220    typedef int (*int_fnP_mutex_tP)(mutex_t *);
 221    typedef int (*int_fnP_cond_tP_i_vP)(cond_t *cv, int scope, void *arg);
 222    typedef int (*int_fnP_cond_tP)(cond_t *cv);
 223 };
 224 #endif
 225 
 226 //----------------------------------------------------------------------------------------------------
 227 // Debugging
 228 
 229 #define DEBUG_EXCEPTION ::abort();
 230 
 231 extern "C" void breakpoint();
 232 #define BREAKPOINT ::breakpoint()
 233 


 234 // checking for nanness
 235 #ifdef SOLARIS
 236 #ifdef SPARC
 237 inline int g_isnan(float  f) { return isnanf(f); }
 238 #else
 239 // isnanf() broken on Intel Solaris use isnand()
 240 inline int g_isnan(float  f) { return isnand(f); }
 241 #endif
 242 
 243 inline int g_isnan(double f) { return isnand(f); }
 244 #elif LINUX
 245 inline int g_isnan(float  f) { return isnanf(f); }
 246 inline int g_isnan(double f) { return isnan(f); }
 247 #else
 248 #error "missing platform-specific definition here"
 249 #endif
 250 
 251 // Checking for finiteness
 252 
 253 inline int g_isfinite(jfloat  f)                 { return finite(f); }




 214 
 215    typedef int (*int_fnP_cond_tP_mutex_tP_timestruc_tP)(cond_t *cv, mutex_t *mx, timestruc_t *abst);
 216    typedef int (*int_fnP_cond_tP_mutex_tP)(cond_t *cv, mutex_t *mx);
 217 
 218    // typedef for missing API in libc
 219    typedef int (*int_fnP_mutex_tP_i_vP)(mutex_t *, int, void *);
 220    typedef int (*int_fnP_mutex_tP)(mutex_t *);
 221    typedef int (*int_fnP_cond_tP_i_vP)(cond_t *cv, int scope, void *arg);
 222    typedef int (*int_fnP_cond_tP)(cond_t *cv);
 223 };
 224 #endif
 225 
 226 //----------------------------------------------------------------------------------------------------
 227 // Debugging
 228 
 229 #define DEBUG_EXCEPTION ::abort();
 230 
 231 extern "C" void breakpoint();
 232 #define BREAKPOINT ::breakpoint()
 233 
 234 #define NORETURN_ATTRIBUTE(function) function __attribute__((noreturn))
 235 
 236 // checking for nanness
 237 #ifdef SOLARIS
 238 #ifdef SPARC
 239 inline int g_isnan(float  f) { return isnanf(f); }
 240 #else
 241 // isnanf() broken on Intel Solaris use isnand()
 242 inline int g_isnan(float  f) { return isnand(f); }
 243 #endif
 244 
 245 inline int g_isnan(double f) { return isnand(f); }
 246 #elif LINUX
 247 inline int g_isnan(float  f) { return isnanf(f); }
 248 inline int g_isnan(double f) { return isnan(f); }
 249 #else
 250 #error "missing platform-specific definition here"
 251 #endif
 252 
 253 // Checking for finiteness
 254 
 255 inline int g_isfinite(jfloat  f)                 { return finite(f); }


< prev index next >