151 static inline void put_Java_u4(address p, u4 x) {
152 put_native_u4(p, x);
153 }
154 static inline void put_Java_u8(address p, u8 x) {
155 put_native_u8(p, x);
156 }
157
158 // No byte-order reversal is needed
159 static inline u2 swap_u2(u2 x) { return x; }
160 static inline u4 swap_u4(u4 x) { return x; }
161 static inline u8 swap_u8(u8 x) { return x; }
162 #endif // VM_LITTLE_ENDIAN
163 };
164
165 #ifdef VM_LITTLE_ENDIAN
166 // The following header contains the implementations of swap_u2,
167 // swap_u4, and swap_u8
168 #ifdef TARGET_OS_ARCH_linux_zero
169 # include "bytes_linux_zero.inline.hpp"
170 #endif
171
172 #endif // VM_LITTLE_ENDIAN
173
174 #endif // CPU_ZERO_VM_BYTES_ZERO_HPP
|
151 static inline void put_Java_u4(address p, u4 x) {
152 put_native_u4(p, x);
153 }
154 static inline void put_Java_u8(address p, u8 x) {
155 put_native_u8(p, x);
156 }
157
158 // No byte-order reversal is needed
159 static inline u2 swap_u2(u2 x) { return x; }
160 static inline u4 swap_u4(u4 x) { return x; }
161 static inline u8 swap_u8(u8 x) { return x; }
162 #endif // VM_LITTLE_ENDIAN
163 };
164
165 #ifdef VM_LITTLE_ENDIAN
166 // The following header contains the implementations of swap_u2,
167 // swap_u4, and swap_u8
168 #ifdef TARGET_OS_ARCH_linux_zero
169 # include "bytes_linux_zero.inline.hpp"
170 #endif
171 #ifdef TARGET_OS_ARCH_bsd_zero
172 # include "bytes_bsd_zero.inline.hpp"
173 #endif
174
175 #endif // VM_LITTLE_ENDIAN
176
177 #endif // CPU_ZERO_VM_BYTES_ZERO_HPP
|