< prev index next >
src/cpu/ppc/vm/bytes_ppc.hpp
Print this page
@ rev 12742 : imported patch alpinefixes-copyswapaligned
|
@@ -35,14 +35,10 @@
// Can I count on address always being a pointer to an unsigned char? Yes.
#if defined(VM_LITTLE_ENDIAN)
- // Returns true, if the byte ordering used by Java is different from the native byte ordering
- // of the underlying machine. For example, true for Intel x86, False, for Solaris on Sparc.
- static inline bool is_Java_byte_ordering_different() { return true; }
-
// Forward declarations of the compiler-dependent implementation
static inline u2 swap_u2(u2 x);
static inline u4 swap_u4(u4 x);
static inline u8 swap_u8(u8 x);
@@ -153,14 +149,10 @@
static inline void put_Java_u4(address p, u4 x) { put_native_u4(p, swap_u4(x)); }
static inline void put_Java_u8(address p, u8 x) { put_native_u8(p, swap_u8(x)); }
#else // !defined(VM_LITTLE_ENDIAN)
- // Returns true, if the byte ordering used by Java is different from the nativ byte ordering
- // of the underlying machine. For example, true for Intel x86, False, for Solaris on Sparc.
- static inline bool is_Java_byte_ordering_different() { return false; }
-
// Thus, a swap between native and Java ordering is always a no-op:
static inline u2 swap_u2(u2 x) { return x; }
static inline u4 swap_u4(u4 x) { return x; }
static inline u8 swap_u8(u8 x) { return x; }
< prev index next >