mirror of
https://github.com/libretro/gambatte-libretro.git
synced 2024-11-26 17:30:23 +00:00
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:
parent
32232f58e1
commit
8b64e527af
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user