< prev index next >
src/hotspot/cpu/aarch64/assembler_aarch64.hpp
Print this page
@@ -315,33 +315,10 @@
namespace ext
{
enum operation { uxtb, uxth, uxtw, uxtx, sxtb, sxth, sxtw, sxtx };
};
-// abs methods which cannot overflow and so are well-defined across
-// the entire domain of integer types.
-static inline unsigned int uabs(unsigned int n) {
- union {
- unsigned int result;
- int value;
- };
- result = n;
- if (value < 0) result = -result;
- return result;
-}
-static inline unsigned long uabs(unsigned long n) {
- union {
- unsigned long result;
- long value;
- };
- result = n;
- if (value < 0) result = -result;
- return result;
-}
-static inline unsigned long uabs(long n) { return uabs((unsigned long)n); }
-static inline unsigned long uabs(int n) { return uabs((unsigned int)n); }
-
// Addressing modes
class Address {
public:
enum mode { no_mode, base_plus_offset, pre, post, post_reg, pcrel,
< prev index next >