[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] Nicowar desync

From: Nuage
Subject: Re: [glob2-devel] Nicowar desync
Date: Wed, 18 Jan 2006 02:01:35 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051107

> I'm not sure what a "shifted int" is, could you explain it to me?

For instance you use a Uint32 and say the highest 16 bits is the actual integer
value, and the 16 lower bits are the fixed decimal values.

withFloat(a, b)
 float sum = 0;
 sum += (a / b);

withFixed(a, b)
 Uint32 sum = 0;
 sum += ((a << 16) / b);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]