diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-08-10 21:51:05 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-08-10 22:28:15 -0400 |
| commit | 4129cdeb4d1e3969aba64cf2dad25b3864eedccb (patch) | |
| tree | 3cc91829e2f60f4dbab5c16b6b026f045ef87aee /Source/Core/VideoBackends/Software/Rasterizer.cpp | |
| parent | 568bdec5983a419dd06e9e497ec43d04677bc2df (diff) | |
Software: Apply static to some functions
Diffstat (limited to 'Source/Core/VideoBackends/Software/Rasterizer.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/Rasterizer.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/Core/VideoBackends/Software/Rasterizer.cpp b/Source/Core/VideoBackends/Software/Rasterizer.cpp index cfe038b0ea..5b764fcc7a 100644 --- a/Source/Core/VideoBackends/Software/Rasterizer.cpp +++ b/Source/Core/VideoBackends/Software/Rasterizer.cpp @@ -83,11 +83,9 @@ void Init() ZSlope.f0 = 1.f; } -inline int iround(float x) +static inline int iround(float x) { - int t; - - t = (int)x; + int t = (int)x; if ((x - t) >= 0.5) return t + 1; @@ -208,7 +206,7 @@ static void InitSlope(Slope *slope, float f1, float f2, float f3, float DX31, fl slope->f0 = f1; } -inline void CalculateLOD(s32 &lod, bool &linear, u32 texmap, u32 texcoord) +static inline void CalculateLOD(s32 &lod, bool &linear, u32 texmap, u32 texcoord) { FourTexUnits& texUnit = bpmem.tex[(texmap >> 2) & 1]; u8 subTexmap = texmap & 3; |
