[PATCH v2 1/1] riscv: Add Zbkb optimized repeat_bytes helper

Pincheng Wang pincheng.plct@isrc.iscas.ac.cn
Fri Oct 31 01:07:01 GMT 2025


On 2025/10/31 08:59, Peter Bergner wrote:
> On 9/20/25 8:59 AM, Peter Bergner wrote:
>> On 9/18/25 7:42 PM, Pincheng Wang wrote:
>>> Introduce a RISC-V specific string-misc.h to provide an optimized
>>> repeat_bytes implementation when the Zbkb extension is available.
>>> The new version uses packh/packw/pack instruction count and avoiding
>>> high latency instructions. This helper is used by several mem and string
>>> functions, and falls back to the generic implementation when Zbkb is not
>>> present.
>>
>> LGTM.
>>
>> Reviewed-by: Peter Bergner <bergner@tenstorrent.com>
> 
> This has been reviewed and approved.  Is there any reason you haven't
> pushed this upstream yet?  Or do you need help with that?
> 
> Peter
> 

Hi Peter,

Thank you for the confirmation. Glad to hear the patch has been apporved!

This is my first contribution to glibc, and I currently do not have 
commit access. It would be greatly appreciated if someone could help 
push this upstream. Please let me known if there is anything I need to 
do on my side to assist with the process.

Best regards,
Pincheng Wang



More information about the Libc-alpha mailing list