ctf: make float use readlong for 64 bit floats
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Wed, 27 Nov 2013 20:48:19 +0000 (15:48 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Mon, 2 Dec 2013 22:14:53 +0000 (17:14 -0500)
Change-Id: I15dd34cd4a5068894155bac33a8ada58d35fcfca
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/19015
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/FloatDefinition.java

index 9543df4103d2029ff5f4e9b1fdb95d70292ed1f3..12d07bebdb1c4af0797233f66d4181d8771a4dae 100644 (file)
@@ -103,11 +103,7 @@ public class FloatDefinition extends Definition {
 
     private static double readRawFloat64(BitBuffer input, final int manBits,
             final int expBits) throws CTFReaderException {
-        long low = input.get(32, false);
-        low = low & 0x00000000FFFFFFFFL;
-        long high = input.get(32, false);
-        high = high & 0x00000000FFFFFFFFL;
-        long temp = (high << 32) | low;
+        long temp = input.get(64, false);
         return createFloat(temp, manBits - 1, expBits);
     }
 
This page took 0.024697 seconds and 5 git commands to generate.