summaryrefslogtreecommitdiffstats
path: root/lib/libm/arch/hppa/s_rintf.c
blob: 89f749819db5224cb49b8ea2a48c55e27aa69d9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * Written by Michael Shalayeff. Public Domain
 */

#include "math.h"

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

	return (x);
}