< prev index next >
src/hotspot/os_cpu/bsd_x86/bytes_bsd_x86.inline.hpp
Print this page
rev 59383 : [mq]: final
*** 1,7 ****
/*
! * Copyright (c) 1999, 2019, 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) 1999, 2020, 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.
*** 83,104 ****
#endif // AMD64
}
#ifdef AMD64
inline u8 Bytes::swap_u8(u8 x) {
- #ifdef SPARC_WORKS
- // workaround for SunStudio12 CR6615391
- __asm__ __volatile__ (
- "bswapq %0"
- :"=r" (x) // output : register 0 => x
- :"0" (x) // input : x => register 0
- :"0" // clobbered register
- );
- return x;
- #else
return bswap_64(x);
- #endif
}
#else
// Helper function for swap_u8
inline u8 Bytes::swap_u8_base(u4 x, u4 y) {
return (((u8)swap_u4(x))<<32) | swap_u4(y);
--- 83,93 ----
< prev index next >