aboutsummaryrefslogtreecommitdiff
path: root/common/scaler/2xsai.cpp
diff options
context:
space:
mode:
authorMax Horn2003-10-01 16:47:49 +0000
committerMax Horn2003-10-01 16:47:49 +0000
commit628f65b639ee9357935d8f141d43d46825506082 (patch)
tree5456ce7c06498953bc0dad6eb0b0320bfb42c3c0 /common/scaler/2xsai.cpp
parentb6f85de558e57bcae7932329523ed8478dd83760 (diff)
downloadscummvm-rg350-628f65b639ee9357935d8f141d43d46825506082.tar.gz
scummvm-rg350-628f65b639ee9357935d8f141d43d46825506082.tar.bz2
scummvm-rg350-628f65b639ee9357935d8f141d43d46825506082.zip
move INTERPOLATE / Q_INTERPOLATE to intern.h; remove some jumps (pipelin trashers I call 'em :-) from diffYUV
svn-id: r10523
Diffstat (limited to 'common/scaler/2xsai.cpp')
-rw-r--r--common/scaler/2xsai.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/common/scaler/2xsai.cpp b/common/scaler/2xsai.cpp
index 7cf02bba47..1c99168e63 100644
--- a/common/scaler/2xsai.cpp
+++ b/common/scaler/2xsai.cpp
@@ -43,21 +43,6 @@ static inline int GetResult(uint32 A, uint32 B, uint32 C, uint32 D) {
return rmap[y][x];
}
-template<int bitFormat>
-static inline uint32 INTERPOLATE(uint32 A, uint32 B) {
-
- return (((A & highBits) >> 1) + ((B & highBits) >> 1) + (A & B & lowBits));
-}
-
-template<int bitFormat>
-static inline uint32 Q_INTERPOLATE(uint32 A, uint32 B, uint32 C, uint32 D) {
- register uint32 x = ((A & qhighBits) >> 2) + ((B & qhighBits) >> 2) + ((C & qhighBits) >> 2) + ((D & qhighBits) >> 2);
- register uint32 y = ((A & qlowBits) + (B & qlowBits) + (C & qlowBits) + (D & qlowBits)) >> 2;
-
- y &= qlowBits;
- return x + y;
-}
-
#define INTERPOLATE INTERPOLATE<bitFormat>
#define Q_INTERPOLATE Q_INTERPOLATE<bitFormat>