aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-11-23 17:06:04 -0500
committerJack Lloyd <[email protected]>2015-11-23 17:06:04 -0500
commit30d7e4df88a2ef6333fb6ee17bb0425ac3cba220 (patch)
treec3deb013d30b21c096d5050c727b52d981eb35f1 /src/lib/utils
parentbefda7b4155f4b4889cff24fc1b664af3473130f (diff)
Remove bogus code from generic mp_madd header, noticed on PPC build.
Also fix a few cast and zero-as-nullptr warnings in the AltiVec header
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/simd/simd_altivec/simd_altivec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/simd/simd_altivec/simd_altivec.h b/src/lib/utils/simd/simd_altivec/simd_altivec.h
index 0a77d60fa..3963f2817 100644
--- a/src/lib/utils/simd/simd_altivec/simd_altivec.h
+++ b/src/lib/utils/simd/simd_altivec/simd_altivec.h
@@ -69,7 +69,7 @@ class SIMD_Altivec
void store_le(byte out[]) const
{
- __vector unsigned char perm = vec_lvsl(0, (u32bit*)0);
+ __vector unsigned char perm = vec_lvsl(0, static_cast<u32bit*>(nullptr));
perm = vec_xor(perm, vec_splat_u8(3));
@@ -179,7 +179,7 @@ class SIMD_Altivec
SIMD_Altivec bswap() const
{
- __vector unsigned char perm = vec_lvsl(0, (u32bit*)0);
+ __vector unsigned char perm = vec_lvsl(0, static_cast<u32bit*>(nullptr));
perm = vec_xor(perm, vec_splat_u8(3));