Use standard memcpy() on x86-64, as it behaves similar performs the equal or better

This commit is contained in:
Kfir Itzhak 2017-03-14 22:41:35 +02:00
parent 67f7ad40ae
commit f30192e5da
1 changed files with 5 additions and 0 deletions

View File

@ -279,6 +279,7 @@ void Image::Initialise()
fptr_deinterlace_4field_gray8 = &std_deinterlace_4field_gray8;
Debug(4,"Deinterlace: Using standard functions");
#if defined(__i386__) && !defined(__x86_64__)
/* Use SSE2 aligned memory copy? */
if(config.cpu_extensions && sseversion >= 20) {
fptr_imgbufcpy = &sse2_aligned_memcpy;
@ -287,6 +288,10 @@ void Image::Initialise()
fptr_imgbufcpy = &memcpy;
Debug(4,"Image buffer copy: Using standard memcpy");
}
#else
fptr_imgbufcpy = &memcpy;
Debug(4,"Image buffer copy: Using standard memcpy");
#endif
/* Code below relocated from zm_local_camera */
Debug( 3, "Setting up static colour tables" );