[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/35] qemu/int128: Add int128_or
From: |
Richard Henderson |
Subject: |
[PULL 01/35] qemu/int128: Add int128_or |
Date: |
Wed, 17 Feb 2021 15:39:49 -0800 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20201021045149.1582203-2-richard.henderson@linaro.org>
---
include/qemu/int128.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/include/qemu/int128.h b/include/qemu/int128.h
index 76ea405922..52fc238421 100644
--- a/include/qemu/int128.h
+++ b/include/qemu/int128.h
@@ -58,6 +58,11 @@ static inline Int128 int128_and(Int128 a, Int128 b)
return a & b;
}
+static inline Int128 int128_or(Int128 a, Int128 b)
+{
+ return a | b;
+}
+
static inline Int128 int128_rshift(Int128 a, int n)
{
return a >> n;
@@ -208,6 +213,11 @@ static inline Int128 int128_and(Int128 a, Int128 b)
return (Int128) { a.lo & b.lo, a.hi & b.hi };
}
+static inline Int128 int128_or(Int128 a, Int128 b)
+{
+ return (Int128) { a.lo | b.lo, a.hi | b.hi };
+}
+
static inline Int128 int128_rshift(Int128 a, int n)
{
int64_t h;
--
2.25.1
- [PULL 00/35] hexagon initial commit, Richard Henderson, 2021/02/17
- [PULL 01/35] qemu/int128: Add int128_or,
Richard Henderson <=
- [PULL 02/35] Hexagon Update MAINTAINERS file, Richard Henderson, 2021/02/17
- [PULL 03/35] Hexagon (target/hexagon) README, Richard Henderson, 2021/02/17
- [PULL 04/35] Hexagon (include/elf.h) ELF machine definition, Richard Henderson, 2021/02/17
- [PULL 05/35] Hexagon (target/hexagon) scalar core definition, Richard Henderson, 2021/02/17
- [PULL 06/35] Hexagon (disas) disassembler, Richard Henderson, 2021/02/17
- [PULL 07/35] Hexagon (target/hexagon) register names, Richard Henderson, 2021/02/17
- [PULL 10/35] Hexagon (target/hexagon) architecture types, Richard Henderson, 2021/02/17
- [PULL 09/35] Hexagon (target/hexagon) GDB Stub, Richard Henderson, 2021/02/17
- [PULL 08/35] Hexagon (target/hexagon) scalar core helpers, Richard Henderson, 2021/02/17
- [PULL 11/35] Hexagon (target/hexagon) instruction and packet types, Richard Henderson, 2021/02/17