[Scummvm-git-logs] scummvm master -> 79ae5e7b912046dae8a4207f99c25b245cd447a4
grisenti
noreply at scummvm.org
Fri Sep 1 21:03:45 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
79ae5e7b91 HPL1: Remove unused function to silence warning
Commit: 79ae5e7b912046dae8a4207f99c25b245cd447a4
https://github.com/scummvm/scummvm/commit/79ae5e7b912046dae8a4207f99c25b245cd447a4
Author: grisenti (emanuele at grisenti.net)
Date: 2023-09-01T23:03:35+02:00
Commit Message:
HPL1: Remove unused function to silence warning
Changed paths:
engines/hpl1/engine/libraries/newton/core/dgGoogol.cpp
diff --git a/engines/hpl1/engine/libraries/newton/core/dgGoogol.cpp b/engines/hpl1/engine/libraries/newton/core/dgGoogol.cpp
index 6e7fa05dfb3..3f216e590de 100644
--- a/engines/hpl1/engine/libraries/newton/core/dgGoogol.cpp
+++ b/engines/hpl1/engine/libraries/newton/core/dgGoogol.cpp
@@ -19,8 +19,9 @@
* 3. This notice may not be removed or altered from any source distribution.
*/
-#include "dgStdafx.h"
#include "dgGoogol.h"
+#include "dgStdafx.h"
+#include "hpl1/debug.h"
dgGoogol::dgGoogol(void) :
m_sign(0), m_exponent(0) {
@@ -338,27 +339,8 @@ dgGoogol dgGoogol::operator-=(const dgGoogol &A) {
}
dgGoogol dgGoogol::Floor() const {
- if (m_exponent < 1) {
- return dgGoogol(0.0);
- }
- dgInt32 bits = m_exponent + 2;
- dgInt32 start = 0;
- while (bits >= 64) {
- bits -= 64;
- start++;
- }
-
- dgGoogol tmp(*this);
- for (dgInt32 i = DG_GOOGOL_SIZE - 1; i > start; i--) {
- tmp.m_mantissa[i] = 0;
- }
- dgUnsigned64 mask = (-1LL) << (64 - bits);
- tmp.m_mantissa[start] &= mask;
- if (m_sign) {
- NEWTON_ASSERT(0);
- }
-
- return tmp;
+ // removed to silence warning
+ HPL1_UNIMPLEMENTED(dgGoogol::Floor);
}
#ifdef _DEBUG
More information about the Scummvm-git-logs
mailing list