summaryrefslogtreecommitdiff
path: root/lib/libm/arch/hppa/s_rintf.c
blob: f3d0a60235c4ee115a2a0f8d55eedd02ba8fcd24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Written by Michael Shalayeff. Public Domain
 */

#if defined(LIBM_SCCS) && !defined(lint)
static char rcsid[] = "$OpenBSD: s_rintf.c,v 1.1 2002/05/22 21:34:56 mickey Exp $";
#endif

#include "math.h"

float
__ieee754_rint(float x)
{
	__asm__ __volatile__("frnd,dbl %0,%0" : "+f" (x));

	return (x);
}