Int.{quot,rem}
Stephen Weeks
MLton@sourcelight.com
Mon, 4 Feb 2002 12:20:42 -0800
I am porting the PolySpace changes into our internal version, and they
replaced our Int_quot and Int_rem with the following macros (for the C
codegen).
#define Int_quot(x, y) ((x)/(y))
#define Int_rem(x, y) ((x)%(y))
I assume that there was a reason that we used all of the assembly that
we have in runtime/basis/Int/{quot,rem}.c instead of these, but I
don't remember it. I tried their changes on the int.sml regression
test, and it works fine.
Any ideas?