This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 2/2] aarch64: Optimized memcpy and memmove for Kunpeng processor


Hi Xuelei,

In order to select the right memmove implementation, multiarch/memmove.c needs
similar changes as multiarch/memcpy.c.

Also since the memmove entry sequence does both check for medium and large cases, the
full overlap check should be done in both. Currently only sizes 96-512 benefit, not the
move_long case:

+       /* long move: more than 512 bytes align the dstend */
+       .p2align 4
+L(move_long):
+1:
+       add     srcend, src, count
+       add     dstend, dstin, count

This should do the same as move_middle:

+L(move_middle):
+       cbz     tmp1, 3f

Wilco

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]