]> sourceware.org Git - newlib-cygwin.git/commit
fhandler_proc/cpuinfo: support fast short REP MOVSB
authorBrian Inglis <Brian.Inglis@SystematicSW.ab.ca>
Fri, 21 Feb 2020 21:28:08 +0000 (14:28 -0700)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 24 Feb 2020 10:09:41 +0000 (11:09 +0100)
commit86f9ce97bc4dd8dd14757157ae944c2c678d62a9
tree0d352ab98f78e973fd8dc53b9773123a425bb81f
parentbf33f72d437dc603f13e53946a626e7d3c7836af
fhandler_proc/cpuinfo: support fast short REP MOVSB

Added in Linux 5.6:
Check FSRM and use REP MOVSB for short copies on systems that have it.

>From the Intel Optimization Reference Manual:

3.7.6.1 Fast Short REP MOVSB
Beginning with processors based on Ice Lake Client microarchitecture,
REP MOVSB performance is enhanced with string lengths up to 128 bytes.
Support for fast-short REP MOVSB is indicated by the CPUID feature flag:
CPUID [EAX=7H, ECX=0H).EDX.FAST_SHORT_REP_MOVSB[bit 4] = 1.
There is no change in the REP STOS performance.
winsup/cygwin/fhandler_proc.cc
This page took 0.030995 seconds and 5 git commands to generate.