Mercurial > cpython-lru_cache-weakref
diff Modules/mathmodule.c @ 47783:a7186fee7596 legacy-trunk
Fix another typo in math_sum comment
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Fri, 20 Jun 2008 15:26:19 +0000 |
| parents | c39263e94c33 |
| children | b40e13bcb9ea |
line wrap: on
line diff
--- a/Modules/mathmodule.c Fri Jun 20 15:17:41 2008 +0000 +++ b/Modules/mathmodule.c Fri Jun 20 15:26:19 2008 +0000 @@ -328,7 +328,7 @@ overflow of the first partial sum. Note 3: The intermediate values lo, yr, and hi are declared volatile so - aggressive compilers won't algebraicly reduce lo to always be exactly 0.0. + aggressive compilers won't algebraically reduce lo to always be exactly 0.0. Also, the volatile declaration forces the values to be stored in memory as regular doubles instead of extended long precision (80-bit) values. This prevents double rounding because any addition or subtraction of two doubles
