]> granicus.if.org Git - python/commit
1) Fix signature of _mpd_qpow_uint(): contrary to the comment base is constant.
authorStefan Krah <skrah@bytereef.org>
Tue, 12 Jun 2012 19:06:06 +0000 (21:06 +0200)
committerStefan Krah <skrah@bytereef.org>
Tue, 12 Jun 2012 19:06:06 +0000 (21:06 +0200)
commitb7832939c752038299ea2f6acbb9789a9aaff707
tree0b1885935ebe2ca97832a0a851fbceecad7fb3b6
parentf0604fddc3b9a775f22d19d7d7fe50c4aa1ecf7d
1) Fix signature of _mpd_qpow_uint(): contrary to the comment base is constant.

2) Abort the loop for all specials, not only infinity.

3) Make the function more general and distinguish between zero clamping
   and folding down the exponent. The latter case is currently handled
   by setting context->clamp to 0 before calling the function.
Modules/_decimal/libmpdec/mpdecimal.c