From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 4 Aug 2010 09:11:14 +1000 From: Anton Blanchard To: Segher Boessenkool Subject: Re: [PATCH 1/3] powerpc: Optimise 64bit csum_partial Message-ID: <20100803231114.GP29316@kryten> References: <20100803060834.GK29316@kryten> <1C2B156C-E6C9-47CC-B5BF-6AA603581EC3@kernel.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1C2B156C-E6C9-47CC-B5BF-6AA603581EC3@kernel.crashing.org> Cc: paulus@samba.org, linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Segher, > Not really. Do you know how many 16/32-bit words you can add before a > 64-bit register can overflow? :-) Thats a very good point. I thought about using 32bit adds when writing the copy and checksum routine, but came to the conclusion that it wouldn't go any faster than one using addes. The checksum only routine was the same loop without the stores. We rarely use csum_partial now we have copy and checksum to and from user now, but I'll take a look at speeding it up in a follow on patch. Thanks! Anton