mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
49ca09a64f
I don't remember what half these tests were for :/
8 lines
170 B
C++
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);
|
|
};
|