aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2003-06-22 12:03:24 +0000
committerMax Horn2003-06-22 12:03:24 +0000
commite7c3fae1e8ca04dacd8ef4aebd201c275a974d05 (patch)
tree34c7c1508c6cb837702881066d2ebf74f284b406 /common
parent11ff7fe9a347efe37e2bd8fefca7e8c130f81af0 (diff)
downloadscummvm-rg350-e7c3fae1e8ca04dacd8ef4aebd201c275a974d05.tar.gz
scummvm-rg350-e7c3fae1e8ca04dacd8ef4aebd201c275a974d05.tar.bz2
scummvm-rg350-e7c3fae1e8ca04dacd8ef4aebd201c275a974d05.zip
no need to keep these regression tests: the changes are mathematically and operationally (read: taking into account side effects and special cases in computer arithmetics) equivalent to the old code
svn-id: r8606
Diffstat (limited to 'common')
-rw-r--r--common/scaler.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/common/scaler.cpp b/common/scaler.cpp
index 0d952110c1..4bc4ba6aba 100644
--- a/common/scaler.cpp
+++ b/common/scaler.cpp
@@ -97,8 +97,6 @@ static inline int GetResult(uint32 A, uint32 B, uint32 C, uint32 D) {
static inline uint32 INTERPOLATE(uint32 A, uint32 B) {
if (A != B) {
- // Non regression test
- assert ((((A & colorMask) + (B & colorMask)) >> 1) + (A & B & lowPixelMask)==(((A & colorMask) >> 1) + ((B & colorMask) >> 1) + (A & B & lowPixelMask)));
return (((A & colorMask) + (B & colorMask)) >> 1) + (A & B & lowPixelMask);
} else
return A;
@@ -106,8 +104,6 @@ static inline uint32 INTERPOLATE(uint32 A, uint32 B) {
static inline uint32 Q_INTERPOLATE(uint32 A, uint32 B, uint32 C, uint32 D) {
register uint32 x = ((A & qcolorMask) + (B & qcolorMask) + (C & qcolorMask) + (D & qcolorMask))>>2;
- // Non regression test
- assert (x==((A & qcolorMask) >> 2) + ((B & qcolorMask) >> 2) + ((C & qcolorMask) >> 2) + ((D & qcolorMask) >> 2));
register uint32 y = (A & qlowpixelMask) + (B & qlowpixelMask) + (C & qlowpixelMask) + (D & qlowpixelMask);
y = (y >> 2) & qlowpixelMask;