|
| From: | Richard Henderson |
| Subject: | Re: [Qemu-devel] [PATCH v1 27/41] s390x/tcg: Implement VECTOR ELEMENT ROTATE LEFT LOGICAL |
| Date: | Fri, 12 Apr 2019 14:15:45 -1000 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 4/11/19 12:08 AM, David Hildenbrand wrote:
> +#define DEF_ROTL(BITS)
> \
> +static uint##BITS##_t rotl##BITS(uint##BITS##_t a, uint8_t count)
> \
> +{
> \
> + count &= BITS - 1;
> \
> + return (a << count) | (a >> (BITS - count));
> \
> +}
> +DEF_ROTL(8)
> +DEF_ROTL(16)
We already have rol8 and rol16 in <qemu/bitops.h> for this.
Otherwise,
Reviewed-by: Richard Henderson <address@hidden>
This does point out that I should go ahead and fill out the
variable shift and rotate patterns in gvec...
r~
| [Prev in Thread] | Current Thread | [Next in Thread] |