diff options
author | Nicolas Pitre <nico@fluxnic.net> | 2019-08-20 23:05:42 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-09-01 23:53:25 +0200 |
commit | 602828c1aade576ac5f3fbd59b4eb014c5fc2414 (patch) | |
tree | 1f3041f8c1f2ad40d56ee35213f63f927cc6fa74 /include/asm-generic/bug.h | |
parent | 3940ba8eea8c6c89f547a1bd153977cece5fecd2 (diff) |
__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