aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorFalk Hüffner <mellum@users.sourceforge.net>2002-07-04 01:47:32 +0000
committerFalk Hüffner <mellum@users.sourceforge.net>2002-07-04 01:47:32 +0000
commitc13e1abdec3315945a0b24df67de8affca77ae8a (patch)
treee27b3447f5d7b4e6ac8bd565888c84d1ba099291 /configure
parent2dbe7ec87ca78bed69fc28d798a2efb0fec77f9a (diff)
downloadffmpeg-c13e1abdec3315945a0b24df67de8affca77ae8a.tar.gz
* Detect "retrict" keyword
* Use "restrict" in some dsputil routines (yields large speedup) Originally committed as revision 716 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 4e38da5940..e1ed0de396 100755
--- a/configure
+++ b/configure
@@ -191,6 +191,15 @@ EOF
$cc -o $TMPO $TMPC 2> /dev/null || _memalign=no
fi
+_restrict=
+for restrict_keyword in restrict __restrict__ __restrict; do
+ echo "void foo(char * $restrict_keyword p);" > $TMPC
+ if $cc -c -o $TMPO $TMPC 2> /dev/null; then
+ _restrict=$restrict_keyword
+ break;
+ fi
+done
+
if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
cat << EOF
@@ -351,6 +360,8 @@ if test "$simpleidct" = "yes" ; then
echo "#define SIMPLE_IDCT 1" >> $TMPH
fi
+echo "#define restrict $_restrict" >> $TMPH
+
# build tree in object directory if source path is different from current one
if test "$source_path_used" = "yes" ; then
DIRS="libav libavcodec libavcodec/alpha libavcodec/armv4l libavcodec/i386 \