[pypy-svn] r13850 - pypy/dist/pypy/rpython

mwh at codespeak.net mwh at codespeak.net
Sat Jun 25 14:28:54 CEST 2005


Author: mwh
Date: Sat Jun 25 14:28:54 2005
New Revision: 13850

Modified:
   pypy/dist/pypy/rpython/rfloat.py
Log:
float % float in the rtyper
(for demo/bpnn.py)


Modified: pypy/dist/pypy/rpython/rfloat.py
==============================================================================
--- pypy/dist/pypy/rpython/rfloat.py	(original)
+++ pypy/dist/pypy/rpython/rfloat.py	Sat Jun 25 14:28:54 2005
@@ -42,6 +42,11 @@
 
     rtype_inplace_div = rtype_div
 
+    def rtype_mod(_, hop):
+        return _rtype_template(hop, 'mod')
+
+    rtype_inplace_mod = rtype_mod
+
     def rtype_pow(_, hop):
         s_float3 = hop.args_s[2]
         if s_float3.is_constant() and s_float3.const is None:



More information about the Pypy-commit mailing list