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
b1e4c9d1
Kaydet (Commit)
b1e4c9d1
authored
Ara 03, 2013
tarafından
Stefan Krah
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make a couple of parameters constant.
üst
5aa08ca3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
mpdecimal.c
Modules/_decimal/libmpdec/mpdecimal.c
+7
-7
mpdecimal.h
Modules/_decimal/libmpdec/mpdecimal.h
+7
-7
No files found.
Modules/_decimal/libmpdec/mpdecimal.c
Dosyayı görüntüle @
b1e4c9d1
...
...
@@ -392,42 +392,42 @@ mpd_radix(void)
/* Dynamic decimal */
ALWAYS_INLINE
int
mpd_isdynamic
(
mpd_t
*
dec
)
mpd_isdynamic
(
const
mpd_t
*
dec
)
{
return
!
(
dec
->
flags
&
MPD_STATIC
);
}
/* Static decimal */
ALWAYS_INLINE
int
mpd_isstatic
(
mpd_t
*
dec
)
mpd_isstatic
(
const
mpd_t
*
dec
)
{
return
dec
->
flags
&
MPD_STATIC
;
}
/* Data of decimal is dynamic */
ALWAYS_INLINE
int
mpd_isdynamic_data
(
mpd_t
*
dec
)
mpd_isdynamic_data
(
const
mpd_t
*
dec
)
{
return
!
(
dec
->
flags
&
MPD_DATAFLAGS
);
}
/* Data of decimal is static */
ALWAYS_INLINE
int
mpd_isstatic_data
(
mpd_t
*
dec
)
mpd_isstatic_data
(
const
mpd_t
*
dec
)
{
return
dec
->
flags
&
MPD_STATIC_DATA
;
}
/* Data of decimal is shared */
ALWAYS_INLINE
int
mpd_isshared_data
(
mpd_t
*
dec
)
mpd_isshared_data
(
const
mpd_t
*
dec
)
{
return
dec
->
flags
&
MPD_SHARED_DATA
;
}
/* Data of decimal is const */
ALWAYS_INLINE
int
mpd_isconst_data
(
mpd_t
*
dec
)
mpd_isconst_data
(
const
mpd_t
*
dec
)
{
return
dec
->
flags
&
MPD_CONST_DATA
;
}
...
...
@@ -597,7 +597,7 @@ mpd_set_sign(mpd_t *result, uint8_t sign)
/* Copy sign from another decimal */
ALWAYS_INLINE
void
mpd_signcpy
(
mpd_t
*
result
,
mpd_t
*
a
)
mpd_signcpy
(
mpd_t
*
result
,
const
mpd_t
*
a
)
{
uint8_t
sign
=
a
->
flags
&
MPD_NEG
;
...
...
Modules/_decimal/libmpdec/mpdecimal.h
Dosyayı görüntüle @
b1e4c9d1
...
...
@@ -752,12 +752,12 @@ EXTINLINE uint8_t mpd_sign(const mpd_t *dec);
/* 1 if dec is positive, -1 if dec is negative */
EXTINLINE
int
mpd_arith_sign
(
const
mpd_t
*
dec
);
EXTINLINE
long
mpd_radix
(
void
);
EXTINLINE
int
mpd_isdynamic
(
mpd_t
*
dec
);
EXTINLINE
int
mpd_isstatic
(
mpd_t
*
dec
);
EXTINLINE
int
mpd_isdynamic_data
(
mpd_t
*
dec
);
EXTINLINE
int
mpd_isstatic_data
(
mpd_t
*
dec
);
EXTINLINE
int
mpd_isshared_data
(
mpd_t
*
dec
);
EXTINLINE
int
mpd_isconst_data
(
mpd_t
*
dec
);
EXTINLINE
int
mpd_isdynamic
(
const
mpd_t
*
dec
);
EXTINLINE
int
mpd_isstatic
(
const
mpd_t
*
dec
);
EXTINLINE
int
mpd_isdynamic_data
(
const
mpd_t
*
dec
);
EXTINLINE
int
mpd_isstatic_data
(
const
mpd_t
*
dec
);
EXTINLINE
int
mpd_isshared_data
(
const
mpd_t
*
dec
);
EXTINLINE
int
mpd_isconst_data
(
const
mpd_t
*
dec
);
EXTINLINE
mpd_ssize_t
mpd_trail_zeros
(
const
mpd_t
*
dec
);
...
...
@@ -769,7 +769,7 @@ EXTINLINE mpd_ssize_t mpd_trail_zeros(const mpd_t *dec);
EXTINLINE
void
mpd_setdigits
(
mpd_t
*
result
);
EXTINLINE
void
mpd_set_sign
(
mpd_t
*
result
,
uint8_t
sign
);
/* copy sign from another decimal */
EXTINLINE
void
mpd_signcpy
(
mpd_t
*
result
,
mpd_t
*
a
);
EXTINLINE
void
mpd_signcpy
(
mpd_t
*
result
,
const
mpd_t
*
a
);
EXTINLINE
void
mpd_set_infinity
(
mpd_t
*
result
);
EXTINLINE
void
mpd_set_qnan
(
mpd_t
*
result
);
EXTINLINE
void
mpd_set_snan
(
mpd_t
*
result
);
...
...
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