diff options
author | Falk Hüffner <mellum@users.sourceforge.net> | 2002-07-04 01:47:32 +0000 |
---|---|---|
committer | Falk Hüffner <mellum@users.sourceforge.net> | 2002-07-04 01:47:32 +0000 |
commit | c13e1abdec3315945a0b24df67de8affca77ae8a (patch) | |
tree | e27b3447f5d7b4e6ac8bd565888c84d1ba099291 /configure | |
parent | 2dbe7ec87ca78bed69fc28d798a2efb0fec77f9a (diff) | |
download | ffmpeg-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-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 \ |