Add optimized AArch64 versions of bcopy and wmemmove based on memmove
Add optimized versions of bcopy and wmemmove for AArch64 based on the memmove implementation Change-Id: I82fbe8a7221ce224c567ffcfed7a94a53640fca8 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
This commit is contained in:
committed by
Christopher Ferris
parent
1c4d83012f
commit
6f2bde3441
@@ -442,3 +442,14 @@ TEST(wchar, wcsftime) {
|
||||
EXPECT_EQ(24U, wcsftime(buf, sizeof(buf), L"%c", &t));
|
||||
EXPECT_STREQ(L"Sun Mar 10 00:00:00 2100", buf);
|
||||
}
|
||||
|
||||
TEST(wchar, wmemmove) {
|
||||
const wchar_t const_wstr[] = L"This is a test of something or other.....";
|
||||
wchar_t* wstr = new wchar_t[sizeof(const_wstr)];
|
||||
|
||||
wmemmove(wstr, const_wstr, sizeof(const_wstr)/sizeof(wchar_t));
|
||||
EXPECT_STREQ(const_wstr, wstr);
|
||||
|
||||
wmemmove(wstr+5, wstr, sizeof(const_wstr)/sizeof(wchar_t) - 5);
|
||||
EXPECT_STREQ(L"This This is a test of something or other.", wstr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user