jdk/src/java.base/share/classes/java/nio/Heap-X-Buffer.java.template
changeset 33665 0599d4cde183
parent 33656 ef901bc43f7a
parent 33662 747a61ad0977
child 36933 3e6453e2d833
equal deleted inserted replaced
33661:ad7c7378a002 33665:0599d4cde183
   475     // float
   475     // float
   476 
   476 
   477 #if[rw]
   477 #if[rw]
   478 
   478 
   479     public float getFloat() {
   479     public float getFloat() {
   480         int x = unsafe.getIntUnaligned(hb, byteOffset(nextPutIndex(4)), bigEndian);
   480         int x = unsafe.getIntUnaligned(hb, byteOffset(nextGetIndex(4)), bigEndian);
   481         return Float.intBitsToFloat(x);
   481         return Float.intBitsToFloat(x);
   482     }
   482     }
   483 
   483 
   484     public float getFloat(int i) {
   484     public float getFloat(int i) {
   485         int x = unsafe.getIntUnaligned(hb, byteOffset(checkIndex(i, 4)), bigEndian);
   485         int x = unsafe.getIntUnaligned(hb, byteOffset(checkIndex(i, 4)), bigEndian);