[pypy-svn] r15269 - in pypy/dist/pypy: module/math rpython rpython/module

ale at codespeak.net ale at codespeak.net
Thu Jul 28 18:20:53 CEST 2005


Author: ale
Date: Thu Jul 28 18:20:51 2005
New Revision: 15269

Modified:
   pypy/dist/pypy/module/math/__init__.py
   pypy/dist/pypy/rpython/extfunctable.py
   pypy/dist/pypy/rpython/module/ll_math.py
Log:
added math.cosh (needed for lib-python)

Modified: pypy/dist/pypy/module/math/__init__.py
==============================================================================
--- pypy/dist/pypy/module/math/__init__.py	(original)
+++ pypy/dist/pypy/module/math/__init__.py	Thu Jul 28 18:20:51 2005
@@ -13,7 +13,7 @@
            'e'              : 'interp_math.get(space).w_e', 
            'pi'             : 'interp_math.get(space).w_pi', 
            #'pow'            : 'interp_math.pow',
-           #'cosh'           : 'interp_math.cosh',
+           'cosh'           : 'interp_math.cosh',
            'ldexp'          : 'interp_math.ldexp',
            'hypot'          : 'interp_math.hypot',
            #'tan'            : 'interp_math.tan',

Modified: pypy/dist/pypy/rpython/extfunctable.py
==============================================================================
--- pypy/dist/pypy/rpython/extfunctable.py	(original)
+++ pypy/dist/pypy/rpython/extfunctable.py	Thu Jul 28 18:20:51 2005
@@ -88,6 +88,7 @@
 declare(math.cos    , float         , 'll_math/cos')
 declare(math.sin    , float         , 'll_math/sin')
 declare(math.sinh   , float         , 'll_math/sinh')
+declare(math.cosh   , float         , 'll_math/cosh')
 declare(math.acos   , float         , 'll_math/acos')
 declare(math.sqrt   , float         , 'll_math/sqrt')
 declare(math.hypot  , float         , 'll_math/hypot')

Modified: pypy/dist/pypy/rpython/module/ll_math.py
==============================================================================
--- pypy/dist/pypy/rpython/module/ll_math.py	(original)
+++ pypy/dist/pypy/rpython/module/ll_math.py	Thu Jul 28 18:20:51 2005
@@ -10,18 +10,22 @@
     return math.sin(x)
 ll_math_sin.suggested_primitive = True
 
+def ll_math_acos(x):
+    return math.acos(x)
+ll_math_acos.suggested_primitive = True
+
 def ll_math_sinh(x):
     return math.sinh(x)
 ll_math_sinh.suggested_primitive = True
 
+def ll_math_cosh(x):
+    return math.cosh(x)
+ll_math_cosh.suggested_primitive = True
+
 def ll_math_hypot(x, y):
     return math.hypot(x, y)
 ll_math_hypot.suggested_primitive = True
 
-def ll_math_acos(x):
-    return math.acos(x)
-ll_math_acos.suggested_primitive = True
-
 def ll_math_sqrt(x):
     return math.sqrt(x)
 ll_math_sqrt.suggested_primitive = True



More information about the Pypy-commit mailing list