Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

fastmath.h

Go to the documentation of this file.
00001 #ifndef __FASTMATH
00002 #define __FASTMATH
00003 
00004 #define GXSWAP(a,b) {a^=b; b^=a; a^=b;}
00005 
00006 __forceinline void FloatToInt(int *int_pointer, float f) 
00007 {
00008         __asm  fld  f
00009   __asm  mov  edx,int_pointer
00010   __asm  FRNDINT
00011   __asm  fistp dword ptr [edx];
00012 
00013 }
00014 
00015 
00016 #endif

Generated on Thu May 23 17:51:00 2002 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001