From: Romit Dasgupta <romit@ti.com>
To: Nishanth Menon <menon.nishanth@gmail.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PM-WIP-OPP] [PATCH] cleaner ceil function for uv to vsel conversion
Date: Tue, 12 Jan 2010 17:43:47 +0530 [thread overview]
Message-ID: <4B4C677B.9070809@ti.com> (raw)
In-Reply-To: <4B4C6629.2040100@gmail.com>
>> The description of the problem is "Cleaner ceil function for uv to vsel
>> conversion".
>>
>> I think this patch is simple enough for people on this list to understand the
>> optimization. I am sorry I cant be more descriptive.
>>
>>
> here is a try:
> -----
>
> From patchwork Thu Dec 31 13:29:05 2009
> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [pm-wip-opp] [PATCH] opp: twl/tps: optimize uv to vsel function
> Date: Thu, 31 Dec 2009 13:29:05 -0000
> From: Dasgupta, Romit <romit@ti.com>
> X-Patchwork-Id: 70374
>
>
> For integer values x and y; int div x / y causes truncation. Current
> omap_twl_uv_to_vsel function implements an equivalent of ceil which
> is based on an if condition to check truncation and round up.
> We can do this in a more optimal manner without the if condition.
> The round up is handled by adding the round off factor prior to
> truncation as:
> (x + (y - 1)) / y
>
Wow that is nice... Please send it if you can and add your Signed-off for the work!
prev parent reply other threads:[~2010-01-12 12:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-11 5:53 [PM-WIP-OPP] [PATCH] cleaner ceil function for uv to vsel conversion Romit Dasgupta
2010-01-11 22:29 ` Kevin Hilman
2010-01-12 8:58 ` Romit Dasgupta
2010-01-12 12:08 ` Nishanth Menon
2010-01-12 12:13 ` Romit Dasgupta [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B4C677B.9070809@ti.com \
--to=romit@ti.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=menon.nishanth@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox