blob: 637845d6550e3332e8f7810226c38612fada9cdc (
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.2 2002/09/11 15:16:52 mickey Exp $";
#endif
#include "math.h"
float
rintf(float x)
{
__asm__ __volatile__("frnd,sgl %0,%0" : "+f" (x));
return (x);
}
|