src/cpu/x86/vm/bytes_x86.hpp
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1997, 2001, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 20,29 ****
--- 20,34 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
+ #ifndef CPU_X86_VM_BYTES_X86_HPP
+ #define CPU_X86_VM_BYTES_X86_HPP
+
+ #include "memory/allocation.hpp"
+
class Bytes: AllStatic {
private:
#ifndef AMD64
// Helper function for swap_u8
static inline u8 swap_u8_base(u4 x, u4 y); // compiler-dependent implementation
*** 65,70 ****
static inline u8 swap_u8(u8 x);
};
// The following header contains the implementations of swap_u2, swap_u4, and swap_u8[_base]
! #include "incls/_bytes_pd.inline.hpp.incl"
--- 70,86 ----
static inline u8 swap_u8(u8 x);
};
// The following header contains the implementations of swap_u2, swap_u4, and swap_u8[_base]
! #ifdef TARGET_OS_ARCH_linux_x86
! # include "bytes_linux_x86.inline.hpp"
! #endif
! #ifdef TARGET_OS_ARCH_solaris_x86
! # include "bytes_solaris_x86.inline.hpp"
! #endif
! #ifdef TARGET_OS_ARCH_windows_x86
! # include "bytes_windows_x86.inline.hpp"
! #endif
!
!
! #endif // CPU_X86_VM_BYTES_X86_HPP