Paul Sokolovsky 9dce823cfd py/modbuiltins: Implement abs() by dispatching to MP_UNARY_OP_ABS.
This allows user classes to implement __abs__ special method, and saves
code size (104 bytes for x86_64), even though during refactor, an issue
was fixed and few optimizations were made:

* abs() of minimum (negative) small int value is calculated properly.
* objint_longlong and objint_mpz avoid allocating new object is the
  argument is already non-negative.
2017-09-18 00:06:43 +03:00
..
2017-08-13 22:52:33 +10:00
2017-05-29 11:36:05 +03:00
2017-07-18 11:57:39 +10:00
2017-07-18 11:57:39 +10:00
2017-09-01 15:22:25 +10:00
2017-07-18 11:57:39 +10:00