diff options
author | Christophe Lyon <christophe.lyon@st.com> | 2011-02-21 17:38:46 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-02-24 08:53:36 +0100 |
commit | 56bf4fe2978e3e14c976feae825dbbd3700573d0 (patch) | |
tree | 603788cee7d601667b2c245ba4f04df9ca36b9de /target-arm/helper.c | |
parent | c30fe7dfc44cf6ca0213e0c15f92cf00f796721b (diff) | |
download | qemu-56bf4fe2978e3e14c976feae825dbbd3700573d0.zip |
target-arm: Introduce float64_256 and float64_512 constants.
These two constants will be used by helper functions such as recpe_f32
and rsqrte_f32.
Signed-off-by: Christophe Lyon <christophe.lyon@st.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-arm/helper.c')
-rw-r--r-- | target-arm/helper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-arm/helper.c b/target-arm/helper.c index 7f63a280fc..30c18090d2 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -2687,6 +2687,11 @@ float32 HELPER(rsqrts_f32)(float32 a, float32 b, CPUState *env) /* NEON helpers. */ +/* Constants 256 and 512 are used in some helpers; we avoid relying on + * int->float conversions at run-time. */ +#define float64_256 make_float64(0x4070000000000000LL) +#define float64_512 make_float64(0x4080000000000000LL) + /* TODO: The architecture specifies the value that the estimate functions should return. We return the exact reciprocal/root instead. */ float32 HELPER(recpe_f32)(float32 a, CPUState *env) |