core  array_cache  math  swrast  swrast_setup  tnl  tnl_dd 
Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

fi_type Union Reference

Sometimes we treat GLfloats as GLints. More...

#include <glheader.h>


Data Fields

GLfloat f
GLint i


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.


Field Documentation

GLfloat fi_type::f
 

GLint fi_type::i
 


The documentation for this union was generated from the following file:
Generated on Sun May 16 15:55:13 2004 for Mesa Core by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001