2004-05-08 03:11:51 +02:00
|
|
|
#include "precompiled.h"
|
2004-03-03 00:56:51 +01:00
|
|
|
|
2005-01-25 00:08:30 +01:00
|
|
|
#include "lib.h"
|
2004-03-03 00:56:51 +01:00
|
|
|
#include "sysdep.h"
|
2004-07-15 21:59:27 +02:00
|
|
|
#include <memory.h>
|
2004-07-25 13:30:05 +02:00
|
|
|
#include <stdarg.h>
|
2004-03-03 00:56:51 +01:00
|
|
|
|
2004-06-02 17:12:48 +02:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
|
|
|
|
double round(double x)
|
|
|
|
{
|
|
|
|
return (long)(x + 0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2004-06-03 03:43:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef HAVE_C99
|
|
|
|
|
|
|
|
float fminf(float a, float b)
|
|
|
|
{
|
|
|
|
return (a < b)? a : b;
|
|
|
|
}
|
|
|
|
|
|
|
|
float fmaxf(float a, float b)
|
|
|
|
{
|
|
|
|
return (a > b)? a : b;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|