[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [RFC PATCH 01/15] qemu/int128: Add int128_or
From: |
Taylor Simpson |
Subject: |
RE: [RFC PATCH 01/15] qemu/int128: Add int128_or |
Date: |
Thu, 29 Oct 2020 15:01:49 +0000 |
Reviewed by: Taylor Simpson <tsimpson@quicinc.com>
> -----Original Message-----
> From: Qemu-devel <qemu-devel-
> bounces+tsimpson=quicinc.com@nongnu.org> On Behalf Of Richard
> Henderson
> Sent: Tuesday, October 20, 2020 11:52 PM
> To: qemu-devel@nongnu.org
> Cc: alex.bennee@linaro.org
> Subject: [RFC PATCH 01/15] qemu/int128: Add int128_or
>
> Signed-off-by: Richard Henderson <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
>
>
- [RFC PATCH 00/15] softfloat: alternate conversion of float128_addsub, Richard Henderson, 2020/10/21
- [RFC PATCH 01/15] qemu/int128: Add int128_or, Richard Henderson, 2020/10/21
- [RFC PATCH 02/15] qemu/int128: Add int128_clz, int128_ctz, Richard Henderson, 2020/10/21
- [RFC PATCH 03/15] qemu/int128: Rename int128_rshift, int128_lshift, Richard Henderson, 2020/10/21
- [RFC PATCH 05/15] qemu/int128: Add int128_geu, Richard Henderson, 2020/10/21
- [RFC PATCH 04/15] qemu/int128: Add int128_shr, Richard Henderson, 2020/10/21
- [RFC PATCH 06/15] softfloat: Use mulu64 for mul64To128, Richard Henderson, 2020/10/21
- [RFC PATCH 07/15] softfloat: Use int128.h for some operations, Richard Henderson, 2020/10/21
- [RFC PATCH 08/15] softfloat: Tidy a * b + inf return, Richard Henderson, 2020/10/21