1/* $NetBSD: lrint.S,v 1.2 2015/03/27 23:35:40 matt Exp $ */ 2 3/* The contents of this file are in the public domain. */ 4 5#include <machine/asm.h> 6 7#ifdef _LP64_X 8STRONG_ALIAS(llrint,lrint) 9#endif 10 11ENTRY(lrint) 12#ifdef _LP64 13 fcvt.l.d a0, fa0 14#else 15 fcvt.w.d a0, fa0 16#endif 17 ret 18END(lrint) 19