Christophe Leroy f206fdd9d4 powerpc: Reduce csum_add() complexity for PPC64
PPC64 does everything in C, gcc is able to skip calculation
when one of the operands in zero.

Move the constant folding in PPC32 part.

This helps GCC and reduces ppc64_defconfig by 170 bytes.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a4ca63dd4c4b09e1906d08fb814af5a41d0f3fcb.1644651363.git.christophe.leroy@csgroup.eu
2022-05-06 00:00:20 +10:00
..
2022-05-05 22:12:44 +10:00
2022-05-05 22:12:44 +10:00
2022-05-05 22:12:44 +10:00
2022-05-05 22:12:44 +10:00
2022-05-05 22:12:44 +10:00
2022-03-25 09:39:36 -07:00
2022-05-05 22:12:44 +10:00
2022-05-05 22:12:44 +10:00
2022-05-05 22:12:44 +10:00