~ubuntu-branches/ubuntu/natty/rss-glx/natty

« back to all changes in this revision

Viewing changes to oglc_src/FMotion.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ari Pollak
  • Date: 2008-09-02 23:50:13 UTC
  • mto: (1.3.1 upstream) (2.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20080902235013-0mpk3ps6neyo6z5k
ImportĀ upstreamĀ versionĀ 0.8.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
inline int f2int2 (float f)
54
54
{
55
55
        f += FLOATTOINTCONST2;
56
 
        return ((*((int *)&f)) & 0x007fffff) - 0x00400000;
 
56
        return ((*((int *)(void *)&f)) & 0x007fffff) - 0x00400000;
57
57
}
58
58
 
59
59
#define FLOATTOINTCONST (((1.5*65536*256)))
60
60
inline int f2int (float f)
61
61
{
62
62
        f += FLOATTOINTCONST;
63
 
        return ((*((int *)&f)) & 0x007fffff) - 0x00400000;
 
63
        return ((*((int *)(void *)&f)) & 0x007fffff) - 0x00400000;
64
64
}
65
65
 
66
66
#define Float2Int(f) (f2int(f))