Kaydet (Commit) 0f32a95d authored tarafından Miklos Vajna's avatar Miklos Vajna

writerfilter: mark these as static

Change-Id: I240b95e09d3555c0fdcdf6c4b9eb458ad82460e4
üst 0f63fa05
...@@ -24,7 +24,7 @@ namespace resourcemodel { ...@@ -24,7 +24,7 @@ namespace resourcemodel {
// Stein's binary GCD for non-negative integers // Stein's binary GCD for non-negative integers
// https://en.wikipedia.org/wiki/Binary_GCD_algorithm // https://en.wikipedia.org/wiki/Binary_GCD_algorithm
sal_uInt32 gcd(sal_uInt32 a, sal_uInt32 b) static sal_uInt32 gcd(sal_uInt32 a, sal_uInt32 b)
{ {
if (a == 0 || b == 0) if (a == 0 || b == 0)
return a | b; return a | b;
...@@ -63,7 +63,7 @@ sal_uInt32 gcd(sal_uInt32 a, sal_uInt32 b) ...@@ -63,7 +63,7 @@ sal_uInt32 gcd(sal_uInt32 a, sal_uInt32 b)
return a << nShift; return a << nShift;
} }
sal_uInt32 lcm(sal_Int32 a, sal_Int32 b) static sal_uInt32 lcm(sal_Int32 a, sal_Int32 b)
{ {
return abs(a * b) / gcd(abs(a), abs(b)); return abs(a * b) / gcd(abs(a), abs(b));
} }
......
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