fix arm (assembled) indexing
by having a dummy 0 index in salaam. when assembled
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
|
||||
module Padding
|
||||
|
||||
# objects only come in lengths of multiple of 8 words
|
||||
# objects only come in lengths of multiple of 8 words / 32 bytes
|
||||
# and there is a "hidden" 1 word that is used for debug/check memory corruption
|
||||
def padded len
|
||||
a = 32 * (1 + (len - 1)/32 )
|
||||
a = 32 * (1 + (len + 3)/32 )
|
||||
#puts "#{a} for #{len}"
|
||||
a
|
||||
end
|
||||
|
Reference in New Issue
Block a user