blob: 87e0871ec2779651ed91eceba4429b257f1b0789 (
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.3 2008/09/07 20:36:08 martynas Exp $";
#endif
#include "math.h"
float
remainderf(float x, float p)
{
__asm__ __volatile__("frem,sgl %0,%1,%0" : "+f" (x) : "f" (p));
return (x);
}
|