diff options
-rw-r--r-- | engines/sword25/util/double_serialization.cpp | 6 | ||||
-rw-r--r-- | engines/sword25/util/double_serialization.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/engines/sword25/util/double_serialization.cpp b/engines/sword25/util/double_serialization.cpp index 0d41ddc503..a34eb0fbff 100644 --- a/engines/sword25/util/double_serialization.cpp +++ b/engines/sword25/util/double_serialization.cpp @@ -65,6 +65,10 @@ double decodeDouble(SerializedDouble value) { return ((value.signAndSignificandTwo & 0x80000000) == 0x80000000) ? -returnValue : returnValue; } +#if 0 + +// Why these are needed? + uint64 encodeDouble_64(double value) { // Split the value into its significand and exponent int exponent; @@ -135,4 +139,6 @@ double decodeDouble_Compact(CompactSerializedDouble value) { return ((value.signAndSignificandOne & 0x80000000) == 0x80000000) ? -returnValue : returnValue; } +#endif + } // End of namespace Sword25 diff --git a/engines/sword25/util/double_serialization.h b/engines/sword25/util/double_serialization.h index e90338c369..a910a66f20 100644 --- a/engines/sword25/util/double_serialization.h +++ b/engines/sword25/util/double_serialization.h @@ -56,6 +56,7 @@ SerializedDouble encodeDouble(double value); */ double decodeDouble(SerializedDouble value); +#if 0 /** * Encodes a double as a uint64 * @@ -90,6 +91,8 @@ CompactSerializedDouble encodeDouble_Compact(double value); */ double decodeDouble_Compact(CompactSerializedDouble value); +#endif + } // End of namespace Sword25 #endif |