fix another unaligned load
This commit is contained in:
parent
7474e51642
commit
6824b9a747
@ -260,7 +260,7 @@ fn xor_rows_bit(xp:*u64, rp:*u64, n:usz, l:usz, eq:u1) : void = {
|
||||
if (l <= 64) {
|
||||
bm:= u64~~2<<(l-1) - 1
|
||||
k:= l/8
|
||||
@for (i to n) add_bit{i, popc{bm & load{*u64~~(*u8~~xp + k*i)}}}
|
||||
@for (i to n) add_bit{i, popc{bm & loadu{*u64~~(*u8~~xp + k*i)}}}
|
||||
} else if (l < 128) xor_loop{1}
|
||||
else if (l%64==0) {
|
||||
@for (i to n) add_bit{i, popc{xor_words(0, xp+ll*i, ll)}}
|
||||
|
||||
@ -45,8 +45,7 @@
|
||||
{2 𝕨 _testScanCells 𝕩} _basicArgs 3‿4
|
||||
{2 𝕨 _testScanCells 𝕩} _basicArgs 3‿4
|
||||
|
||||
|
||||
⟨0, 0‿1, 1‿0, 1, 10, 10‿1, 1‿10, 100⟩ {
|
||||
⟨0, 0‿1, 1‿0, 2‿2, 1, 10, 10‿1, 1‿10, 30⟩ {
|
||||
𝕨‿𝕩 ⥊¨↩
|
||||
sh ← 𝕨∾𝕩
|
||||
cr ← ≠𝕩
|
||||
@ -54,5 +53,5 @@
|
||||
cr 𝕎 _testFoldCells 𝕩
|
||||
cr 𝕎 _testScanCells 𝕩
|
||||
}⌜ {0=×´sh? 𝕩; ∾⟨𝕩, ¬⌾⊑¨ 𝕩, ¬⌾(¯1⊑⥊)¨ 𝕩⟩} sh⊸⥊¨ 0‿1
|
||||
}⌜ ⟨0, 1, 2, 8, 8‿1, 4‿8, 4‿2, 59, 60, 63, 80, 81, 200, 640, 641⟩
|
||||
}⌜ ⟨0, 1, 2, 8, 32, 8‿1, 4‿8, 4‿2, 59, 60, 63, 80, 81, 200, 640, 641⟩
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user