summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/cp
diff options
context:
space:
mode:
authordufour2009-09-16 11:06:40 +0000
committerdufour2009-09-16 11:06:40 +0000
commit57a47ea71e9833d0360b90b395fc52343574d3f2 (patch)
tree062a4f5e3ebb997206cec0463f76c7931953ba92 /cesar/ce/rx/cp
parent54293dedaaf1f2a454132a84444fca74ba986d07 (diff)
* mac/common, ce/rx/cp, test_general/station/fcall:
- add a function to construct the list of TMI enabled in a bitfield, - use this function where needed. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@5571 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/ce/rx/cp')
-rw-r--r--cesar/ce/rx/cp/src/mbox.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/cesar/ce/rx/cp/src/mbox.c b/cesar/ce/rx/cp/src/mbox.c
index 6b508de229..225e9f6905 100644
--- a/cesar/ce/rx/cp/src/mbox.c
+++ b/cesar/ce/rx/cp/src/mbox.c
@@ -55,13 +55,8 @@ ce_rx_cp_mbox_node_tonemap (ce_rx_t *ce_rx, cp_tei_t tei, tonemaps_t *tms,
/* Check parameters. */
dbg_assert (tms);
- /* Build TMI list. */
- uint i, tmi_list = 0;
- for (i = NEGOCIATED_TONEMAP_INDEX_FIRST; i < TONEMAP_INDEX_NB; i++)
- {
- if (tms->tm[i])
- tmi_list |= (1 << i);
- }
+ /* Get TMI list. */
+ u32 tmi_list = tonemaps_get_tonemap_enabled_list (tms);
/* Return allocated node. */
return ce_rx_cp_mbox_new_node (ce_rx, tei, tms->default_tmi, tmi_list,
@@ -75,13 +70,8 @@ ce_rx_cp_mbox_node_refresh_tmi (ce_rx_t *ce_rx, cp_tei_t tei, tonemaps_t *tms)
/* Check parameters. */
dbg_assert (tms);
- /* Build TMI list. */
- uint i, tmi_list = 0;
- for (i = NEGOCIATED_TONEMAP_INDEX_FIRST; i < TONEMAP_INDEX_NB; i++)
- {
- if (tms->tm[i])
- tmi_list |= (1 << i);
- }
+ /* Get TMI list. */
+ u32 tmi_list = tonemaps_get_tonemap_enabled_list (tms);
/* Return allocated node. */
return ce_rx_cp_mbox_new_node (ce_rx, tei, tms->default_tmi, tmi_list,