diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-05-19 13:59:52 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-05-19 13:59:52 -0700 |
commit | a81d17b73a8544920eb69f9fe436b40ea126c798 (patch) | |
tree | 0717f549db12a2c6e6e3ed7f48cab2550b5069ad /unsupported/test/cxx11_tensor_intdiv.cpp | |
parent | 051d5325ccecf2ab773fbe6d1ae19be57903ac03 (diff) |
Added new version of the TensorIntDiv class optimized for 32 bit signed integers. It saves 1 register on CPU and 2 on GPU.
Diffstat (limited to 'unsupported/test/cxx11_tensor_intdiv.cpp')
-rw-r--r-- | unsupported/test/cxx11_tensor_intdiv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/test/cxx11_tensor_intdiv.cpp b/unsupported/test/cxx11_tensor_intdiv.cpp index 7175bf41d..a50356c74 100644 --- a/unsupported/test/cxx11_tensor_intdiv.cpp +++ b/unsupported/test/cxx11_tensor_intdiv.cpp @@ -1,7 +1,7 @@ // This file is part of Eigen, a lightweight C++ template library // for linear algebra. // -// Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com> +// Copyright (C) 2014-2015 Benoit Steiner <benoit.steiner.goog@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed @@ -14,7 +14,7 @@ void test_signed_32bit() { - for (int32_t i = 1; i < 25000; ++i) { + for (int32_t i = 2; i < 25000; ++i) { const Eigen::internal::TensorIntDivisor<int32_t> div(i); for (int32_t j = 0; j < 25000; ++j) { |