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