This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import std.stdio; | |
| import std.datetime.stopwatch; | |
| void main(string[] args){ | |
| FCall caller; | |
| Switcher swExec; | |
| StopWatch sw; | |
| if (args.hasElement("output")){ | |
| caller = new FCall(cast(ubyte[])outputProgramInstructions, cast(int[])outputProgramArgs, 64); | |
| swExec = new Switcher(cast(ubyte[])outputProgramInstructions, cast(int[])outputProgramArgs, 64); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module baseConv; | |
| import std.math; | |
| //import misc; | |
| private ulong toDenary(ubyte fromBase, ubyte[] dat){ | |
| ulong r = 0, i = 0; | |
| foreach_reverse(cur; dat){ | |
| r += pow(fromBase,i)*cur; | |
| i++; |