commit | 602828c1aade576ac5f3fbd59b4eb014c5fc2414 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <nico@fluxnic.net> | Tue Aug 20 23:05:42 2019 -0400 |
committer | Arnd Bergmann <arnd@arndb.de> | Sun Sep 01 23:53:25 2019 +0200 |
tree | 1f3041f8c1f2ad40d56ee35213f63f927cc6fa74 | |
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>