aboutsummaryrefslogtreecommitdiff
path: root/source/spc7110dec.c
diff options
context:
space:
mode:
authorTwinaphex2017-08-16 06:04:43 +0200
committerGitHub2017-08-16 06:04:43 +0200
commite2cffaea148cfb79cc3546642acb61245b96069e (patch)
treec0a7c48d53a52641d6451aef386b7c2b73c0752a /source/spc7110dec.c
parent4b70a73bcdb09e7f96a1e5696a512f4d33667f40 (diff)
parentb3711dfa5041d08490a8603fe221f267c0da290a (diff)
downloadsnes9x2005-e2cffaea148cfb79cc3546642acb61245b96069e.tar.gz
snes9x2005-e2cffaea148cfb79cc3546642acb61245b96069e.tar.bz2
snes9x2005-e2cffaea148cfb79cc3546642acb61245b96069e.zip
Merge pull request #41 from jamsilva/master
SA1 fixes and Brunnis' lagfix port
Diffstat (limited to 'source/spc7110dec.c')
-rw-r--r--source/spc7110dec.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/spc7110dec.c b/source/spc7110dec.c
index f5dc963..9adb4d6 100644
--- a/source/spc7110dec.c
+++ b/source/spc7110dec.c
@@ -119,7 +119,7 @@ void spc7110dec_clear(uint32_t mode, uint32_t offset, uint32_t index)
decomp.buffer_length = 0;
uint32_t i;
- for(i = 0; i < 32; i++) // reset decomp.context states
+ for(i = 0; i < 32; i++) /* reset decomp.context states */
{
decomp.context[i].index = 0;
decomp.context[i].invert = 0;
@@ -138,7 +138,7 @@ void spc7110dec_clear(uint32_t mode, uint32_t offset, uint32_t index)
break;
}
- while(index--) // decompress up to requested output data index
+ while(index--) /* decompress up to requested output data index */
spc7110dec_read();
decomp.read_counter = 0;
@@ -178,13 +178,13 @@ void spc7110dec_mode0(bool init)
/* Get bit */
uint32_t flag_lps;
- if(val <= span - prob) // mps
+ if(val <= span - prob) /* mps */
{
span = span - prob;
out = (out << 1) + mps;
flag_lps = 0;
}
- else // lps
+ else /* lps */
{
val = val - (span - (prob - 1));
span = prob - 1;
@@ -316,12 +316,12 @@ void spc7110dec_mode1(bool init)
/* Get symbol */
uint32_t flag_lps;
- if(val <= span - prob) // mps
+ if(val <= span - prob) /* mps */
{
span = span - prob;
flag_lps = 0;
}
- else // lps
+ else /* lps */
{
val = val - (span - (prob - 1));
span = prob - 1;
@@ -466,12 +466,12 @@ void spc7110dec_mode2(bool init)
/* Get symbol */
uint32_t flag_lps;
- if(val <= span - prob) // mps
+ if(val <= span - prob) /* mps */
{
span = span - prob;
flag_lps = 0;
}
- else // lps
+ else /* lps */
{
val = val - (span - (prob - 1));
span = prob - 1;