[OSM-dev] Osmosis Replication Statistics

Cameron Patrick cameron at patrick.wattle.id.au
Sat Sep 1 03:53:49 BST 2007


Robert (Jamie) Munro wrote:

> Use 2^N/360 as your fixed constant, where N is the number of bits
> you use in your integer.

Note that 2^N/360 is not going to be an integer for any integer N so
you're still going to have to care about wrapping.

On modern CPUs, floating point is also usually faster than fixed point.
Why not use it?

Cameron





More information about the dev mailing list