Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

/* $NetBSD: lrint.S,v 1.2 2015/03/27 23:35:40 matt Exp $ */

/* The contents of this file are in the public domain. */

#include <machine/asm.h>

#ifdef _LP64_X
STRONG_ALIAS(llrint,lrint)
#endif

ENTRY(lrint)
#ifdef _LP64
	fcvt.l.d	a0, fa0
#else
	fcvt.w.d	a0, fa0
#endif
	ret
END(lrint)