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