MCPcopy Create free account
hub / github.com/apple/foundationdb / memcpy

Function memcpy

flow/flow.cpp:84–87  ·  view source on GitHub ↗

This compilation unit will be linked in to the main binary, so this should override glibc memcpy

Source from the content-addressed store, hash-verified

82
83// This compilation unit will be linked in to the main binary, so this should override glibc memcpy
84__attribute__((visibility("default"))) void* memcpy(void* __restrict __dest, const void* __restrict __src, size_t __n) {
85 // folly_memcpy is faster for small copies, but rte seems to win out in most other circumstances
86 return rte_memcpy(__dest, __src, __n);
87}
88#else
89void* rte_memcpy_noinline(void* __restrict __dest, const void* __restrict __src, size_t __n) {
90 return memcpy(__dest, __src, __n);

Callers 15

do_uncached_writeFunction · 0.85
initializeKeyMethod · 0.85
initKeyMethod · 0.85
encryptMethod · 0.85
verifyHeaderAuthTokenMethod · 0.85
BlobCipher.cppFile · 0.85
flat_buffers.cppFile · 0.85
doWritePublicKeyPemFunction · 0.85

Calls 1

rte_memcpyFunction · 0.85

Tested by 11

do_uncached_writeFunction · 0.68
test_single_memcpyFunction · 0.68
makeKeyMethod · 0.68
computeTenantPrefixFunction · 0.68
cleanupFunction · 0.68
parseArgumentsFunction · 0.68
genKeyFunction · 0.68
toIntegerFunction · 0.68
toByteStringFunction · 0.68
FastKeyMethod · 0.68
fastAllocTestFunction · 0.68