int main ( void ) { Res r; int i; double theta; do_fprem(&r, 10.1, 200.2); show("xx1", &r); do_fprem(&r, 20.3, 1.44); show("xx2", &r); for (i = 0; i < 20; i++) { theta = (2.0 * 3.14159) / 10.0 * (double)i; do_fprem(&r, 12.3*sin(theta), cos(theta)); show("xx", &r); } return 0; }
floatx80 floatx80_remainder(floatx80 a, floatx80 b, Bit64u &q, float_status_t &status) { return do_fprem(a, b, q, float_round_to_zero, status); }
floatx80 floatx80_ieee754_remainder(floatx80 a, floatx80 b, Bit64u &q, float_status_t &status) { return do_fprem(a, b, q, float_round_nearest_even, status); }