Add comment about memcpy

This commit is contained in:
Alexander David Frick 2022-03-15 10:17:59 -05:00 committed by GitHub
parent b255ab8fe1
commit 34c59c2fd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,6 +58,8 @@ void* memset(void* dest, int c, size_t count) {
// The compiler generates calls to memcpy for ARM64 debug builds so we need to
// supply a memcpy implementation in that configuration.
// See comments above for why we do this incantation.
// SET BY ALEX313031 FOR ALL BUILDS BECAUSE IT CAUSES ERRORS
// DURING CROSS-BUILDING IF UNSET.
__attribute__((used))
void* memcpy(void* destination, const void* source, size_t count) {
auto* dst = reinterpret_cast<uint8_t*>(destination);