added roundl to libnotimpl

git-svn-id: svn://svn.openwrt.org/openwrt/packages@9221 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
blogic 2007-10-09 20:02:04 +00:00
parent 42c51849a4
commit bb77693ac4

View File

@ -96,3 +96,18 @@
return (float) expf( (double)x );
}
/* lround for uClibc
*
* wrapper for lround(x)
*/
#ifdef __STDC__
long lround(double x)
#else
long lround(x)
double x;
#endif
{
return (long) ((x - ((long)x) >= 0.5f) ? (((long)x) + 1) : ((long)x));
}