Skip to content

Commit 542e709

Browse files
committed
Switched to __builtin_memmove
1 parent 67ea997 commit 542e709

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

libc/src/wchar/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ add_entrypoint_object(
146146
DEPENDS
147147
libc.hdr.types.size_t
148148
libc.hdr.wchar_macros
149-
libc.src.string.memory_utils.inline_memmove
150149
libc.src.__support.macros.null_check
151150
)
152151

libc/src/wchar/wmemmove.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "hdr/types/wchar_t.h"
1313
#include "src/__support/common.h"
1414
#include "src/__support/macros/null_check.h"
15-
#include "src/string/memory_utils/inline_memmove.h"
1615

1716
namespace LIBC_NAMESPACE_DECL {
1817

@@ -21,7 +20,7 @@ LLVM_LIBC_FUNCTION(wchar_t *, wmemmove,
2120
LIBC_CRASH_ON_NULLPTR(dest);
2221
LIBC_CRASH_ON_NULLPTR(src);
2322

24-
inline_memmove(dest, src, n * sizeof(wchar_t));
23+
__builtin_memmove(dest, src, n * sizeof(wchar_t));
2524
return dest;
2625
}
2726

0 commit comments

Comments
 (0)