On 29 Gru, 17:49, Mika <[email protected]> wrote: > OH sorry guys, my bad, I wasn't specific enough. > I'm TRYING To shift myself into fixed point(FP) world and trying to > get rid of the long calculations :) So.. does the topic make more > sense now? Sorry for being such a numnum and not realising that FP = > fixed point AND floating point. D'oh. > > But yeah, any help how to get rid of the remaining long calculation?
By writing "shift into fixed" I meant you can simply do: int time_15_16 = ((int) (now - last) << 16) / 1000; since difference betweend now and last update time cannot overflow. -- Bart Janusz -- 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

