Files
dmcallis 65a0592776 Initial source code drop
Source code drop for the Actionscript virtual machine in the Adobe
Flash Player for December 2013
2013-12-02 16:04:04 -08:00

26 lines
623 B
ActionScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const NITER:int=100000000;
function main():void
{
var a:float = 1.2f;
var b:float = 7.2f;
var c:float = -7.2f;
var fstart:uint = getTimer();
for(var i:int=0;i < NITER; ++i){
a = b + c;
c = a + b + c;
b = c + a;
}
var ftime:uint = getTimer() - fstart;
if(a == 0f && b == 0f && c == 0f)
trace("metric time ",ftime);
else
trace("FAIL: results invalid, metric irrelevant")
}
main();