[Scummvm-cvs-logs] CVS: scummvm/sky rnc_deco.cpp,1.1,1.2
Oliver Kiehl
olki at users.sourceforge.net
Wed Mar 5 11:24:09 CET 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sky .cvsignore,NONE,1.1
- Next message: [Scummvm-cvs-logs] CVS: scummvm scumm.dsp,1.30,NONE scummvm.dsp,1.32,NONE scummvm.dsw,1.4,NONE simon.dsp,1.16,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv5041
Modified Files:
rnc_deco.cpp
Log Message:
cleanup
Index: rnc_deco.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/rnc_deco.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- rnc_deco.cpp 5 Mar 2003 19:04:33 -0000 1.1
+++ rnc_deco.cpp 5 Mar 2003 19:23:35 -0000 1.2
@@ -138,23 +138,6 @@
}
-// RCL/RCR functions..operate on 16 bit ints only
-uint16 rcl(uint16 reg, uint16 *cflag)
-{
- uint16 lsb = *cflag;
- *cflag = reg >> 15;
- return (reg << 1) | lsb;
-}
-
-uint16 rcr(uint16 reg, uint16 *cflag)
-{
- uint16 msb = *cflag << 15;
- *cflag = reg & 1;
- return (reg >> 1) | msb;
-}
-
-
-
void make_huftable(uint16 *table)
{
uint16 bitLength, i, j;
@@ -176,13 +159,9 @@
uint16 b = huffCode >> (16 - bitLength);
uint16 a = 0;
- uint16 carry = 0;
- for (j = 0; j < bitLength; j++) {
- b = rcr(b, &carry);
- a = rcl(a, &carry);
-
- }
+ for (j = 0; j < bitLength; j++)
+ a |= ((b >> j) & 1) << (bitLength - j - 1);
*table++ = a;
*(table+0x1e) = (huffLength[i]<<8)|(i & 0x00FF);
@@ -191,7 +170,6 @@
}
}
}
-
uint16 input_value(uint16 *table)
{
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sky .cvsignore,NONE,1.1
- Next message: [Scummvm-cvs-logs] CVS: scummvm scumm.dsp,1.30,NONE scummvm.dsp,1.32,NONE scummvm.dsw,1.4,NONE simon.dsp,1.16,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list