Forked from: makc3d's forked from: flash on 2012-4-11 diff:21 forked from: forked from: flash on 2012-4-11 correct implementation Quasimondo forked:2favorite:2lines:29license : see code comments modified : 2012-04-11 00:48:25 Embed Tweet // forked from makc3d's forked from: flash on 2012-4-11 // forked from makc3d's flash on 2012-4-11 // correct implementation package { import com.actionscriptbible.Example; import flash.utils.getTimer; public class FlashTest extends Example { public function FlashTest() { var a:int,b:int,result:int,j:int, t:int = getTimer (); for ( j = 0; j < 10000; j ++ ) { for (a = 0; a < 256; a++) { for (b = 0; b < 256; b++) { result = (a * b) / 255; } } } trace (getTimer () - t); t = getTimer (); for ( j = 0; j < 10000; j ++ ) { for (a = 0; a < 256; a++) { for (b = 0; b < 256; b++) { var i:int = a * b + 128; result = (i+(i>>8))>>8; } } } // https://twitter.com/#!/quasimondo/status/189728898014126080 trace (getTimer () - t); } } } Code Fullscreen Preview Fullscreen bradsedito bradsedito trace int sort new page view favorite forked pv259 forked from: forked from: fork.. hacker_87xm22tw forked:0 favorite:0lines:26 (diff:9) pv600 forked from: forked from: fork.. makc3d forked:1 favorite:0lines:29 (diff:3)