Re: [PATCH 1/2] include: bitops: Add mask extract64/deposit64

2024-08-06 Thread Alistair Francis
On Tue, Aug 6, 2024 at 5:32 PM Richard Henderson wrote: > > On 8/5/24 14:33, Alistair Francis wrote: > > Based on the RISC-V get_field() and set_field() macros add > > mask_extract64() and mask_deposit64() bitop functions. These can extrac > > and deposit values into fields using a bit field mask

Re: [PATCH 1/2] include: bitops: Add mask extract64/deposit64

2024-08-06 Thread Richard Henderson
On 8/5/24 14:33, Alistair Francis wrote: Based on the RISC-V get_field() and set_field() macros add mask_extract64() and mask_deposit64() bitop functions. These can extrac and deposit values into fields using a bit field mask directly instead of a length and shift. Signed-off-by: Alistair Franci

[PATCH 1/2] include: bitops: Add mask extract64/deposit64

2024-08-04 Thread Alistair Francis
Based on the RISC-V get_field() and set_field() macros add mask_extract64() and mask_deposit64() bitop functions. These can extrac and deposit values into fields using a bit field mask directly instead of a length and shift. Signed-off-by: Alistair Francis --- include/qemu/bitops.h | 35