Subversion Repositories Kolibri OS

Rev

Rev 5730 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5730 Rev 7086
Line 16... Line 16...
16
	float tan(float x);
16
	float tan(float x);
17
	float abs(float x);
17
	float abs(float x);
18
	float floor(float x);
18
	float floor(float x);
19
	signed round(float x);
19
	signed round(float x);
20
	signed ceil(float x);
20
	signed ceil(float x);
-
 
21
	signed min(signed i1, i2);
-
 
22
	signed max(signed i1, i2);
21
}math;
23
}math;
-
 
24
 
22
:signed MATH::round(float x)
25
:signed MATH::round(float x)
23
{
26
{
24
	x+=0.6;
27
	x+=0.6;
25
	return x;
28
	return x;
26
}
29
}
Line 90... Line 93...
90
		fpatan
93
		fpatan
91
		fstp r
94
		fstp r
92
	}
95
	}
93
	return r;
96
	return r;
94
}
97
}
-
 
98
:signed MATH::min(signed i1, i2)
-
 
99
{
-
 
100
	if (i1 < i2) 
-
 
101
		return i1;
-
 
102
	else 
-
 
103
		return i2;
-
 
104
}
-
 
105
:signed MATH::max(signed i1, i2)
-
 
106
{
-
 
107
	if (i1 > i2) 
-
 
108
		return i1;
-
 
109
	else 
-
 
110
		return i2;
-
 
111
}
95
#endif
112
#endif
96
>
113
>