fix arm (assembled) indexing

by having a dummy 0 index in salaam. when assembled
This commit is contained in:
Torsten Ruger
2015-11-15 20:42:07 +02:00
parent 9a2fe42167
commit 8e82da0b61
5 changed files with 18 additions and 14 deletions

View File

@ -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