From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Hogan Subject: Re: [PATCH] arch: metag: lib: add "umoddi3.S" file for __umoddi3() Date: Fri, 20 Dec 2013 10:48:43 +0000 Message-ID: <52B4208B.1080801@imgtec.com> References: <52B2E0FA.7090805@gmail.com> <52B2E3DB.7010008@imgtec.com> <52B2F6B7.1050802@gmail.com> <52B2F8DC.8060006@imgtec.com> <52B3A0EA.9010801@gmail.com> <52B40E44.9040603@imgtec.com> <52B419DE.8050706@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <52B419DE.8050706@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Chen Gang Cc: rostedt@goodmis.org, "linux-kernel@vger.kernel.org" , linux-metag@vger.kernel.org On 20/12/13 10:20, Chen Gang wrote: > Hmm... but do you know why we need some 64-bit functions which are > implemented under "arch/metag/lib/*.S"? can we use > instead of them? (e.g 64-bit '/'). If you look at linux/math64.h you'll see it only implements division operations. The other 64 bit operations like shift, compare, and multiply are relatively cheap so are implemented as intrinsics instead. Cheers James