[PATCH] x86-64: Check Prefer_FSRM in ifunc-memmove.h
H.J. Lu
hjl.tools@gmail.com
Mon May 21 18:21:00 GMT 2018
On Mon, May 21, 2018 at 10:37 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> Although the Fast Short REP MOVSB (FSRM) implementations of memmove,
> memcpy and mempcpy aren't used by the current processors, this patch
> adds Prefer_FSRM check in ifunc-memmove.h so that they can be used in
> the future.
>
> * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
> (index_arch_Prefer_FSRM): Likewise.
> * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
> Also check Prefer_FSRM.
> * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
> Also return OPTIMIZE (erms) for Prefer_FSRM.
This is the patch I am going to check in shortly.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-64-Check-Prefer_FSRM-in-ifunc-memmove.h.patch
Type: text/x-patch
Size: 2734 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20180521/8fb3044c/attachment.bin>
More information about the Libc-alpha
mailing list