mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 19:08:15 +00:00
HPL1: Remove unused function to silence warning
This commit is contained in:
parent
08f81ebd0a
commit
79ae5e7b91
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user