mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
f250065003
Triangle area was meant just to check Kahan's equation, but it found a problem with swapping vars. swap.r currently fails.
15 lines
183 B
R
15 lines
183 B
R
void printf (string fmt, ...) = #0;
|
|
|
|
float
|
|
swap (float a, float b)
|
|
{
|
|
float t;
|
|
if (a < b) { t = a; a = b; b = t; }
|
|
return a - b;
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
return swap (1, 2) > 0 ? 0 : 1;
|
|
}
|