added roundl to libnotimpl
git-svn-id: svn://svn.openwrt.org/openwrt/packages@9221 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
42c51849a4
commit
bb77693ac4
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user