Skip to content

Commit 9be41ec

Browse files
authored
Merge pull request #51 from chriselrod/patch-2
Support `isbitistype`s with `sizeof` greater than 256
2 parents 1179044 + c9cb9c6 commit 9be41ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lu.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ end
102102
end
103103

104104
@inline function nsplit(::Type{T}, n) where {T}
105-
k = 512 ÷ (isbitstype(T) ? sizeof(T) : 8)
105+
k = max(2, 512 ÷ (isbitstype(T) ? sizeof(T) : 8))
106106
k_2 = k ÷ 2
107107
return n >= k ? ((n + k_2) ÷ k) * k_2 : n ÷ 2
108108
end

0 commit comments

Comments
 (0)