xref: /openbsd-src/lib/libm/arch/hppa/s_rintf.c (revision 91f110e064cd7c194e59e019b83bb7496c1c84d4)
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