From 460e18d45882e5cd7d5fcd965a2be3d8fc97e646 Mon Sep 17 00:00:00 2001 From: terrylyons Date: Thu, 4 May 2023 08:47:50 +0100 Subject: [PATCH] changed one pointer assignment with a __restrict to a __declspec(restrict) on the return type of the two function tile_ptr() methods --- libalgebra/tensor.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libalgebra/tensor.h b/libalgebra/tensor.h index c6a43ca..cc84eb8 100644 --- a/libalgebra/tensor.h +++ b/libalgebra/tensor.h @@ -1,4 +1,4 @@ -/* ************************************************************* +/* ************************************************************* Copyright 2010 Terry Lyons, Stephen Buckley, Djalil Chafai, Greg Gyurkó and Arend Janssen. @@ -307,11 +307,11 @@ class central_tile_helper : public tile_details return reverse.data(); } - pointer tile_ptr() noexcept + pointer __declspec(restrict) tile_ptr() noexcept { return static_cast(tile.data); } - const_pointer tile_ptr() const noexcept + const_pointer __declspec(restrict) tile_ptr() const noexcept { return static_cast(tile.data); } @@ -385,7 +385,7 @@ class central_tile_helper : public tile_details LA_INLINE_ALWAYS constexpr void permute_write_tile() { // using perm = dtl::reversing_permutation; - pointer LA_RESTRICT tptr = tile_ptr(); + pointer tptr = tile_ptr(); const auto* perm = reverser(); for (index_type i = 0; i < tile_width; ++i) { // auto pi = perm::permute_idx(i);