9 lines
114 B
C
9 lines
114 B
C
#include <math.h>
|
|
|
|
long lroundf(float x)
|
|
{
|
|
long n;
|
|
__asm__ ("fcvtas %x0, %s1" : "=r"(n) : "w"(x));
|
|
return n;
|
|
}
|