ports/devel/pwlib/files/patch-src_ptlib_common_jidctflt.cxx
Rong-En Fan 0908ddc281 - Restore previous patch that disables buggy assembly. This fixes build
on 5.x and 6.x.

Noticed by:	marcus@
Approved by:	maintainer (implicit)
2008-03-02 06:49:10 +00:00

12 lines
484 B
C++

--- src/ptlib/common/jidctflt.cxx.orig Wed Apr 5 07:08:00 2006
+++ src/ptlib/common/jidctflt.cxx Wed Apr 5 07:08:08 2006
@@ -97,7 +97,8 @@
#define DEQUANTIZE(coef,quantval) (((FAST_FLOAT) (coef)) * (quantval))
-#if defined(__GNUC__) && (__GNUC__ >= 3) && (defined(__i686__) || defined(__x86_64__)) && (!defined(P_64BIT)) && (!defined(__MACOSX__))
+/* asm doesn't compile properly... avoid using */
+#if 0
static inline unsigned char descale_and_clamp(int x, int shift)
{