|
Quick Lists
|
|
Bug ID:
|
6431242
|
|
Votes
|
0
|
|
Synopsis
|
Optimize Integer.reverseBytes()
|
|
Category
|
hotspot:compiler2
|
|
Reported Against
|
|
|
Release Fixed
|
hs10(b03),
6u4(b03) (Bug ID:2171794)
, 7(b03) (Bug ID:2176732)
|
|
State
|
10-Fix Delivered,
request for enhancement
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
6431243
,
6482634
,
6483694
|
|
Submit Date
|
27-MAY-2006
|
|
Description
|
Integer.reverseBytes() implements endianness conversion as:
public static int reverseBytes(int i) {
return ((i >>> 24) ) |
((i >> 8) & 0xFF00) |
((i << 8) & 0xFF0000) |
((i << 24));
}
Some architectures include instructions that do just that: BSWAP on x86 and LDUWA on SPARC, but HotSpot currently does not take advantage of them.
Similarly for Long.reverseBytes().
Posted Date : 2006-05-27 01:05:51.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
This is a candidate for intrinsification.
Posted Date : 2006-05-30 22:12:10.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |