################################################################################
def gcdext(x,y)
+ return [0, 0, 0] if(x == 0 || y == 0)
g=1
while(x&1==0 && y&1==0) do
x>>=1
def expmod_test(a,b,c)
begin
+ printf("[testing] expmod(%#x, %#x, %#x)\n",a,b,c) if $debug
line = $sp.gets()
line = "" if line==nil
puts("DBG got: "+line) if $debug
################################################################################
def gcdext_test(a,b)
+ $logfile.printf("[testing] gcdext(%s, %s)\n", a.to_s(16), b.to_s(16))
begin
line = $sp.gets()
line = "" if line==nil
end
$logfile = File.open(logfilename, 'w')
printf("logfile: %s\n", logfilename)
-
+$logfile.sync = true
$logfile.printf("bigint test from: %s\n", Time.now.to_s)
$logfile.printf("skip = %s\n", opts['s']) if opts['s']
$logfile.printf("seed = 0x%X\n", 0xdeadbeef)