Subversion Repositories Kolibri OS

Rev

Rev 990 | Rev 7495 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 990 Rev 1764
Line 258... Line 258...
258
	__asm fild x
258
	__asm fild x
259
}
259
}
260
 
260
 
261
const double ALMOST_HALF = 0.5 - epsilon;
261
//const double ALMOST_HALF = 0.5 - epsilon;
Line 262... Line 262...
262
double func_floor(double val)
262
double ALMOST_HALF;
-
 
263
extern void ALMOST_HALF_init(void)
-
 
264
{ ALMOST_HALF = 0.5 - epsilon; }
-
 
265
double func_floor(double val)
263
{
266
{
264
	int x;
267
	int x;
265
	__asm fld val
268
	__asm fld val
266
	__asm fld ALMOST_HALF
269
	__asm fld ALMOST_HALF
267
	__asm fsub
270
	__asm fsub