Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
lib
libc
musl
src
math
aarch64
llroundf.c
pretty
plain
permalink
blame
history
•
8 lines
•
125 B
1
#include <math.h>
2
3
long long llroundf(float x)
4
{
5
	long long n;
6
	__asm__ ("fcvtas %x0, %s1" : "=r"(n) : "w"(x));
7
	return n;
8
}