summaryrefslogtreecommitdiffstats
path: root/Include/dtoa.h
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2012-04-29 14:31:56 (GMT)
committerMark Dickinson <mdickinson@enthought.com>2012-04-29 14:31:56 (GMT)
commite383e82e0484aed79f2c78516e3f223345408d4b (patch)
tree665c6b5274695e846f6b66fa88d673eccd0bc402 /Include/dtoa.h
parentd68ac85e9afd3d7e5dfc8fe2e2853d3371cc08d2 (diff)
downloadcpython-e383e82e0484aed79f2c78516e3f223345408d4b.zip
cpython-e383e82e0484aed79f2c78516e3f223345408d4b.tar.gz
cpython-e383e82e0484aed79f2c78516e3f223345408d4b.tar.bz2
Issue #14521: Make result of float('nan') and float('-nan') more consistent across platforms. Further, don't rely on Py_HUGE_VAL for float('inf').
Diffstat (limited to 'Include/dtoa.h')
-rw-r--r--Include/dtoa.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/dtoa.h b/Include/dtoa.h
index 819bd0f..9bfb625 100644
--- a/Include/dtoa.h
+++ b/Include/dtoa.h
@@ -8,6 +8,8 @@ PyAPI_FUNC(double) _Py_dg_strtod(const char *str, char **ptr);
PyAPI_FUNC(char *) _Py_dg_dtoa(double d, int mode, int ndigits,
int *decpt, int *sign, char **rve);
PyAPI_FUNC(void) _Py_dg_freedtoa(char *s);
+PyAPI_FUNC(double) _Py_dg_stdnan(int sign);
+PyAPI_FUNC(double) _Py_dg_infinity(int sign);
#ifdef __cplusplus