Improve generic Index*.
Unapplied parts of #39996 (closed).
YMMV, but on my computer my versions are 2× faster on x86-64
that uses them for DWord
s and QWord
s. (And always surpass REP SCAS
-based assembler implementations of System.IndexWord
and System.IndexDWord
on i386
, especially for small Count
s.)
Edited by Rika