diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-10-02 15:06:34 -0700 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-10-02 15:06:34 -0700 |
commit | 22c971a225dbb567cd1a45f6006d16c4aa618551 (patch) | |
tree | 04e0c1a63173d296298e6086a516181d6e37f24c /Eigen/src/LU | |
parent | f93841b53ef83460348b19d3b0e82a96a81cd05c (diff) |
Don't cast away const in Inverse_NEON.h.
Diffstat (limited to 'Eigen/src/LU')
-rw-r--r-- | Eigen/src/LU/arch/Inverse_NEON.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/LU/arch/Inverse_NEON.h b/Eigen/src/LU/arch/Inverse_NEON.h index 0ccacc96b..0547a317c 100644 --- a/Eigen/src/LU/arch/Inverse_NEON.h +++ b/Eigen/src/LU/arch/Inverse_NEON.h @@ -37,8 +37,8 @@ struct compute_inverse_size4<Architecture::NEON, float, MatrixType, ResultType> // interleave m and n when interleave == true static Packet4f shuffle(const Packet4f &m, const Packet4f &n, int mask, bool interleave = false) { - float *a = (float *)&m; - float *b = (float *)&n; + const float *a = (const float *)&m; + const float *b = (const float *)&n; if (!interleave) { Packet4f res = {*(a + (mask & 3)), *(a + ((mask >> 2) & 3)), *(b + ((mask >> 4) & 3)), *(b + ((mask >> 6) & 3))}; @@ -194,8 +194,8 @@ struct compute_inverse_size4<Architecture::NEON, double, MatrixType, ResultType> // fuctionally equivalent to _mm_shuffle_pd in SSE (i.e. shuffle(m, n, mask) equals _mm_shuffle_pd(m,n,mask)) static Packet2d shuffle(const Packet2d &m, const Packet2d &n, int mask) { - double *a = (double *)&m; - double *b = (double *)&n; + const double *a = (const double *)&m; + const double *b = (const double *)&n; Packet2d res = {*(a + (mask & 1)), *(b + ((mask >> 1) & 1))}; return res; } |