o remove old bsnes version

This commit is contained in:
David Voswinkel
2009-05-12 19:44:23 +02:00
parent 9cf6eae076
commit 1c30d3db56
401 changed files with 0 additions and 68623 deletions

View File

@@ -1,25 +0,0 @@
#ifdef BPPU_CPP
//color addition / subtraction
//thanks go to blargg for the optimized algorithms
inline uint16 bPPU::addsub(uint32 x, uint32 y, bool halve) {
if(!regs.color_mode) {
if(!halve) {
unsigned sum = x + y;
unsigned carry = (sum - ((x ^ y) & 0x0421)) & 0x8420;
return (sum - carry) | (carry - (carry >> 5));
} else {
return (x + y - ((x ^ y) & 0x0421)) >> 1;
}
} else {
unsigned diff = x - y + 0x8420;
unsigned borrow = (diff - ((x ^ y) & 0x8420)) & 0x8420;
if(!halve) {
return (diff - borrow) & (borrow - (borrow >> 5));
} else {
return (((diff - borrow) & (borrow - (borrow >> 5))) & 0x7bde) >> 1;
}
}
}
#endif