< prev index next >

src/cpu/zero/vm/bytes_zero.hpp

Print this page
rev 11647 : 8161258: Simplify including platform files.
Summary: Include patform files with macros cpu_header() etc. Do various cleanups of macro usages. Remove _64/_32 from adlc generated files and platform .hpp files. Merge stubRoutines_x86*.hpp. Remove empty mutex_<os>* files.
Reviewed-by: dholmes, coleenp, kbarrett
   1 /*
   2  * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright 2007, 2008, 2009 Red Hat, Inc.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.


 148   static inline void put_Java_u2(address p, u2 x) {
 149     put_native_u2(p, x);
 150   }
 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
   1 /*
   2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright 2007, 2008, 2009 Red Hat, Inc.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.


 148   static inline void put_Java_u2(address p, u2 x) {
 149     put_native_u2(p, x);
 150   }
 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 
 169 #include OS_CPU_HEADER_INLINE(bytes)




 170 
 171 #endif // VM_LITTLE_ENDIAN
 172 
 173 #endif // CPU_ZERO_VM_BYTES_ZERO_HPP
< prev index next >