blob: e7b02d4dde42a9ef1f59fdb688b63d77fa815a41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*
* Written by Michael Shalayeff. Public Domain
*/
#include <sys/cdefs.h>
#include <math.h>
double
remainder(double x, double p)
{
__asm__ __volatile__("frem,dbl %0,%1,%0" : "+f" (x) : "f" (p));
return (x);
}
__weak_alias(remainderl, remainder);
|