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
4b71bb35
Kaydet (Commit)
4b71bb35
authored
Eki 19, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
work around windows whining
Change-Id: If2922bca25c93edc25e1171001def8ce3011cf4c
üst
b564162d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
rational.cxx
tools/source/generic/rational.cxx
+4
-3
No files found.
tools/source/generic/rational.cxx
Dosyayı görüntüle @
4b71bb35
...
@@ -128,10 +128,11 @@ void rational_ReduceInaccurate(boost::rational<sal_Int64>& rRational, unsigned n
...
@@ -128,10 +128,11 @@ void rational_ReduceInaccurate(boost::rational<sal_Int64>& rRational, unsigned n
DBG_ASSERT
(
nSignificantBits
<
65
,
"More than 64 bit of significance is overkill!"
);
DBG_ASSERT
(
nSignificantBits
<
65
,
"More than 64 bit of significance is overkill!"
);
// How much bits can we lose?
// How much bits can we lose?
const
int
nMulBitsToLose
=
std
::
max
(
(
impl_NumberOfBits
(
nMul
)
-
int
(
nSignificantBits
)
),
0
);
const
int
nMulBitsToLose
=
impl_NumberOfBits
(
nMul
)
-
int
(
nSignificantBits
);
const
int
nDivBitsToLose
=
std
::
max
(
(
impl_NumberOfBits
(
nDiv
)
-
int
(
nSignificantBits
)
),
0
);
const
int
nDivBitsToLose
=
impl_NumberOfBits
(
nDiv
)
-
int
(
nSignificantBits
);
const
int
nToLose
=
std
::
min
(
nMulBitsToLose
,
nDivBitsToLose
);
int
nToLose
=
nMulBitsToLose
<
nDivBitsToLose
?
nMulBitsToLose
:
nDivBitsToLose
;
nToLose
=
nToLose
<
0
?
0
:
nToLose
;
// Remove the bits
// Remove the bits
nMul
>>=
nToLose
;
nMul
>>=
nToLose
;
...
...
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