[pypy-commit] pypy default: more RPY_ETERN definitions
mattip
noreply at buildbot.pypy.org
Sun Nov 9 19:44:03 CET 2014
Author: Matti Picus <matti.picus at gmail.com>
Branch:
Changeset: r74418:e0ee57865d3d
Date: 2014-11-09 12:39 -0600
http://bitbucket.org/pypy/pypy/changeset/e0ee57865d3d/
Log: more RPY_ETERN definitions
diff --git a/rpython/translator/c/src/ll_math.c b/rpython/translator/c/src/ll_math.c
--- a/rpython/translator/c/src/ll_math.c
+++ b/rpython/translator/c/src/ll_math.c
@@ -4,12 +4,12 @@
#include <errno.h>
/* The following macros are copied from CPython header files */
+#include "src/precommondefs.h"
#ifdef _WIN32
#include <float.h>
#include <math.h>
#endif
-
#ifdef _MSC_VER
#define PyPy_IS_NAN _isnan
#define PyPy_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
@@ -57,7 +57,7 @@
* acosh(NaN) is NaN without signal.
*/
-double
+RPY_EXTERN double
_pypy_math_acosh(double x)
{
if (PyPy_IS_NAN(x)) {
@@ -103,7 +103,7 @@
* := sign(x)*log1p(|x| + x^2/(1 + sqrt(1+x^2)))
*/
-double
+RPY_EXTERN double
_pypy_math_asinh(double x)
{
double w;
@@ -146,7 +146,7 @@
*
*/
-double
+RPY_EXTERN double
_pypy_math_atanh(double x)
{
double absx;
@@ -181,7 +181,7 @@
to avoid the significant loss of precision that arises from direct
evaluation of the expression exp(x) - 1, for x near 0. */
-double
+RPY_EXTERN double
_pypy_math_expm1(double x)
{
/* For abs(x) >= log(2), it's safe to evaluate exp(x) - 1 directly; this
@@ -207,7 +207,7 @@
significant loss of precision that arises from direct evaluation when x is
small. */
-double
+RPY_EXTERN double
_pypy_math_log1p(double x)
{
/* For x small, we use the following approach. Let y be the nearest float
More information about the pypy-commit
mailing list