From f30192e5da396ba612ce3b18d4f8929978314746 Mon Sep 17 00:00:00 2001 From: Kfir Itzhak Date: Tue, 14 Mar 2017 22:41:35 +0200 Subject: [PATCH] Use standard memcpy() on x86-64, as it behaves similar performs the equal or better --- src/zm_image.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/zm_image.cpp b/src/zm_image.cpp index 7380c3d66..e6a5de354 100644 --- a/src/zm_image.cpp +++ b/src/zm_image.cpp @@ -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" );