Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

fi_type Union Reference

#include <imports.h>

List of all members.

Detailed Description

Sometimes we treat GLfloats as GLints. On x86 systems, moving a float as a int (thereby using integer registers instead of FP registers) is a performance win. Typically, this can be done with ordinary casts. But with gcc's -fstrict-aliasing flag (which defaults to on in gcc 3.0) these casts generate warnings. The following union typedef is used to solve that.

Definition at line 122 of file imports.h.

Public Attributes

GLfloat f
GLint i

The documentation for this union was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index