[m-dev.] ICFP Contest: Written parse_trace.m and dump.m

Michael Day mikeday at yeslogic.com
Mon Jun 30 09:32:13 AEST 2003


> One obvious bug in fix.m is that section 2 of the spec. points out that
> for div and mul, "32 bits is not enough for implementing these
> operations."  The quickest solution is probably to use the integer
> library rather than just int, although performance wouldn't be great

Implement div and mul as foreign_procs and use "long long".
Very simple, efficient, and no discrepancies.

Michael

-- 
YesLogic Prince prints XML!
http://yeslogic.com

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list