Use a single PacketSize variable
This commit is contained in:
parent
8f6fedc55f
commit
0ed08fd281
@ -101,13 +101,12 @@ struct EvalRange {
|
|||||||
|
|
||||||
template <typename Evaluator, typename Index>
|
template <typename Evaluator, typename Index>
|
||||||
struct EvalRange<Evaluator, Index, true> {
|
struct EvalRange<Evaluator, Index, true> {
|
||||||
static const int PacketSize = unpacket_traits<typename Evaluator::PacketReturnType>::size;
|
static const int PacketSize = unpacket_traits<typename Evaluator::PacketReturnType>::size;
|
||||||
|
|
||||||
static void run(Evaluator* evaluator_in, const Index first, const Index last) {
|
static void run(Evaluator* evaluator_in, const Index first, const Index last) {
|
||||||
Evaluator evaluator = *evaluator_in;
|
Evaluator evaluator = *evaluator_in;
|
||||||
eigen_assert(last >= first);
|
eigen_assert(last >= first);
|
||||||
Index i = first;
|
Index i = first;
|
||||||
const int PacketSize = unpacket_traits<typename Evaluator::PacketReturnType>::size;
|
|
||||||
if (last - first >= PacketSize) {
|
if (last - first >= PacketSize) {
|
||||||
eigen_assert(first % PacketSize == 0);
|
eigen_assert(first % PacketSize == 0);
|
||||||
Index last_chunk_offset = last - 4 * PacketSize;
|
Index last_chunk_offset = last - 4 * PacketSize;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user