[x264-devel] commit: Factorize in ppccommon.h the conditional inclusion of altivec. h on Linux systems. (Brad Smith )

git version control git at videolan.org
Tue Jan 6 00:00:54 CET 2009


x264 | branch: master | Brad Smith <brad at comstyle.com> | Mon Jan  5 22:53:11 2009 +0000| [f586ba52b87ebb6b1d7689603680ef7d3219e09a] | committer: Guillaume Poirier 

Factorize in ppccommon.h the conditional inclusion of altivec.h on Linux systems.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=f586ba52b87ebb6b1d7689603680ef7d3219e09a
---

 common/ppc/dct.c       |    4 ----
 common/ppc/deblock.c   |    4 ----
 common/ppc/mc.c        |    4 ----
 common/ppc/pixel.c     |    4 ----
 common/ppc/ppccommon.h |    4 ++++
 common/ppc/predict.c   |    4 ----
 common/ppc/quant.c     |    4 ----
 7 files changed, 4 insertions(+), 24 deletions(-)

diff --git a/common/ppc/dct.c b/common/ppc/dct.c
index 6cdddfa..d79d782 100644
--- a/common/ppc/dct.c
+++ b/common/ppc/dct.c
@@ -21,10 +21,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
  *****************************************************************************/
 
-#ifdef SYS_LINUX
-#include <altivec.h>
-#endif
-
 #include "common/common.h"
 #include "ppccommon.h"
 
diff --git a/common/ppc/deblock.c b/common/ppc/deblock.c
index 86816ca..3531812 100644
--- a/common/ppc/deblock.c
+++ b/common/ppc/deblock.c
@@ -18,10 +18,6 @@
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
 *****************************************************************************/
 
-#if defined SYS_LINUX
-#include <altivec.h>
-#endif
-
 #include "common/common.h"
 #include "ppccommon.h"
 
diff --git a/common/ppc/mc.c b/common/ppc/mc.c
index 3772ff5..b11f531 100644
--- a/common/ppc/mc.c
+++ b/common/ppc/mc.c
@@ -27,10 +27,6 @@
 #include <stdint.h>
 #include <stdarg.h>
 
-#ifdef SYS_LINUX
-#include <altivec.h>
-#endif
-
 #include "x264.h"
 #include "common/common.h"
 #include "common/mc.h"
diff --git a/common/ppc/pixel.c b/common/ppc/pixel.c
index f4af311..921c01e 100644
--- a/common/ppc/pixel.c
+++ b/common/ppc/pixel.c
@@ -21,10 +21,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
  *****************************************************************************/
 
-#ifdef SYS_LINUX
-#include <altivec.h>
-#endif
-
 #include "common/common.h"
 #include "ppccommon.h"
 
diff --git a/common/ppc/ppccommon.h b/common/ppc/ppccommon.h
index efafe69..ac0a9ca 100644
--- a/common/ppc/ppccommon.h
+++ b/common/ppc/ppccommon.h
@@ -18,6 +18,10 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
  *****************************************************************************/
 
+#ifdef SYS_LINUX
+#include <altivec.h>
+#endif
+
 /***********************************************************************
  * For constant vectors, use parentheses on OS X and braces on Linux
  **********************************************************************/
diff --git a/common/ppc/predict.c b/common/ppc/predict.c
index a85683f..1fcd72b 100644
--- a/common/ppc/predict.c
+++ b/common/ppc/predict.c
@@ -18,10 +18,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
  *****************************************************************************/
 
-#ifdef SYS_LINUX
-#include <altivec.h>
-#endif
-
 #include "common/common.h"
 #include "predict.h"
 #include "pixel.h"
diff --git a/common/ppc/quant.c b/common/ppc/quant.c
index cc8da64..b4d551e 100644
--- a/common/ppc/quant.c
+++ b/common/ppc/quant.c
@@ -18,10 +18,6 @@
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
 *****************************************************************************/
 
-#if defined SYS_LINUX
-#include <altivec.h>
-#endif
-
 #include "common/common.h"
 #include "ppccommon.h"
 #include "quant.h"            



More information about the x264-devel mailing list