Commit d666ee03 authored by Sam Lantinga's avatar Sam Lantinga

Date: Sun, 11 Apr 2004 13:09:44 +0200

From: Stephane Marchesin
Subject: [SDL] [Patch] inlining memcpy functions

I (finally) did some benchmarking of the misc mmx & sse blitting
functions, and found a little bottleneck in the memcpy ones : you get
~10% more performance on small surface blitting if you inline them.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40883
parent b310759c
...@@ -116,7 +116,7 @@ static int SDL_SoftBlit(SDL_Surface *src, SDL_Rect *srcrect, ...@@ -116,7 +116,7 @@ static int SDL_SoftBlit(SDL_Surface *src, SDL_Rect *srcrect,
} }
#ifdef MMX_ASMBLIT #ifdef MMX_ASMBLIT
void SDL_memcpyMMX(char* to,char* from,int len) static __inline__ void SDL_memcpyMMX(char* to,char* from,int len)
{ {
int i; int i;
...@@ -132,7 +132,7 @@ void SDL_memcpyMMX(char* to,char* from,int len) ...@@ -132,7 +132,7 @@ void SDL_memcpyMMX(char* to,char* from,int len)
SDL_memcpy(to, from, len&7); SDL_memcpy(to, from, len&7);
} }
void SDL_memcpySSE(char* to,char* from,int len) static __inline__ void SDL_memcpySSE(char* to,char* from,int len)
{ {
int i; int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment