mirror of https://gitee.com/openkylin/qemu.git
Export tables properly to avoid a Sparse warning
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
6f4fc3679c
commit
d4fa8d909c
|
@ -366,21 +366,22 @@ TABLE 5
|
||||||
/* Get the rounding mode from the opcode. */
|
/* Get the rounding mode from the opcode. */
|
||||||
#define getRoundingMode(opcode) ((opcode & MASK_ROUNDING_MODE) >> 5)
|
#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)
|
static inline floatx80 getExtendedConstant(const unsigned int nIndex)
|
||||||
{
|
{
|
||||||
extern const floatx80 floatx80Constant[];
|
|
||||||
return floatx80Constant[nIndex];
|
return floatx80Constant[nIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline float64 getDoubleConstant(const unsigned int nIndex)
|
static inline float64 getDoubleConstant(const unsigned int nIndex)
|
||||||
{
|
{
|
||||||
extern const float64 float64Constant[];
|
|
||||||
return float64Constant[nIndex];
|
return float64Constant[nIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline float32 getSingleConstant(const unsigned int nIndex)
|
static inline float32 getSingleConstant(const unsigned int nIndex)
|
||||||
{
|
{
|
||||||
extern const float32 float32Constant[];
|
|
||||||
return float32Constant[nIndex];
|
return float32Constant[nIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue