quakeforge/tools/qfcc/test/test2.qc
2011-02-13 19:02:39 +09:00

8 lines
170 B
C++

float (float a, float b) idiv =
{
return ((a & -1) / (b & -1)) & -1;
};
float (float a, float b) imod =
{
return (a & -1) - (b & -1) * (((a & -1) / (b & -1)) & -1);
};