mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 11:57:48 -03:00
Add comment about memcpy
This commit is contained in:
parent
b255ab8fe1
commit
34c59c2fd8
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue