From 4a9cecff61b555c668eba9d3e425ed03f5ab1f01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Thu, 26 Jan 2023 11:50:58 +0100 Subject: [PATCH] Removed unnecessary __restrict keywords from public exposed functoin headers. --- org/qmckl_sherman_morrison_woodbury.org | 102 ++++++++++++------------ 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/org/qmckl_sherman_morrison_woodbury.org b/org/qmckl_sherman_morrison_woodbury.org index 3a8e882..769a1b9 100644 --- a/org/qmckl_sherman_morrison_woodbury.org +++ b/org/qmckl_sherman_morrison_woodbury.org @@ -518,11 +518,11 @@ assert(rc == QMCKL_SUCCESS); const qmckl_context context, const uint64_t LDS, const uint64_t Dim, - const double* __restrict Updates, - const uint64_t* __restrict Updates_index, + const double* Updates, + const uint64_t* Updates_index, const double breakdown, - double* __restrict Slater_inv, - double* __restrict determinant); + double* Slater_inv, + double* determinant); #+end_src *** C source @@ -531,11 +531,11 @@ assert(rc == QMCKL_SUCCESS); qmckl_exit_code qmckl_woodbury_2(const qmckl_context context, const uint64_t LDS, const uint64_t Dim, - const double* __restrict Updates, - const uint64_t* __restrict Updates_index, + const double* Updates, + const uint64_t* Updates_index, const double breakdown, - double* __restrict Slater_inv, - double* __restrict determinant) { + double* Slater_inv, + double* determinant) { /* C := S^{-1} * U, dim x 2 B := 1 + V * C, 2 x 2 @@ -590,8 +590,8 @@ qmckl_exit_code qmckl_woodbury_2(const qmckl_context context, // tmp = B^{-1}D : 2 x LDS double __attribute__((aligned(8))) tmp[2 * LDS]; - double* __restrict r1dim = &(Slater_inv[row1 * LDS]); - double* __restrict r2dim = &(Slater_inv[row2 * LDS]); + double* r1dim = &(Slater_inv[row1 * LDS]); + double* r2dim = &(Slater_inv[row2 * LDS]); IVDEP ALIGNED for (uint64_t j = 0; j < LDS; j++) { @@ -733,11 +733,11 @@ assert(rc == QMCKL_SUCCESS); const qmckl_context context, const uint64_t LDS, const uint64_t Dim, - const double* __restrict Updates, - const uint64_t* __restrict Updates_index, + const double* Updates, + const uint64_t* Updates_index, const double breakdown, - double* __restrict Slater_inv, - double* __restrict determinant); + double* Slater_inv, + double* determinant); #+end_src *** C source @@ -746,11 +746,11 @@ assert(rc == QMCKL_SUCCESS); qmckl_exit_code qmckl_woodbury_3(const qmckl_context context, const uint64_t LDS, const uint64_t Dim, - const double* __restrict Updates, - const uint64_t* __restrict Updates_index, + const double* Updates, + const uint64_t* Updates_index, const double breakdown, - double* __restrict Slater_inv, - double* __restrict determinant) { + double* Slater_inv, + double* determinant) { /* C := S^{-1} * U, dim x 3 B := 1 + V * C, 3 x 3 @@ -820,9 +820,9 @@ qmckl_exit_code qmckl_woodbury_3(const qmckl_context context, // tmp = B^{-1}D : 3 x LDS double __attribute__((aligned(8))) tmp[3 * LDS]; - double* __restrict r1dim = &(Slater_inv[row1 * LDS]); - double* __restrict r2dim = &(Slater_inv[row2 * LDS]); - double* __restrict r3dim = &(Slater_inv[row3 * LDS]); + double* r1dim = &(Slater_inv[row1 * LDS]); + double* r2dim = &(Slater_inv[row2 * LDS]); + double* r3dim = &(Slater_inv[row3 * LDS]); IVDEP ALIGNED for (uint64_t j = 0; j < LDS; j++) { @@ -975,11 +975,11 @@ assert(rc == QMCKL_SUCCESS); const uint64_t LDS, const uint64_t Dim, const uint64_t N_updates, - const double* __restrict Updates, - const uint64_t* __restrict Updates_index, + const double* Updates, + const uint64_t* Updates_index, const double breakdown, - double* __restrict Slater_inv, - double* __restrict determinant); + double* Slater_inv, + double* determinant); #+end_src *** C source @@ -989,11 +989,11 @@ qmckl_exit_code qmckl_sherman_morrison_splitting(const qmckl_context context, const uint64_t LDS, const uint64_t Dim, const uint64_t N_updates, - const double* __restrict Updates, - const uint64_t* __restrict Updates_index, + const double* Updates, + const uint64_t* Updates_index, const double breakdown, - double* __restrict Slater_inv, - double* __restrict determinant) { + double* Slater_inv, + double* determinant) { if (qmckl_context_check(context) == QMCKL_NULL_CONTEXT) { return qmckl_failwith(context, @@ -1141,11 +1141,11 @@ assert(rc == QMCKL_SUCCESS); const uint64_t LDS, const uint64_t Dim, const uint64_t N_updates, - const double* __restrict Updates, - const uint64_t* __restrict Updates_index, + const double* Updates, + const uint64_t* Updates_index, const double breakdown, - double* __restrict Slater_inv, - double* __restrict determinant); + double* Slater_inv, + double* determinant); #+end_src *** C source @@ -1155,11 +1155,11 @@ qmckl_exit_code qmckl_sherman_morrison_smw32s(const qmckl_context context, const uint64_t LDS, const uint64_t Dim, const uint64_t N_updates, - const double* __restrict Updates, - const uint64_t* __restrict Updates_index, + const double* Updates, + const uint64_t* Updates_index, const double breakdown, - double* __restrict Slater_inv, - double* __restrict determinant) { + double* Slater_inv, + double* determinant) { if (qmckl_context_check(context) == QMCKL_NULL_CONTEXT) { return qmckl_failwith(context, @@ -1399,14 +1399,14 @@ These functions can only be used internally by the kernels in this module. const uint64_t LDS, const uint64_t Dim, const uint64_t N_updates, - const double* __restrict Updates, - const uint64_t* __restrict Updates_index, + const double* Updates, + const uint64_t* Updates_index, const double breakdown, - double* __restrict Slater_inv, - double* __restrict later_updates, - uint64_t* __restrict later_index, - uint64_t* __restrict later, - double* __restrict determinant); + double* Slater_inv, + double* later_updates, + uint64_t* later_index, + uint64_t* later, + double* determinant); #+end_src *** C source @@ -1415,14 +1415,14 @@ These functions can only be used internally by the kernels in this module. qmckl_exit_code qmckl_slagel_splitting(uint64_t LDS, uint64_t Dim, uint64_t N_updates, - const double* __restrict Updates, - const uint64_t* __restrict Updates_index, + const double* Updates, + const uint64_t* Updates_index, const double breakdown, - double* __restrict Slater_inv, - double* __restrict later_updates, - uint64_t* __restrict later_index, - uint64_t* __restrict later, - double* __restrict determinant) { + double* Slater_inv, + double* later_updates, + uint64_t* later_index, + uint64_t* later, + double* determinant) { double __attribute__((aligned(8))) C[LDS]; double __attribute__((aligned(8))) D[LDS];