[fpc-devel] Math.DivMod results should be signed
k at i.fredriksen.net
k at i.fredriksen.net
Thu Nov 9 13:16:50 CET 2006
of course... :) it lost 2 milliseconds on the assembly code in 100 million iterations.
Thank you Peter and Daniƫl
Kai
-- Peter Vreman wrote :
If you need both the div and mod you can use a single divsion and
subtraction:
oldval:=value
divval:=value div divider
modval:=oldval-divval
This will work on all platforms and normally the oldval can be kept in a
register.
_______________________________________________
fpc-devel maillist - fpc-devel at list...
http://lists.freepascal.org/mailman/listinfo/fpc-devel
--
This message was sent on behalf of k at i.fredriksen.net at openSubscriber.com
http://www.opensubscriber.com/message/fpc-devel@lists.freepascal.org/5318837.html
More information about the fpc-devel
mailing list