• Cherry Zhang's avatar
    cmd/compile: simplify div/mod on ARM · 38cd7988
    Cherry Zhang authored
    On ARM, DIV, DIVU, MOD, MODU are pseudo instructions that makes
    runtime calls _div/_udiv/_mod/_umod, which themselves are wrappers
    of udiv. The udiv function does the real thing.
    
    Instead of generating these pseudo instructions, call to udiv
    directly. This removes one layer of wrappers (which has an awkward
    way of passing argument), and also allows combining DIV and MOD
    if both results are needed.
    
    Change-Id: I118afc3986db3a1daabb5c1e6e57430888c91817
    Reviewed-on: https://go-review.googlesource.com/29390Reviewed-by: 's avatarDavid Chase <drchase@google.com>
    38cd7988
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...