aboutsummaryrefslogtreecommitdiff
path: root/src/intercopycontext.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-05-28 09:57:54 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-05-28 09:57:54 +0200
commit02fea6561b8ea1a25d740088c4911b584bd763d9 (patch)
tree449317991300551b637512ef2355658c911c1fb5 /src/intercopycontext.cpp
parent0d3b030eb92657dc276a6188f61e5cfdd7e265cb (diff)
downloadlanes-02fea6561b8ea1a25d740088c4911b584bd763d9.tar.gz
lanes-02fea6561b8ea1a25d740088c4911b584bd763d9.tar.bz2
lanes-02fea6561b8ea1a25d740088c4911b584bd763d9.zip
Sprinkle a bit of std::ranges::iota_view
Diffstat (limited to 'src/intercopycontext.cpp')
-rw-r--r--src/intercopycontext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intercopycontext.cpp b/src/intercopycontext.cpp
index 893305e..0b4aabc 100644
--- a/src/intercopycontext.cpp
+++ b/src/intercopycontext.cpp
@@ -1273,11 +1273,11 @@ namespace {
1273 InterCopyContext _c{ U, L2, L1, CacheIndex{ _top_L2 + 1 }, {}, VT::NORMAL, mode, _pBuf }; 1273 InterCopyContext _c{ U, L2, L1, CacheIndex{ _top_L2 + 1 }, {}, VT::NORMAL, mode, _pBuf };
1274 bool _copyok{ true }; 1274 bool _copyok{ true };
1275 STACK_CHECK_START_REL(L1, 0); 1275 STACK_CHECK_START_REL(L1, 0);
1276 for (int i{ _top_L1 - n_ + 1 }, j{ 1 }; i <= _top_L1; ++i, ++j) { 1276 for (int _i{ _top_L1 - n_ + 1 }, _j{ 1 }; _i <= _top_L1; ++_i, ++_j) {
1277 if (U->verboseErrors) { 1277 if (U->verboseErrors) {
1278 sprintf(_tmpBuf, "arg_%d", j); 1278 sprintf(_tmpBuf, "arg_%d", _j);
1279 } 1279 }
1280 _c.L1_i = SourceIndex{ i }; 1280 _c.L1_i = SourceIndex{ _i };
1281 _copyok = _c.inter_copy_one(); // L2: ... cache {}n 1281 _copyok = _c.inter_copy_one(); // L2: ... cache {}n
1282 if (!_copyok) { 1282 if (!_copyok) {
1283 break; 1283 break;