Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(92610)

Delta Between Two Patch Sets: Modules/mathmodule.c

Issue 23670: Modifications to support iOS as a development platform
Left Patch Set: Created 3 years, 8 months ago
Right Patch Set: Created 3 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Modules/makesetup ('k') | Modules/posixmodule.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 /* Math module -- standard C math library functions, pi and e */ 1 /* Math module -- standard C math library functions, pi and e */
2 2
3 /* Here are some comments from Tim Peters, extracted from the 3 /* Here are some comments from Tim Peters, extracted from the
4 discussion attached to http://bugs.python.org/issue1640. They 4 discussion attached to http://bugs.python.org/issue1640. They
5 describe the general aims of the math module with respect to 5 describe the general aims of the math module with respect to
6 special values, IEEE-754 floating-point exceptions, and Python 6 special values, IEEE-754 floating-point exceptions, and Python
7 exceptions. 7 exceptions.
8 8
9 These are the "spirit of 754" rules: 9 These are the "spirit of 754" rules:
10 10
(...skipping 2148 matching lines...) Expand 10 before | Expand all | Expand 10 after
2159 PyModule_AddObject(m, "pi", PyFloat_FromDouble(Py_MATH_PI)); 2159 PyModule_AddObject(m, "pi", PyFloat_FromDouble(Py_MATH_PI));
2160 PyModule_AddObject(m, "e", PyFloat_FromDouble(Py_MATH_E)); 2160 PyModule_AddObject(m, "e", PyFloat_FromDouble(Py_MATH_E));
2161 PyModule_AddObject(m, "inf", PyFloat_FromDouble(m_inf())); 2161 PyModule_AddObject(m, "inf", PyFloat_FromDouble(m_inf()));
2162 #if !defined(PY_NO_SHORT_FLOAT_REPR) || defined(Py_NAN) 2162 #if !defined(PY_NO_SHORT_FLOAT_REPR) || defined(Py_NAN)
2163 PyModule_AddObject(m, "nan", PyFloat_FromDouble(m_nan())); 2163 PyModule_AddObject(m, "nan", PyFloat_FromDouble(m_nan()));
2164 #endif 2164 #endif
2165 2165
2166 finally: 2166 finally:
2167 return m; 2167 return m;
2168 } 2168 }
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+