From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from lists.s-osg.org ([54.187.51.154]:37401 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753181AbaIXOFF (ORCPT ); Wed, 24 Sep 2014 10:05:05 -0400 Date: Wed, 24 Sep 2014 11:05:00 -0300 From: Mauro Carvalho Chehab To: Antti Palosaari , Akihiro TSUKADA Cc: Linux Media Mailing List , Mauro Carvalho Chehab Subject: Re: [PATCH] [media] qm1d1c0042: fix compilation on 32 bits Message-ID: <20140924110500.260d4994@recife.lan> In-Reply-To: <5422C93A.2050203@iki.fi> References: <5422B8CD.8050302@gmail.com> <20140924103445.31aeca91@recife.lan> <5422C93A.2050203@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: Em Wed, 24 Sep 2014 16:38:02 +0300 Antti Palosaari escreveu: > > > On 09/24/2014 04:34 PM, Mauro Carvalho Chehab wrote: > > Em Wed, 24 Sep 2014 21:27:57 +0900 > > Akihiro TSUKADA escreveu: > > > >>> - b = (((s64) freq) << 20) / state->cfg.xtal_freq - (((s64) a) << 20); > >>> + b = (s32)div64_s64(((s64) freq) << 20, > >>> + state->cfg.xtal_freq - (((s64) a) << 20)); > >>> + > >> > >> I'm afraid it should be like the following. > >>> + b = (s32)(div64_s64(((s64) freq) << 20, state->cfg.xtal_freq) > >>> + - (((s64) a) << 20)); > > > > Are you talking about coding style? > > It is calculation order of operators. '/' vs. '-' Dah... -ETOOMUCHPARENTHESIS :) Fix sent. I'll likely merge it with the original patch when submitting upstream. Thanks, Mauro