Revert "[common] add AVX/AVX2 memory copy implementations"

This reverts commit e61678ef1b.
GCC only supports multi-versioning in C++
This commit is contained in:
Geoffrey McRae
2023-11-19 00:18:48 +11:00
parent e61678ef1b
commit 750cab83a3
3 changed files with 13 additions and 124 deletions

View File

@@ -27,8 +27,18 @@
#include "common/framebuffer.h"
#include "common/types.h"
void rectCopyUnaligned(uint8_t * dst, const uint8_t * src,
int ystart, int yend, int dx, int dstPitch, int srcPitch, int width);
inline static void rectCopyUnaligned(uint8_t * dst, const uint8_t * src,
int ystart, int yend, int dx, int dstPitch, int srcPitch, int width)
{
src += ystart * srcPitch + dx;
dst += ystart * dstPitch + dx;
for (int i = ystart; i < yend; ++i)
{
memcpy(dst, src, width);
src += srcPitch;
dst += dstPitch;
}
}
void rectsBufferToFramebuffer(FrameDamageRect * rects, int count, int bpp,
FrameBuffer * frame, int dstPitch, int height,