< prev index next >
src/hotspot/share/utilities/globalDefinitions.hpp
Print this page
*** 1108,1127 ****
};
result = n;
if (value < 0) result = 0-result;
return result;
}
! static inline unsigned long uabs(unsigned long n) {
union {
! unsigned long result;
! long value;
};
result = n;
if (value < 0) result = 0-result;
return result;
}
! static inline unsigned long uabs(jlong n) { return uabs((unsigned long)n); }
static inline unsigned int uabs(int n) { return uabs((unsigned int)n); }
// "to" should be greater than "from."
inline intx byte_size(void* from, void* to) {
return (address)to - (address)from;
--- 1108,1127 ----
};
result = n;
if (value < 0) result = 0-result;
return result;
}
! static inline julong uabs(julong n) {
union {
! julong result;
! jlong value;
};
result = n;
if (value < 0) result = 0-result;
return result;
}
! static inline julong uabs(jlong n) { return uabs((julong)n); }
static inline unsigned int uabs(int n) { return uabs((unsigned int)n); }
// "to" should be greater than "from."
inline intx byte_size(void* from, void* to) {
return (address)to - (address)from;
< prev index next >