On 16 March 2011 12:52, lbendlin <[email protected]> wrote:

> don't divide by two, multiply by .5  . multiplication is much faster
> than division.
>

If you want to divide by 2 just shift the value one bit to the right. Won't
work for floats though, so you have to cast the result.

Regards,
Marcin Orlowski

Tray Agenda for Android <http://bit.ly/trayagenda>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to