Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
87ea51e0
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
87ea51e0
编写于
10月 07, 2006
作者:
L
Luca Barbato
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix the dcbz check and move it in configure
Originally committed as revision 6580 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
104f8c10
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
13 deletion
+24
-13
configure
configure
+22
-0
libavcodec/ppc/dsputil_ppc.c
libavcodec/ppc/dsputil_ppc.c
+2
-2
libavcodec/ppc/dsputil_ppc.h
libavcodec/ppc/dsputil_ppc.h
+0
-11
未找到文件。
configure
浏览文件 @
87ea51e0
...
...
@@ -349,6 +349,7 @@ mmx="default"
armv5te
=
"default"
iwmmxt
=
"default"
altivec
=
"default"
dcbzl
=
"no"
mmi
=
"default"
case
"
$cpu
"
in
i386|i486|i586|i686|i86pc|BePC
)
...
...
@@ -1139,6 +1140,19 @@ if test "$?" != 0; then
die
"C compiler test failed."
fi
# check for assembler specific support
if
test
$cpu
=
"powerpc"
;
then
check_cc
<<
EOF
&& dcbzl=yes
int main(void) {
register long zero = 0;
char data[1024];
asm volatile("dcbzl %0, %1" : : "b" (data), "r" (zero));
return 0;
}
EOF
fi
# check for SIMD availability
# AltiVec flags: The FSF version of GCC differs from the Apple version
...
...
@@ -1572,6 +1586,7 @@ if test $cpu = "mips"; then
fi
if
test
$cpu
=
"powerpc"
;
then
echo
"AltiVec enabled
$altivec
"
echo
"dcbzl available
$dcbzl
"
fi
echo
"gprof enabled
$gprof
"
echo
"zlib enabled
$zlib
"
...
...
@@ -1763,6 +1778,13 @@ if test "$mmi" = "yes" ; then
echo
"TARGET_MMI=yes"
>>
config.mak
echo
"#define HAVE_MMI 1"
>>
$TMPH
fi
if
test
"
$dcbzl
"
=
"yes"
;
then
echo
"#define HAVE_DCBZL 1"
>>
$TMPH
else
echo
"#undef HAVE_DCBZL"
>>
$TMPH
fi
if
test
"
$altivec
"
=
"yes"
;
then
echo
"TARGET_ALTIVEC=yes"
>>
config.mak
echo
"#define HAVE_ALTIVEC 1"
>>
$TMPH
...
...
libavcodec/ppc/dsputil_ppc.c
浏览文件 @
87ea51e0
...
...
@@ -175,7 +175,7 @@ POWERPC_PERF_STOP_COUNT(powerpc_clear_blocks_dcbz32, 1);
/* same as above, when dcbzl clear a whole 128B cache line
i.e. the PPC970 aka G5 */
#if
ndef NO
_DCBZL
#if
def HAVE
_DCBZL
void
clear_blocks_dcbz128_ppc
(
DCTELEM
*
blocks
)
{
POWERPC_PERF_DECLARE
(
powerpc_clear_blocks_dcbz128
,
1
);
...
...
@@ -205,7 +205,7 @@ void clear_blocks_dcbz128_ppc(DCTELEM *blocks)
}
#endif
#if
ndef NO
_DCBZL
#if
def HAVE
_DCBZL
/* check dcbz report how many bytes are set to 0 by dcbz */
/* update 24/06/2003 : replace dcbz by dcbzl to get
the intended effect (Apple "fixed" dcbz)
...
...
libavcodec/ppc/dsputil_ppc.h
浏览文件 @
87ea51e0
...
...
@@ -21,17 +21,6 @@
#ifndef _DSPUTIL_PPC_
#define _DSPUTIL_PPC_
#ifdef CONFIG_DARWIN
/* The Apple assembler shipped w/ gcc-3.3 knows about DCBZL, previous assemblers don't
We assume here that the Darwin GCC is from Apple.... */
#if (__GNUC__ * 100 + __GNUC_MINOR__ < 303)
#define NO_DCBZL
#endif
#else
/* CONFIG_DARWIN */
/* I don't think any non-Apple assembler knows about DCBZL */
#define NO_DCBZL
#endif
/* CONFIG_DARWIN */
#ifdef POWERPC_PERFORMANCE_REPORT
void
powerpc_display_perf_report
(
void
);
/* the 604* have 2, the G3* have 4, the G4s have 6,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录