Stricter estimate deviation limit

git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@171 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
This commit is contained in:
sinamas 2008-10-16 01:44:18 +00:00
parent 32232f58e1
commit 8b64e527af

View File

@ -20,10 +20,10 @@
#include <cstdlib>
static long limit(long est, const long reference) {
if (est > reference + (reference >> 4))
est = reference + (reference >> 4);
else if (est < reference - (reference >> 4))
est = reference - (reference >> 4);
if (est > reference + (reference >> 7))
est = reference + (reference >> 7);
else if (est < reference - (reference >> 7))
est = reference - (reference >> 7);
return est;
}