summaryrefslogtreecommitdiff
path: root/cesar/ce
diff options
context:
space:
mode:
authordufour2009-09-10 11:49:43 +0000
committerdufour2009-09-10 11:49:43 +0000
commitf93bd82f3b602b52e18918bb003c56b788c6f8f9 (patch)
treec5190e85a5aa4e3f274fd45fde951c06cc76e3fc /cesar/ce
parent6ca6c6b0d569d2a3004d6be1ad7aa34bd683dcff (diff)
* ce/rx/cp:
- simplify function to compute the size of the RLE encoding. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@5493 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/ce')
-rw-r--r--cesar/ce/rx/cp/inc/mme.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cesar/ce/rx/cp/inc/mme.h b/cesar/ce/rx/cp/inc/mme.h
index ec11d1e63d..db5c01ee74 100644
--- a/cesar/ce/rx/cp/inc/mme.h
+++ b/cesar/ce/rx/cp/inc/mme.h
@@ -49,17 +49,17 @@ extern inline u8
ce_rx_cp_mme_rle_size (u8 count)
{
dbg_assert (count <= 74);
- u8 size = 0;
+ u8 size;
/* Not using RLE for this? */
if (count < 3)
/* Increase by number of consecutive tone. */
- size += (4 * count);
+ size = (4 * count);
else if (count < 11)
/* RLE with one nibble (and the tone). */
- size += (4 * 2);
+ size = (4 * 2);
else
/* RLE with two nibbles (and the tone). */
- size += 4 * 3;
+ size = 4 * 3;
return size;
}