The getDoubleBits function was used exactly once to find the bit
representation of a double floating point value, which is the same thing
the common floatToBits64 function does. Eliminate x86's one off version,
and use the common one instead.
Change-Id: Icb0cec5a55d81a6eacf1bb5a3c2b8f16c414d0d9
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32927
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
if isinstance(imm, (int, long)):
imm = "ULL(%d)" % imm
elif isinstance(imm, float):
- imm = "getDoubleBits(%.16f)" % imm
+ imm = "floatToBits64(%.16f)" % imm
self.imm = imm
self.dataSize = dataSize
*/
void setRFlags(ThreadContext *tc, uint64_t val);
- /**
- * Extract the bit string representing a double value.
- */
- inline uint64_t getDoubleBits(double val) {
- return *(uint64_t *)(&val);
- }
-
/**
* Convert an x87 tag word to abridged tag format.
*