...
 
Commits (2)
gnudatalanguage (0.9.9-4) unstable; urgency=medium
* Fix ppc64el FTBS fix
-- Ole Streicher <olebole@debian.org> Tue, 08 Jan 2019 15:18:18 +0100
gnudatalanguage (0.9.9-3) unstable; urgency=medium
* Disable specialized code that causes problems on powerpc
......
From: Ole Streicher <olebole@debian.org>
Date: Tue, 24 Apr 2018 11:44:33 +0200
Date: Tue, 8 Jan 2019 15:15:38 +0100
Subject: Disable specialized code that causes problems on powerpc
https://github.com/gnudatalanguage/gdl/issues/9
Closes: #894324
https://github.com/gnudatalanguage/gdl/issues/530
---
src/medianfilter.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
src/medianfilter.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/medianfilter.cpp b/src/medianfilter.cpp
index 02b05b0..0b7510e 100644
index 02b05b0..07ff634 100644
--- a/src/medianfilter.cpp
+++ b/src/medianfilter.cpp
@@ -670,7 +670,7 @@ static inline void histogram_add( const uint16_t x[16], uint16_t y[16] )
*(__m64*) &y[8] = _mm_add_pi16( *(__m64*) &y[8], *(__m64*) &x[8] );
*(__m64*) &y[12] = _mm_add_pi16( *(__m64*) &y[12], *(__m64*) &x[12] );
}
-#elif defined(__ALTIVEC__)
+#elif defined(__ALTIVEC__) && !defined (__ppc64__)
static inline void histogram_add( const uint16_t x[16], uint16_t y[16] )
{
*(__vector unsigned short*) &y[0] = vec_add( *(__vector unsigned short*) &y[0], *(__vector unsigned short*) &x[0] );
@@ -704,7 +704,7 @@ static inline void histogram_sub( const uint16_t x[16], uint16_t y[16] )
*(__m64*) &y[8] = _mm_sub_pi16( *(__m64*) &y[8], *(__m64*) &x[8] );
*(__m64*) &y[12] = _mm_sub_pi16( *(__m64*) &y[12], *(__m64*) &x[12] );
}
-#elif defined(__ALTIVEC__)
+#elif defined(__ALTIVEC__) && !defined (__ppc64__)
static inline void histogram_sub( const uint16_t x[16], uint16_t y[16] )
{
*(__vector unsigned short*) &y[0] = vec_sub( *(__vector unsigned short*) &y[0], *(__vector unsigned short*) &x[0] );
@@ -24,6 +24,8 @@ namespace fastmedian{ //make it apart from the rest...
#include <stdexcept>
#include <stdint.h>
+#undef __ALTIVEC__
+
const uint64_t ONE64 = 1;