summaryrefslogtreecommitdiff
path: root/lib/libm/arch/hppa/e_remainderf.c
blob: b39314978b7f5f322fa54d52b823e7c87814f9c3 (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: e_remainderf.c,v 1.2 2004/05/22 23:36:27 mickey Exp $";
#endif

#include "math.h"

float
__ieee754_remainderf(float x, float p)
{
	__asm__ __volatile__("frem,sgl %0,%1,%0" : "+f" (x) : "f" (p));

	return (x);
}