From f7de12de690f1b3a7444c503d1a97ca7efc2fa16 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 27 Aug 2008 20:06:15 +0000 Subject: [PATCH] Missing inline keywords in AltiVec/PacketMath were making Avogadro fail to compile (duplicate symbols). --- Eigen/src/Core/arch/AltiVec/PacketMath.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index 23b34effe..4de3b5e2e 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -51,7 +51,7 @@ template<> struct ei_packet_traits { typedef v4i type; enum {size=4}; }; template<> struct ei_unpacket_traits { typedef float type; enum {size=4}; }; template<> struct ei_unpacket_traits { typedef int type; enum {size=4}; }; -std::ostream & operator <<(std::ostream & s, const v4f & v) +inline std::ostream & operator <<(std::ostream & s, const v4f & v) { union { v4f v; @@ -62,7 +62,7 @@ std::ostream & operator <<(std::ostream & s, const v4f & v) return s; } -std::ostream & operator <<(std::ostream & s, const v4i & v) +inline std::ostream & operator <<(std::ostream & s, const v4i & v) { union { v4i v; @@ -73,7 +73,7 @@ std::ostream & operator <<(std::ostream & s, const v4i & v) return s; } -std::ostream & operator <<(std::ostream & s, const v4ui & v) +inline std::ostream & operator <<(std::ostream & s, const v4ui & v) { union { v4ui v; @@ -84,7 +84,7 @@ std::ostream & operator <<(std::ostream & s, const v4ui & v) return s; } -std::ostream & operator <<(std::ostream & s, const v4bi & v) +inline std::ostream & operator <<(std::ostream & s, const v4bi & v) { union { __vector __bool int v;