summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorYounes Manton <[email protected]>2008-08-30 13:26:06 -0400
committerYounes Manton <[email protected]>2008-09-01 14:43:54 -0400
commit29f876cc90605ad7de1141443d3b242395eed5ee (patch)
tree5f9a5e5084a30a53353ca015ba077477819cdbee /src/gallium
parente959c23a31c11f0bcc5775e6e0eb48c5c3d70cf3 (diff)
g3dvl: Inline hint for relatively small, frequently called functions.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/g3dvl/vl_r16snorm_mc_buf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/state_trackers/g3dvl/vl_r16snorm_mc_buf.c b/src/gallium/state_trackers/g3dvl/vl_r16snorm_mc_buf.c
index 2d9558587cf..08aed4542e7 100644
--- a/src/gallium/state_trackers/g3dvl/vl_r16snorm_mc_buf.c
+++ b/src/gallium/state_trackers/g3dvl/vl_r16snorm_mc_buf.c
@@ -79,7 +79,7 @@ static int vlBegin
return 0;
}
-static int vlGrabFrameCodedBlock(short *src, short *dst, unsigned int dst_pitch)
+static inline int vlGrabFrameCodedBlock(short *src, short *dst, unsigned int dst_pitch)
{
unsigned int y;
@@ -94,7 +94,7 @@ static int vlGrabFrameCodedBlock(short *src, short *dst, unsigned int dst_pitch)
return 0;
}
-static int vlGrabFieldCodedBlock(short *src, short *dst, unsigned int dst_pitch)
+static inline int vlGrabFieldCodedBlock(short *src, short *dst, unsigned int dst_pitch)
{
unsigned int y;
@@ -119,7 +119,7 @@ static int vlGrabFieldCodedBlock(short *src, short *dst, unsigned int dst_pitch)
return 0;
}
-static int vlGrabNoBlock(short *dst, unsigned int dst_pitch)
+static inline int vlGrabNoBlock(short *dst, unsigned int dst_pitch)
{
unsigned int y;
@@ -130,11 +130,11 @@ static int vlGrabNoBlock(short *dst, unsigned int dst_pitch)
0,
VL_BLOCK_WIDTH * 2
);
-
+
return 0;
}
-static int vlGrabBlocks
+static inline int vlGrabBlocks
(
struct vlR16SnormBufferedMC *mc,
unsigned int mbx,
@@ -164,7 +164,7 @@ static int vlGrabBlocks
tex_pitch = tex_surface->stride / tex_surface->block.size;
texels += mbpy * tex_pitch + mbpx;
-
+
for (y = 0; y < 2; ++y)
{
for (x = 0; x < 2; ++x, ++tb)
@@ -241,7 +241,7 @@ static int vlGrabBlocks
return 0;
}
-static int vlGrabMacroBlock
+static inline int vlGrabMacroBlock
(
struct vlR16SnormBufferedMC *mc,
struct vlMpeg2MacroBlock *macroblock