xref: /openbsd-src/lib/libm/arch/hppa/s_rintf.c (revision a28daedfc357b214be5c701aa8ba8adb29a7f1c2)
1 /*
2  * Written by Michael Shalayeff. Public Domain
3  */
4 
5 #if defined(LIBM_SCCS) && !defined(lint)
6 static char rcsid[] = "$OpenBSD: s_rintf.c,v 1.2 2002/09/11 15:16:52 mickey Exp $";
7 #endif
8 
9 #include "math.h"
10 
11 float
12 rintf(float x)
13 {
14 	__asm__ __volatile__("frnd,sgl %0,%0" : "+f" (x));
15 
16 	return (x);
17 }
18