From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH RFC 04/25] Replace "/" operand with div64 Date: Wed, 07 Dec 2011 11:35:30 +0000 Message-ID: References: <4EDF3EC70200007800065E3B@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4EDF3EC70200007800065E3B@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , Stefano Stabellini Cc: xen-devel@lists.xensource.com, Ian Campbell , Tim Deegan List-Id: xen-devel@lists.xenproject.org On 07/12/2011 09:24, "Jan Beulich" wrote: >>>> On 06.12.11 at 19:19, wrote: >> ARM does not have a division operator: division has to be implemented >> in software. >> On x86 and ia64 div64 falls back to a do_div based implementation. > > But this needs to be done carefully and correctly - there's no > one-fits-all div64() implementation. I'm sure gcc-arm must emit lib calls for divisions. Maybe arch/arm needs to implement some of those if arm doesn't support even 32-bit divide. Common lib code covers only 64-bit divide. -- Keir