xref: /openbsd-src/lib/libm/arch/hppa/s_rintf.c (revision 2f2c00629eff6a304ebffb255fc56f4fa7a1833b)
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
rintf(float x)9 rintf(float x)
10 {
11 	__asm__ volatile("frnd,sgl %0,%0" : "+f" (x));
12 
13 	return (x);
14 }
15 DEF_STD(rintf);
16