]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/LibC/String/Copying.c
StdLib: Do not define memcpy for AARCH64 builds
[mirror_edk2.git] / StdLib / LibC / String / Copying.c
index e27519e24c0465902a32c8fb8cdae120c05a8ee6..96be24b9a9bd1c38b9b1d75efda23059a88a957a 100644 (file)
 #include  <stdlib.h>\r
 #include  <string.h>\r
 \r
-/** Do not define memcpy for IPF+GCC or ARM+GCC builds.\r
+/** Do not define memcpy for IPF+GCC or ARM/AARCH64+GCC builds.\r
     For IPF, using a GCC compiler, the memcpy function is converted to\r
     CopyMem by objcpy during build.\r
-    For ARM, the memcpy function is provided by the CompilerIntrinsics library.\r
+    For ARM/AARCH64, the memcpy function is provided by the CompilerIntrinsics library.\r
 **/\r
-#if !((defined(MDE_CPU_IPF) || defined(MDE_CPU_ARM)) && defined(__GNUC__))\r
+#if !((defined(MDE_CPU_IPF) || defined(MDE_CPU_ARM) || defined(MDE_CPU_AARCH64)) && defined(__GNUC__))\r
 /** The memcpy function copies n characters from the object pointed to by s2\r
     into the object pointed to by s1.\r
 \r