1 /* This file is generated from divrem.m4; DO NOT EDIT! */
2 /* For each N divided by D, we do:
3 result = (double) N / (double) D
4 Then, for each N mod D, we do:
5 result = N - (D * divMODE (N, D))
8 The q and qu versions won't deal with operands > 50 bits. We also
9 don't check for divide by zero. */
13 /* We do not handle div by zero yet. */
14 #include <machine/pal.h>
24 /* First set up the dividend. */
29 ldit $f26, 18446744073709551616.0
31 fcmovlt $f10, $f26, $f10
34 /* Then set up the divisor. */
39 ldit $f26, 18446744073709551616.0
41 fcmovlt $f1, $f26, $f1
44 /* Do the division. */
48 /* Put the result in t12. */