Skip to content
Snippets Groups Projects
Select Git revision
  • 9dce823cfd0a9991350184f08a1373f3887134f4
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

runtime.c

Blame
  • user avatar
    Paul Sokolovsky authored
    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.
    9dce823c
    History
    runtime.c 55.31 KiB