summary refs log tree commit diff stats
path: root/include/qemu/int128.h
diff options
context:
space:
mode:
authorMatheus Ferst <matheus.ferst@eldorado.org.br>2022-03-30 14:59:30 -0300
committerDaniel Henrique Barboza <danielhb413@gmail.com>2022-04-20 18:00:30 -0300
commitbea592300b387fa62fda59878886eb84fe373374 (patch)
tree95ac324a019eff6a28ecea7b80f99436f475fdc2 /include/qemu/int128.h
parent4de49ddfacd8154eba5f2de897c732175d80af5f (diff)
downloadfocaccia-qemu-bea592300b387fa62fda59878886eb84fe373374.tar.gz
focaccia-qemu-bea592300b387fa62fda59878886eb84fe373374.zip
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 '')
-rw-r--r--include/qemu/int128.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/int128.h b/include/qemu/int128.h
index 1f82918c73..ef71f56e3f 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 */