[pypy-commit] pypy decimal-libmpdec: More methods

amauryfa noreply at buildbot.pypy.org
Sun Oct 5 20:23:10 CEST 2014


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: decimal-libmpdec
Changeset: r73805:669e787ee92e
Date: 2014-09-28 17:08 +0200
http://bitbucket.org/pypy/pypy/changeset/669e787ee92e/

Log:	More methods

diff --git a/pypy/module/_decimal/interp_decimal.py b/pypy/module/_decimal/interp_decimal.py
--- a/pypy/module/_decimal/interp_decimal.py
+++ b/pypy/module/_decimal/interp_decimal.py
@@ -1160,6 +1160,11 @@
     # Binary arithmetic functions, optional context arg
     compare = make_binary_method('mpd_qcompare'),
     compare_signal = make_binary_method('mpd_qcompare_signal'),
+    max = make_binary_method('mpd_qmax'),
+    max_mag = make_binary_method('mpd_qmax_mag'),
+    min = make_binary_method('mpd_qmin'),
+    next_toward = make_binary_method('mpd_qnext_toward'),
+    remainder_near = make_binary_method('mpd_qrem_near'),
     # Ternary arithmetic functions, optional context arg
     fma = interp2app(W_Decimal.fma_w),
     # Boolean functions, no context arg


More information about the pypy-commit mailing list