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: [PATCHv2] memcpy for ThunderX2


On 06/20/2017 03:06 PM, Saharoy, Saikat wrote:
    /* Support sysdeps/aarch64/multiarch/memcpy.c and memmove.c.  */
    IFUNC_IMPL (i, name, memcpy,
-	      IFUNC_IMPL_ADD (array, i, memcpy, IS_THUNDERX (midr),
-			      __memcpy_thunderx)
-	      IFUNC_IMPL_ADD (array, i, memcpy, 1, __memcpy_generic))
+              IFUNC_IMPL_ADD (array, i, memcpy, IS_THUNDERX2 (midr) || IS_THUNDERX2PA (midr),
+                              __memcpy_thunderx2)
+              IFUNC_IMPL_ADD (array, i, memcpy, IS_THUNDERX (midr),
+                              __memcpy_thunderx)
+              IFUNC_IMPL_ADD (array, i, memcpy, 1, __memcpy_generic))

This is for testing. Therefore you should run all implementations that can be run by the host, even those that are not tuned for the host. I suspect that both your new implementation and the thunderx1 implementation, can be run by all armv8 hosts.


r~


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