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
This commit is contained in:
parent
11ff7fe9a3
commit
e7c3fae1e8
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue