[pypy-svn] r75877 - in pypy/branch/fast-forward/pypy: module/exceptions rpython rpython/lltypesystem/module
benjamin at codespeak.net
benjamin at codespeak.net
Tue Jul 6 04:27:15 CEST 2010
Author: benjamin
Date: Tue Jul 6 04:27:13 2010
New Revision: 75877
Modified:
pypy/branch/fast-forward/pypy/module/exceptions/interp_exceptions.py
pypy/branch/fast-forward/pypy/rpython/extfuncregistry.py
pypy/branch/fast-forward/pypy/rpython/lltypesystem/module/ll_math.py
Log:
pass correct signature
Modified: pypy/branch/fast-forward/pypy/module/exceptions/interp_exceptions.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/exceptions/interp_exceptions.py (original)
+++ pypy/branch/fast-forward/pypy/module/exceptions/interp_exceptions.py Tue Jul 6 04:27:13 2010
@@ -196,7 +196,7 @@
try:
space.delitem(w_dict, space.wrap("message"))
except OperationError, e:
- if not e.match(space.w_KeyError):
+ if not e.match(space, space.w_KeyError):
raise
self.w_message = None
Modified: pypy/branch/fast-forward/pypy/rpython/extfuncregistry.py
==============================================================================
--- pypy/branch/fast-forward/pypy/rpython/extfuncregistry.py (original)
+++ pypy/branch/fast-forward/pypy/rpython/extfuncregistry.py Tue Jul 6 04:27:13 2010
@@ -33,6 +33,9 @@
register_external(rarithmetic.isnan, [float], bool,
export_name="ll_math.ll_math_isnan", sandboxsafe=True,
llimpl=ll_math.ll_math_isnan)
+register_external(rarithmetic.copysign, [float, float], float,
+ export_name="ll_math.ll_math_copysign", sandboxsafe=True,
+ llimpl=ll_math.ll_math_copysign)
complex_math_functions = [
('frexp', [float], (float, int)),
Modified: pypy/branch/fast-forward/pypy/rpython/lltypesystem/module/ll_math.py
==============================================================================
--- pypy/branch/fast-forward/pypy/rpython/lltypesystem/module/ll_math.py (original)
+++ pypy/branch/fast-forward/pypy/rpython/lltypesystem/module/ll_math.py Tue Jul 6 04:27:13 2010
@@ -79,6 +79,9 @@
return bool(math_isinf(y))
+ll_math_copysign = math_copysign
+
+
def ll_math_atan2(y, x):
"""wrapper for atan2 that deals directly with special cases before
delegating to the platform libm for the remaining cases. This
More information about the Pypy-commit
mailing list