From b5a8718e735c4548b4c1e76b147a132e3ce39452 Mon Sep 17 00:00:00 2001 From: yang Date: Wed, 10 Oct 2012 14:29:59 +0800 Subject: [PATCH] modify macro definition in mask table --- common/NE10_mask_table.c | 4 ++-- common/NE10_mask_table.h | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/common/NE10_mask_table.c b/common/NE10_mask_table.c index afc4bf5..c0a414b 100644 --- a/common/NE10_mask_table.c +++ b/common/NE10_mask_table.c @@ -20,7 +20,7 @@ #include "NE10_mask_table.h" -const ne10_uint32_t ne10_qMaskTable32[MaskTableSize32] = +const ne10_uint32_t ne10_qMaskTable32[Q_MASK_TABLE_SIZE] = { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000000, @@ -28,7 +28,7 @@ const ne10_uint32_t ne10_qMaskTable32[MaskTableSize32] = 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x00000000, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF }; -const ne10_uint32_t ne10_dMaskTable32[6] = +const ne10_uint32_t ne10_dMaskTable32[D_MASK_TABLE_SIZE] = { 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000000, diff --git a/common/NE10_mask_table.h b/common/NE10_mask_table.h index 66ba84e..9787ffc 100644 --- a/common/NE10_mask_table.h +++ b/common/NE10_mask_table.h @@ -22,9 +22,10 @@ #ifndef _ARM_MASK_TABLE_H #define _ARM_MASK_TABLE_H -#define MaskTableSize32 20 +#define Q_MASK_TABLE_SIZE 20 +#define D_MASK_TABLE_SIZE 6 -extern const ne10_uint32_t ne10_qMaskTable32[MaskTableSize32]; -extern const ne10_uint32_t ne10_dMaskTable32[6]; +extern const ne10_uint32_t ne10_qMaskTable32[Q_MASK_TABLE_SIZE]; +extern const ne10_uint32_t ne10_dMaskTable32[D_MASK_TABLE_SIZE]; #endif -- 2.7.4