core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

fi_type Union Reference

#include <imports.h>


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.

Data Fields

GLfloat f
GLint i


Field Documentation

GLfloat fi_type::f

GLint fi_type::i


The documentation for this union was generated from the following file:
Generated on Sun Sep 27 06:47:46 2009 for Mesa Main by  doxygen 1.5.4