aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/LU
diff options
context:
space:
mode:
authorGravatar David Tellenbach <david.tellenbach@me.com>2020-10-04 00:26:40 +0200
committerGravatar David Tellenbach <david.tellenbach@me.com>2020-10-04 00:35:09 +0200
commitf66f3393e3d567e5c8b138fbad69b316214a4ce9 (patch)
tree28d33d0ced1fb1c037df31db4fa46f9a56959c04 /Eigen/src/LU
parent22c971a225dbb567cd1a45f6006d16c4aa618551 (diff)
Use reinterpret_cast instead of C-style cast in Inverse_NEON.h
Diffstat (limited to 'Eigen/src/LU')
-rw-r--r--Eigen/src/LU/arch/Inverse_NEON.h8
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 0547a317c..ed64b1b3a 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)
{
- const float *a = (const float *)&m;
- const float *b = (const float *)&n;
+ const float *a = reinterpret_cast<const float *>(&m);
+ const float *b = reinterpret_cast<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)
{
- const double *a = (const double *)&m;
- const double *b = (const double *)&n;
+ const double *a = reinterpret_cast<const double *>(&m);
+ const double *b = reinterpret_cast<const double *>(&n);
Packet2d res = {*(a + (mask & 1)), *(b + ((mask >> 1) & 1))};
return res;
}