aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorNicolas Pitre <[email protected]>2019-08-20 23:05:42 -0400
committerArnd Bergmann <[email protected]>2019-09-01 23:53:25 +0200
commit602828c1aade576ac5f3fbd59b4eb014c5fc2414 (patch)
tree1f3041f8c1f2ad40d56ee35213f63f927cc6fa74 /lib/test_overflow.c
parent3940ba8eea8c6c89f547a1bd153977cece5fecd2 (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 <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions