Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0f32a95d
Kaydet (Commit)
0f32a95d
authored
Agu 31, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: mark these as static
Change-Id: I240b95e09d3555c0fdcdf6c4b9eb458ad82460e4
üst
0f63fa05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Fraction.cxx
writerfilter/source/resourcemodel/Fraction.cxx
+2
-2
No files found.
writerfilter/source/resourcemodel/Fraction.cxx
Dosyayı görüntüle @
0f32a95d
...
@@ -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
)
s
tatic
s
al_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
)
s
tatic
s
al_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
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment