xref: /openbsd/lib/libm/arch/hppa/e_remainderf.c (revision 3cab2bb3)
1 /*
2  * Written by Michael Shalayeff. Public Domain
3  */
4 
5 #include "math.h"
6 
7 float
8 remainderf(float x, float p)
9 {
10 	__asm__ volatile("frem,sgl %0,%1,%0" : "+f" (x) : "f" (p));
11 
12 	return (x);
13 }
14 DEF_STD(remainderf);
15