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:
Kirill Lipatov (Leency) 2018-05-06 15:03:12 +00:00
parent 5d72ec7c19
commit cd1cb39d43
1 changed files with 7 additions and 0 deletions

View File

@ -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