diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-04-18 10:16:35 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-04-18 10:16:35 (GMT) |
commit | 60fd0999cce17ec8603edf4219f686c37a260d7b (patch) | |
tree | f7ed77cb77604febe2d6cdb853d197e6c49588c1 /Include/pyport.h | |
parent | 3800d15772451569da9e26464628a89a722eb43f (diff) | |
download | cpython-60fd0999cce17ec8603edf4219f686c37a260d7b.zip cpython-60fd0999cce17ec8603edf4219f686c37a260d7b.tar.gz cpython-60fd0999cce17ec8603edf4219f686c37a260d7b.tar.bz2 |
Issue #5781: Only use legacy string<->double conversions when
we can't figure out how to get and set the x87 control word.
Diffstat (limited to 'Include/pyport.h')
-rw-r--r-- | Include/pyport.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index ed43569..9b8b1e7 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -506,8 +506,10 @@ extern "C" { #define PY_NO_SHORT_FLOAT_REPR #endif -/* double rounding is symptomatic of use of extended precision on x86 */ -#ifdef X87_DOUBLE_ROUNDING +/* double rounding is symptomatic of use of extended precision on x86. If + we're seeing double rounding, and we don't have any mechanism available for + changing the FPU rounding precision, then don't use Python/dtoa.c. */ +#if defined(X87_DOUBLE_ROUNDING) && !defined(HAVE_GCC_ASM_FOR_X87) #define PY_NO_SHORT_FLOAT_REPR #endif |