16 lines
199 B
C
16 lines
199 B
C
|
#include <math.h>
|
||
|
|
||
|
#if defined(__HTM__) || __ARCH__ >= 9
|
||
|
|
||
|
long double roundl(long double x)
|
||
|
{
|
||
|
__asm__ ("fixbra %0, 1, %1, 4" : "=f"(x) : "f"(x));
|
||
|
return x;
|
||
|
}
|
||
|
|
||
|
#else
|
||
|
|
||
|
#include "../roundl.c"
|
||
|
|
||
|
#endif
|