xref: /openbsd-src/lib/libm/arch/hppa/s_rintf.c (revision 46035553bfdd96e63c94e32da0210227ec2e3cf1)
1 /*	$OpenBSD: s_rintf.c,v 1.6 2016/09/12 19:47:02 guenther Exp $	*/
2 /*
3  * Written by Michael Shalayeff. Public Domain
4  */
5 
6 #include "math.h"
7 
8 float
9 rintf(float x)
10 {
11 	__asm__ volatile("frnd,sgl %0,%0" : "+f" (x));
12 
13 	return (x);
14 }
15 DEF_STD(rintf);
16