Skip to content

Commit c9cb9c6

Browse files
authored
Support isbitistypes with sizeof greater than 256
1 parent ae6debe commit c9cb9c6

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
@@ -101,7 +101,7 @@ end
101101
end
102102

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

0 commit comments

Comments
 (0)