/* * Written by Michael Shalayeff. Public Domain */ #include "math.h" float remainderf(float x, float p) { __asm__ __volatile__("frem,sgl %0,%1,%0" : "+f" (x) : "f" (p)); return (x); }