extract padding functions to module

and finally TEST them
its especially the brain bending stuff that needs tests
This commit is contained in:
Torsten Ruger
2015-06-04 08:22:38 +03:00
parent 4ddfcc4900
commit 30d9aaf61b
7 changed files with 75 additions and 49 deletions

View File

@ -140,12 +140,6 @@ module Virtual
padded(l)
end
def padded len
a = 32 * (1 + (len + 7)/32 )
#puts "#{a} for #{len}"
a
end
# position of the function is the position of the entry block, is where we call
def set_position at
at += 8 #for the 2 header words