Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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ç
Batuhan Osman TASKAYA
cpython
Commits
5bf91dc4
Kaydet (Commit)
5bf91dc4
authored
Ara 12, 2013
tarafından
Stefan Krah
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge from 3.3.
üst
8fda4749
da12adac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
mpdecimal.c
Modules/_decimal/libmpdec/mpdecimal.c
+7
-7
No files found.
Modules/_decimal/libmpdec/mpdecimal.c
Dosyayı görüntüle @
5bf91dc4
...
@@ -3202,9 +3202,9 @@ mpd_qabs(mpd_t *result, const mpd_t *a, const mpd_context_t *ctx,
...
@@ -3202,9 +3202,9 @@ mpd_qabs(mpd_t *result, const mpd_t *a, const mpd_context_t *ctx,
}
}
static
inline
void
static
inline
void
_mpd_ptrswap
(
mpd_t
**
a
,
mpd_t
**
b
)
_mpd_ptrswap
(
const
mpd_t
**
a
,
const
mpd_t
**
b
)
{
{
mpd_t
*
t
=
*
a
;
const
mpd_t
*
t
=
*
a
;
*
a
=
*
b
;
*
a
=
*
b
;
*
b
=
t
;
*
b
=
t
;
}
}
...
@@ -3232,7 +3232,7 @@ static void
...
@@ -3232,7 +3232,7 @@ static void
_mpd_qaddsub
(
mpd_t
*
result
,
const
mpd_t
*
a
,
const
mpd_t
*
b
,
uint8_t
sign_b
,
_mpd_qaddsub
(
mpd_t
*
result
,
const
mpd_t
*
a
,
const
mpd_t
*
b
,
uint8_t
sign_b
,
const
mpd_context_t
*
ctx
,
uint32_t
*
status
)
const
mpd_context_t
*
ctx
,
uint32_t
*
status
)
{
{
mpd_t
*
big
,
*
small
;
const
mpd_t
*
big
,
*
small
;
MPD_NEW_STATIC
(
big_aligned
,
0
,
0
,
0
,
0
);
MPD_NEW_STATIC
(
big_aligned
,
0
,
0
,
0
,
0
);
MPD_NEW_CONST
(
tiny
,
0
,
0
,
1
,
1
,
1
,
1
);
MPD_NEW_CONST
(
tiny
,
0
,
0
,
1
,
1
,
1
,
1
);
mpd_uint_t
carry
;
mpd_uint_t
carry
;
...
@@ -3242,7 +3242,7 @@ _mpd_qaddsub(mpd_t *result, const mpd_t *a, const mpd_t *b, uint8_t sign_b,
...
@@ -3242,7 +3242,7 @@ _mpd_qaddsub(mpd_t *result, const mpd_t *a, const mpd_t *b, uint8_t sign_b,
/* compare exponents */
/* compare exponents */
big
=
(
mpd_t
*
)
a
;
small
=
(
mpd_t
*
)
b
;
big
=
a
;
small
=
b
;
if
(
big
->
exp
!=
small
->
exp
)
{
if
(
big
->
exp
!=
small
->
exp
)
{
if
(
small
->
exp
>
big
->
exp
)
{
if
(
small
->
exp
>
big
->
exp
)
{
_mpd_ptrswap
(
&
big
,
&
small
);
_mpd_ptrswap
(
&
big
,
&
small
);
...
@@ -4421,7 +4421,7 @@ mpd_qfma(mpd_t *result, const mpd_t *a, const mpd_t *b, const mpd_t *c,
...
@@ -4421,7 +4421,7 @@ mpd_qfma(mpd_t *result, const mpd_t *a, const mpd_t *b, const mpd_t *c,
const
mpd_context_t
*
ctx
,
uint32_t
*
status
)
const
mpd_context_t
*
ctx
,
uint32_t
*
status
)
{
{
uint32_t
workstatus
=
0
;
uint32_t
workstatus
=
0
;
mpd_t
*
cc
=
(
mpd_t
*
)
c
;
const
mpd_t
*
cc
=
c
;
if
(
result
==
c
)
{
if
(
result
==
c
)
{
if
((
cc
=
mpd_qncopy
(
c
))
==
NULL
)
{
if
((
cc
=
mpd_qncopy
(
c
))
==
NULL
)
{
...
@@ -4435,7 +4435,7 @@ mpd_qfma(mpd_t *result, const mpd_t *a, const mpd_t *b, const mpd_t *c,
...
@@ -4435,7 +4435,7 @@ mpd_qfma(mpd_t *result, const mpd_t *a, const mpd_t *b, const mpd_t *c,
mpd_qadd
(
result
,
result
,
cc
,
ctx
,
&
workstatus
);
mpd_qadd
(
result
,
result
,
cc
,
ctx
,
&
workstatus
);
}
}
if
(
cc
!=
c
)
mpd_del
(
cc
);
if
(
cc
!=
c
)
mpd_del
(
(
mpd_t
*
)
cc
);
*
status
|=
workstatus
;
*
status
|=
workstatus
;
}
}
...
@@ -5727,7 +5727,7 @@ static inline void
...
@@ -5727,7 +5727,7 @@ static inline void
_mpd_qmul
(
mpd_t
*
result
,
const
mpd_t
*
a
,
const
mpd_t
*
b
,
_mpd_qmul
(
mpd_t
*
result
,
const
mpd_t
*
a
,
const
mpd_t
*
b
,
const
mpd_context_t
*
ctx
,
uint32_t
*
status
)
const
mpd_context_t
*
ctx
,
uint32_t
*
status
)
{
{
mpd_t
*
big
=
(
mpd_t
*
)
a
,
*
small
=
(
mpd_t
*
)
b
;
const
mpd_t
*
big
=
a
,
*
small
=
b
;
mpd_uint_t
*
rdata
=
NULL
;
mpd_uint_t
*
rdata
=
NULL
;
mpd_uint_t
rbuf
[
MPD_MINALLOC_MAX
];
mpd_uint_t
rbuf
[
MPD_MINALLOC_MAX
];
mpd_size_t
rsize
,
i
;
mpd_size_t
rsize
,
i
;
...
...
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