aboutsummaryrefslogtreecommitdiff
path: root/linux-user/arm/nwfpe
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-09-21 18:40:57 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-09-21 18:40:57 +0000
commitd4fa8d909c03ae8fe2c43b8f1d92ea40f9de0e84 (patch)
treece1e29cfd542fb6d478f48d5dfbe2da6a9b90226 /linux-user/arm/nwfpe
parent6f4fc3679c4c860038f4fe0b277cc1196dbcc5a3 (diff)
Export tables properly to avoid a Sparse warning
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'linux-user/arm/nwfpe')
-rw-r--r--linux-user/arm/nwfpe/fpopcode.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/linux-user/arm/nwfpe/fpopcode.h b/linux-user/arm/nwfpe/fpopcode.h
index 0b501dc6ea..d62011458e 100644
--- a/linux-user/arm/nwfpe/fpopcode.h
+++ b/linux-user/arm/nwfpe/fpopcode.h
@@ -366,21 +366,22 @@ TABLE 5
/* Get the rounding mode from the opcode. */
#define getRoundingMode(opcode) ((opcode & MASK_ROUNDING_MODE) >> 5)
+extern const floatx80 floatx80Constant[];
+extern const float64 float64Constant[];
+extern const float32 float32Constant[];
+
static inline floatx80 getExtendedConstant(const unsigned int nIndex)
{
- extern const floatx80 floatx80Constant[];
return floatx80Constant[nIndex];
}
static inline float64 getDoubleConstant(const unsigned int nIndex)
{
- extern const float64 float64Constant[];
return float64Constant[nIndex];
}
static inline float32 getSingleConstant(const unsigned int nIndex)
{
- extern const float32 float32Constant[];
return float32Constant[nIndex];
}