1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$NetBSD: patch-af,v 1.3 2004/07/18 17:40:25 kristerw Exp $
--- libavcodec/libpostproc/postprocess_template.c.orig Sun Jul 18 18:13:02 2004
+++ libavcodec/libpostproc/postprocess_template.c Sun Jul 18 19:25:47 2004
@@ -2614,12 +2614,12 @@
static inline void RENAME(blockCopy)(uint8_t dst[], int dstStride, uint8_t src[], int srcStride,
int levelFix, int64_t *packedOffsetAndScale)
{
-#ifndef HAVE_MMX
+#if !defined(HAVE_MMX) || (__GNUC__ < 3)
int i;
#endif
if(levelFix)
{
-#ifdef HAVE_MMX
+#ifdef defined(HAVE_MMX) && (__GNUC__ >= 3)
asm volatile(
"movq (%%eax), %%mm2 \n\t" // packedYOffset
"movq 8(%%eax), %%mm3 \n\t" // packedYScale
@@ -2702,7 +2702,7 @@
}
else
{
-#ifdef HAVE_MMX
+#if defined(HAVE_MMX) && (__GNUC__ >= 3)
asm volatile(
"leal (%0,%2), %%eax \n\t"
"leal (%1,%3), %%edx \n\t"
|