64 static inline void put_Java_u8(address p, u8 x) { put_native_u8(p, swap_u8(x)); }
65
66
67 // Efficient swapping of byte ordering
68 static inline u2 swap_u2(u2 x); // compiler-dependent implementation
69 static inline u4 swap_u4(u4 x); // compiler-dependent implementation
70 static inline u8 swap_u8(u8 x);
71 };
72
73
74 // The following header contains the implementations of swap_u2, swap_u4, and swap_u8[_base]
75 #ifdef TARGET_OS_ARCH_linux_x86
76 # include "bytes_linux_x86.inline.hpp"
77 #endif
78 #ifdef TARGET_OS_ARCH_solaris_x86
79 # include "bytes_solaris_x86.inline.hpp"
80 #endif
81 #ifdef TARGET_OS_ARCH_windows_x86
82 # include "bytes_windows_x86.inline.hpp"
83 #endif
84
85
86 #endif // CPU_X86_VM_BYTES_X86_HPP
|
64 static inline void put_Java_u8(address p, u8 x) { put_native_u8(p, swap_u8(x)); }
65
66
67 // Efficient swapping of byte ordering
68 static inline u2 swap_u2(u2 x); // compiler-dependent implementation
69 static inline u4 swap_u4(u4 x); // compiler-dependent implementation
70 static inline u8 swap_u8(u8 x);
71 };
72
73
74 // The following header contains the implementations of swap_u2, swap_u4, and swap_u8[_base]
75 #ifdef TARGET_OS_ARCH_linux_x86
76 # include "bytes_linux_x86.inline.hpp"
77 #endif
78 #ifdef TARGET_OS_ARCH_solaris_x86
79 # include "bytes_solaris_x86.inline.hpp"
80 #endif
81 #ifdef TARGET_OS_ARCH_windows_x86
82 # include "bytes_windows_x86.inline.hpp"
83 #endif
84 #ifdef TARGET_OS_ARCH_bsd_x86
85 # include "bytes_bsd_x86.inline.hpp"
86 #endif
87
88
89 #endif // CPU_X86_VM_BYTES_X86_HPP
|