Remove useless files

This commit is contained in:
Alexey Milovidov 2021-03-08 13:22:17 +03:00
parent 3fb5b247ed
commit e02de2355e
4 changed files with 0 additions and 37 deletions

View File

@ -54,9 +54,6 @@ if (GLIBC_COMPATIBILITY)
message (STATUS "Some symbols from glibc will be replaced for compatibility")
if (ENABLE_TESTS)
add_subdirectory (tests)
endif ()
elseif (YANDEX_OFFICIAL_BUILD)
message (WARNING "Option GLIBC_COMPATIBILITY must be turned on for production builds.")
endif ()

View File

@ -1,2 +0,0 @@
add_executable(memcpy_test memcpy_test.cpp)
target_link_libraries(memcpy_test common memcpy)

View File

@ -1,26 +0,0 @@
#include <string.h>
#include <iostream>
#include <memcpy.h>
__attribute__((__noinline__)) void memcpy_noinline(void * __restrict dst, const void * __restrict src, size_t size)
{
memcpy(dst, src, size);
}
int main(int, char **)
{
constexpr size_t buf_size = 100;
char buf[buf_size]{};
memcpy_noinline(buf, "abc", 3);
size_t bytes_to_copy = 3;
while (bytes_to_copy * 2 < buf_size)
{
memcpy_noinline(&buf[bytes_to_copy], buf, bytes_to_copy);
bytes_to_copy *= 2;
}
std::cerr << buf << "\n";
return 0;
}

View File

@ -1,6 +0,0 @@
#include "FastMemcpy.h"
extern "C" void * memcpy(void * __restrict destination, const void * __restrict source, size_t size)
{
return memcpy_fast(destination, source, size);
}