summary refs log tree commit diff stats
path: root/include/fpu/softfloat.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* softfloat: Add 16 bit integer to float conversionsPeter Maydell2014-01-081-0/+21
| | | | | | | | | Add the float to 16 bit integer conversion routines. These can be trivially implemented in terms of the int32_to_float* routines, but providing them makes our API more symmetrical and can simplify callers. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net>
* softfloat: Add float to 16bit integer conversions.Will Newton2014-01-081-0/+4
| | | | | | | | | | ARMv8 requires support for converting 32 and 64bit floating point values to signed and unsigned 16bit integers. Signed-off-by: Will Newton <will.newton@linaro.org> [PMM: updated not to incorrectly set Inexact for Invalid inputs] Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net>
* softfloat: Add minNum() and maxNum() functions to softfloat.Will Newton2013-12-101-0/+4
| | | | | | | | | | Add floatnn_minnum() and floatnn_maxnum() functions which are equivalent to the minNum() and maxNum() functions from IEEE 754-2008. They are similar to min() and max() but differ in the handling of QNaN arguments. Signed-off-by: Will Newton <will.newton@linaro.org> Message-id: 1386158099-9239-5-git-send-email-will.newton@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
* softfloat: Implement uint64_to_float128Richard Henderson2013-01-051-0/+3
| | | | | | Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* fpu: move public header file to include/fpuPaolo Bonzini2012-12-191-0/+638
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>