diff options
author | Matheus Ferst <matheus.ferst@eldorado.org.br> | 2022-03-30 14:59:30 -0300 |
---|---|---|
committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-04-20 18:00:30 -0300 |
commit | bea592300b387fa62fda59878886eb84fe373374 (patch) | |
tree | 95ac324a019eff6a28ecea7b80f99436f475fdc2 /include/qemu/int128.h | |
parent | 4de49ddfacd8154eba5f2de897c732175d80af5f (diff) | |
download | qemu-bea592300b387fa62fda59878886eb84fe373374.zip qemu-bea592300b387fa62fda59878886eb84fe373374.tar.gz qemu-bea592300b387fa62fda59878886eb84fe373374.tar.bz2 |
softfloat: add float128_to_int128
Implements float128_to_int128 based on parts_float_to_int logic.
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220330175932.6995-7-matheus.ferst@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'include/qemu/int128.h')
-rw-r--r-- | include/qemu/int128.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/int128.h b/include/qemu/int128.h index 1f82918..ef71f56 100644 --- a/include/qemu/int128.h +++ b/include/qemu/int128.h @@ -431,5 +431,7 @@ static inline void bswap128s(Int128 *s) } #define UINT128_MAX int128_make128(~0LL, ~0LL) +#define INT128_MAX int128_make128(UINT64_MAX, INT64_MAX) +#define INT128_MIN int128_make128(0, INT64_MIN) #endif /* INT128_H */ |