xref: /openbsd-src/lib/libm/arch/hppa/s_rintf.c (revision 50b7afb2c2c0993b0894d4e34bf857cb13ed9c80)
1 /*
2  * Written by Michael Shalayeff. Public Domain
3  */
4 
5 #include "math.h"
6 
7 float
8 rintf(float x)
9 {
10 	__asm__ volatile("frnd,sgl %0,%0" : "+f" (x));
11 
12 	return (x);
13 }
14