Skip to content

Commit

Permalink
Date: Sun, 11 Apr 2004 13:09:44 +0200
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Apr 11, 2004
1 parent 47affeb commit 7e85612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/SDL_blit.c
Expand Up @@ -116,7 +116,7 @@ static int SDL_SoftBlit(SDL_Surface *src, SDL_Rect *srcrect,
}

#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;

Expand All @@ -132,7 +132,7 @@ void SDL_memcpyMMX(char* to,char* from,int len)
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;

Expand Down

0 comments on commit 7e85612

Please sign in to comment.