blob: efd59e2aabbceb93923d218ec3d39e5e5f383eb4 (
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);
}
DEF_STD(remainder);
LDBL_UNUSED_CLONE(remainder);
|