mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-21 20:09:06 +08:00
bug #1161: fix division by zero for huge scalar types
This commit is contained in:
parent
c301f99208
commit
70dc14e4e1
@ -178,7 +178,7 @@ void evaluateProductBlockingSizesHeuristic(Index& k, Index& m, Index& n, Index n
|
|||||||
// We also include a register-level block of the result (mx x nr).
|
// We also include a register-level block of the result (mx x nr).
|
||||||
// (In an ideal world only the lhs panel would stay in L1)
|
// (In an ideal world only the lhs panel would stay in L1)
|
||||||
// Moreover, kc has to be a multiple of 8 to be compatible with loop peeling, leading to a maximum blocking size of:
|
// Moreover, kc has to be a multiple of 8 to be compatible with loop peeling, leading to a maximum blocking size of:
|
||||||
const Index max_kc = ((l1-k_sub)/k_div) & (~(k_peeling-1));
|
const Index max_kc = std::max<Index>(((l1-k_sub)/k_div) & (~(k_peeling-1)),1);
|
||||||
const Index old_k = k;
|
const Index old_k = k;
|
||||||
if(k>max_kc)
|
if(k>max_kc)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user