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
66f2623f
Kaydet (Commit)
66f2623f
authored
Ara 04, 2010
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove some unecessary '#ifdef Py_NAN's from floatobject.c
üst
24bcc61f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
floatobject.c
Objects/floatobject.c
+0
-6
No files found.
Objects/floatobject.c
Dosyayı görüntüle @
66f2623f
...
...
@@ -575,13 +575,11 @@ float_div(PyObject *v, PyObject *w)
double
a
,
b
;
CONVERT_TO_DOUBLE
(
v
,
a
);
CONVERT_TO_DOUBLE
(
w
,
b
);
#ifdef Py_NAN
if
(
b
==
0
.
0
)
{
PyErr_SetString
(
PyExc_ZeroDivisionError
,
"float division by zero"
);
return
NULL
;
}
#endif
PyFPE_START_PROTECT
(
"divide"
,
return
0
)
a
=
a
/
b
;
PyFPE_END_PROTECT
(
a
)
...
...
@@ -595,13 +593,11 @@ float_rem(PyObject *v, PyObject *w)
double
mod
;
CONVERT_TO_DOUBLE
(
v
,
vx
);
CONVERT_TO_DOUBLE
(
w
,
wx
);
#ifdef Py_NAN
if
(
wx
==
0
.
0
)
{
PyErr_SetString
(
PyExc_ZeroDivisionError
,
"float modulo"
);
return
NULL
;
}
#endif
PyFPE_START_PROTECT
(
"modulo"
,
return
0
)
mod
=
fmod
(
vx
,
wx
);
/* note: checking mod*wx < 0 is incorrect -- underflows to
...
...
@@ -1492,13 +1488,11 @@ float_as_integer_ratio(PyObject *v, PyObject *unused)
"Cannot pass infinity to float.as_integer_ratio."
);
return
NULL
;
}
#ifdef Py_NAN
if
(
Py_IS_NAN
(
self
))
{
PyErr_SetString
(
PyExc_ValueError
,
"Cannot pass NaN to float.as_integer_ratio."
);
return
NULL
;
}
#endif
PyFPE_START_PROTECT
(
"as_integer_ratio"
,
goto
error
);
float_part
=
frexp
(
self
,
&
exponent
);
/* self == float_part * 2**exponent exactly */
...
...
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