summaryrefslogtreecommitdiff
path: root/include/asm-generic/bug.h
diff options
context:
space:
mode:
authorNicolas Pitre <nico@fluxnic.net>2019-08-21 06:05:42 +0300
committerArnd Bergmann <arnd@arndb.de>2019-09-02 00:53:25 +0300
commit602828c1aade576ac5f3fbd59b4eb014c5fc2414 (patch)
tree1f3041f8c1f2ad40d56ee35213f63f927cc6fa74 /include/asm-generic/bug.h
parent3940ba8eea8c6c89f547a1bd153977cece5fecd2 (diff)
downloadlinux-602828c1aade576ac5f3fbd59b4eb014c5fc2414.tar.xz
__div64_const32(): improve the generic C version
Let's rework that code to avoid large immediate values and convert some 64-bit variables to 32-bit ones when possible. This allows gcc to produce smaller and better code. This even produces optimal code on RISC-V. Signed-off-by: Nicolas Pitre <nico@fluxnic.net> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/asm-generic/bug.h')
0 files changed, 0 insertions, 0 deletions