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
5a0b399a
Kaydet (Commit)
5a0b399a
authored
Ock 10, 2010
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unused BCinfo fields and an unused macro.
üst
9d873234
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
21 deletions
+8
-21
dtoa.c
Python/dtoa.c
+8
-21
No files found.
Python/dtoa.c
Dosyayı görüntüle @
5a0b399a
...
...
@@ -200,12 +200,6 @@ typedef union { double d; ULong L[2]; } U;
#define STRTOD_DIGLIM 40
#endif
#ifdef DIGLIM_DEBUG
extern
int
strtod_diglim
;
#else
#define strtod_diglim STRTOD_DIGLIM
#endif
/* The following definition of Storeinc is appropriate for MIPS processors.
* An alternative that might be better on some machines is
* #define Storeinc(a,b,c) (*a++ = b << 16 | c & 0xffff)
...
...
@@ -269,8 +263,7 @@ extern int strtod_diglim;
typedef
struct
BCinfo
BCinfo
;
struct
BCinfo
{
int
dp0
,
dp1
,
dplen
,
dsign
,
e0
,
inexact
;
int
nd
,
nd0
,
rounding
,
scale
,
uflchk
;
int
dp0
,
dp1
,
dplen
,
dsign
,
e0
,
nd
,
nd0
,
scale
;
};
#define FFFFFFFF 0xffffffffUL
...
...
@@ -1318,7 +1311,7 @@ _Py_dg_strtod(const char *s00, char **se)
BCinfo
bc
;
Bigint
*
bb
,
*
bb1
,
*
bd
,
*
bd0
,
*
bs
,
*
delta
;
sign
=
nz0
=
nz
=
bc
.
dplen
=
bc
.
uflchk
=
0
;
sign
=
nz0
=
nz
=
bc
.
dplen
=
0
;
dval
(
&
rv
)
=
0
.;
for
(
s
=
s00
;;
s
++
)
switch
(
*
s
)
{
case
'-'
:
...
...
@@ -1555,11 +1548,11 @@ _Py_dg_strtod(const char *s00, char **se)
/* Put digits into bd: true value = bd * 10^e */
bc
.
nd
=
nd
;
bc
.
nd0
=
nd0
;
/* Only needed if nd >
strtod_diglim
, but done here */
bc
.
nd0
=
nd0
;
/* Only needed if nd >
STRTOD_DIGLIM
, but done here */
/* to silence an erroneous warning about bc.nd0 */
/* possibly not being initialized. */
if
(
nd
>
strtod_diglim
)
{
/* ASSERT(
strtod_diglim
>= 18); 18 == one more than the */
if
(
nd
>
STRTOD_DIGLIM
)
{
/* ASSERT(
STRTOD_DIGLIM
>= 18); 18 == one more than the */
/* minimum number of decimal digits to distinguish double values */
/* in IEEE arithmetic. */
i
=
j
=
18
;
...
...
@@ -1767,10 +1760,8 @@ _Py_dg_strtod(const char *s00, char **se)
/* accept rv */
break
;
/* rv = smallest denormal */
if
(
bc
.
nd
>
nd
)
{
bc
.
uflchk
=
1
;
if
(
bc
.
nd
>
nd
)
break
;
}
goto
undfl
;
}
}
...
...
@@ -1786,10 +1777,8 @@ _Py_dg_strtod(const char *s00, char **se)
else
{
dval
(
&
rv
)
-=
ulp
(
&
rv
);
if
(
!
dval
(
&
rv
))
{
if
(
bc
.
nd
>
nd
)
{
bc
.
uflchk
=
1
;
if
(
bc
.
nd
>
nd
)
break
;
}
goto
undfl
;
}
}
...
...
@@ -1801,10 +1790,8 @@ _Py_dg_strtod(const char *s00, char **se)
aadj
=
aadj1
=
1
.;
else
if
(
word1
(
&
rv
)
||
word0
(
&
rv
)
&
Bndry_mask
)
{
if
(
word1
(
&
rv
)
==
Tiny1
&&
!
word0
(
&
rv
))
{
if
(
bc
.
nd
>
nd
)
{
bc
.
uflchk
=
1
;
if
(
bc
.
nd
>
nd
)
break
;
}
goto
undfl
;
}
aadj
=
1
.;
...
...
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