extract padding functions to module
and finally TEST them its especially the brain bending stuff that needs tests
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user