hotspot/src/cpu/x86/vm/bytes_x86.hpp
changeset 7397 5b173b4ca846
parent 5547 f4b087cbb361
child 10565 dc90c239f4ec
equal deleted inserted replaced
7396:518b01b064ff 7397:5b173b4ca846
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2001, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
       
    24 
       
    25 #ifndef CPU_X86_VM_BYTES_X86_HPP
       
    26 #define CPU_X86_VM_BYTES_X86_HPP
       
    27 
       
    28 #include "memory/allocation.hpp"
    24 
    29 
    25 class Bytes: AllStatic {
    30 class Bytes: AllStatic {
    26  private:
    31  private:
    27 #ifndef AMD64
    32 #ifndef AMD64
    28   // Helper function for swap_u8
    33   // Helper function for swap_u8
    65   static inline u8   swap_u8(u8 x);
    70   static inline u8   swap_u8(u8 x);
    66 };
    71 };
    67 
    72 
    68 
    73 
    69 // The following header contains the implementations of swap_u2, swap_u4, and swap_u8[_base]
    74 // The following header contains the implementations of swap_u2, swap_u4, and swap_u8[_base]
    70 #include "incls/_bytes_pd.inline.hpp.incl"
    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