add forgotten file: math.h add .in function
git-svn-id: svn://kolibrios.org@7272 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
5d72ec7c19
commit
cd1cb39d43
|
@ -20,6 +20,7 @@
|
|||
signed ceil(float x);
|
||||
signed min(signed i1, i2);
|
||||
signed max(signed i1, i2);
|
||||
signed in(signed base, min1, max1);
|
||||
}math;
|
||||
|
||||
:signed MATH::round(float x)
|
||||
|
@ -109,4 +110,10 @@
|
|||
else
|
||||
return i2;
|
||||
}
|
||||
:signed MATH::in(signed base, min1, max1)
|
||||
{
|
||||
if (base > max1) return max1;
|
||||
if (base < min1) return min1;
|
||||
return base;
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue