Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
342c4eab
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
大约 1 年 前同步成功
通知
4
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Libpng
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
342c4eab
编写于
2月 18, 2016
作者:
M
Matt Sarett
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move sse opts into contrib/intel
上级
fb375429
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
73 addition
and
44 deletion
+73
-44
Makefile.am
Makefile.am
+0
-5
configure.ac
configure.ac
+0
-35
contrib/intel/Makefile.am.patch
contrib/intel/Makefile.am.patch
+17
-0
contrib/intel/configure.ac.patch
contrib/intel/configure.ac.patch
+46
-0
contrib/intel/filter_sse2_intrinsics.c
contrib/intel/filter_sse2_intrinsics.c
+0
-0
contrib/intel/intel_init.c
contrib/intel/intel_init.c
+0
-0
pngpriv.h
pngpriv.h
+10
-4
未找到文件。
Makefile.am
浏览文件 @
342c4eab
...
...
@@ -83,11 +83,6 @@ libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES += arm/arm_init.c\
arm/filter_neon.S arm/filter_neon_intrinsics.c
endif
if
PNG_INTEL_SSE
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@
_la_SOURCES
+=
intel/intel_init.c
\
intel/filter_sse2_intrinsics.c
endif
nodist_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@
_la_SOURCES
=
pnglibconf.h
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@
_la_LDFLAGS
=
-no-undefined
-export-dynamic
\
...
...
configure.ac
浏览文件 @
342c4eab
...
...
@@ -314,41 +314,6 @@ AM_CONDITIONAL([PNG_ARM_NEON],
*) test "$enable_arm_neon" != '';;
esac])
# INTEL
# ===
#
# INTEL SSE (SIMD) support.
AC_ARG_ENABLE([intel-sse],
AS_HELP_STRING([[[--enable-intel-sse]]],
[Enable Intel SSE optimizations: =no/off, yes/on:]
[no/off: disable the optimizations;]
[yes/on: enable the optimizations.]
[If not specified: determined by the compiler.]),
[case "$enableval" in
no|off)
# disable the default enabling:
AC_DEFINE([PNG_INTEL_SSE_OPT], [0],
[Disable Intel SSE optimizations])
# Prevent inclusion of the assembler files below:
enable_intel_sse=no;;
yes|on)
AC_DEFINE([PNG_INTEL_SSE_OPT], [1],
[Enable Intel SSE optimizations]);;
*)
AC_MSG_ERROR([--enable-intel-sse=${enable_intel_sse}: invalid value])
esac])
# Add Intel specific files to all builds where the host_cpu is Intel ('x86*')
# or where Intel optimizations were explicitly requested (this allows a
# fallback if a future host CPU does not match 'x86*')
AM_CONDITIONAL([PNG_INTEL_SSE],
[test "$enable_intel_sse" != 'no' &&
case "$host_cpu" in
i?86|x86_64) :;;
*) test "$enable_intel_sse" != '';;
esac])
AC_MSG_NOTICE([[Extra options for compiler: $PNG_COPTS]])
# Config files, substituting as above
...
...
contrib/intel/Makefile.am.patch
0 → 100644
浏览文件 @
342c4eab
#
#
Copyright (c) 2016 Google, Inc.
#
# This code is released under the libpng license.
#
For conditions of distribution and use, see the disclaimer
#
and license in png.h
#
#
In order to compile Intel SSE optimizations for libpng, please add
#
the following code to Makefile.am directly beneath the
#
"if PNG_ARM_NEON ... endif" statement.
if PNG_INTEL_SSE
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES += intel/intel_init.c\
intel/filter_sse2_intrinsics.c
endif
contrib/intel/configure.ac.patch
0 → 100644
浏览文件 @
342c4eab
#
# Copyright (c) 2016 Google, Inc.
#
# This code is released under the libpng license.
#
For conditions of distribution and use, see the disclaimer
#
and license in png.h
#
#
In order to compile Intel SSE optimizations for libpng, please add
#
the following code to configure.ac under HOST SPECIFIC OPTIONS
#
directly beneath the section for ARM.
# INTEL
#
===
#
# INTEL SSE (SIMD) support.
AC_ARG_ENABLE([intel-sse],
AS_HELP_STRING([[[--enable-intel-sse]]],
[Enable Intel SSE optimizations: =no/off, yes/on:]
[no/off: disable the optimizations;]
[yes/on: enable the optimizations.]
[If not specified: determined by the compiler.]),
[case "$enableval" in
no|off)
# disable the default enabling:
AC_DEFINE([PNG_INTEL_SSE_OPT], [0],
[Disable Intel SSE optimizations])
# Prevent inclusion of the assembler files below:
enable_intel_sse=no;;
yes|on)
AC_DEFINE([PNG_INTEL_SSE_OPT], [1],
[Enable Intel SSE optimizations]);;
*)
AC_MSG_ERROR([--enable-intel-sse=${enable_intel_sse}: invalid value])
esac])
# Add Intel specific files to all builds where the host_cpu is Intel ('x86*')
#
or where Intel optimizations were explicitly requested (this allows a
#
fallback if a future host CPU does not match 'x86*')
AM_CONDITIONAL([PNG_INTEL_SSE],
[test "$enable_intel_sse" != 'no' &&
case "$host_cpu" in
i?86|x86_64) :;;
*) test "$enable_intel_sse" != '';;
esac])
intel/filter_sse2_intrinsics.c
→
contrib/
intel/filter_sse2_intrinsics.c
浏览文件 @
342c4eab
文件已移动
intel/intel_init.c
→
contrib/
intel/intel_init.c
浏览文件 @
342c4eab
文件已移动
pngpriv.h
浏览文件 @
342c4eab
...
...
@@ -183,10 +183,16 @@
#endif
/* PNG_ARM_NEON_OPT > 0 */
#ifndef PNG_INTEL_SSE_OPT
# if defined(__SSE4_1__) || defined(__AVX__) || defined(__SSSE3__) || \
defined(__SSE2__) || defined(_M_X64) || defined(_M_AMD64) || \
(defined(_M_IX86_FP) && _M_IX86_FP >= 2)
# define PNG_INTEL_SSE_OPT 1
# ifdef PNG_INTEL_SSE
/* Only check for SSE if the build configuration has been modified to
* enable SSE optimizations. This means that these optimizations will
* be off by default. See contrib/intel for more details.
*/
# if defined(__SSE4_1__) || defined(__AVX__) || defined(__SSSE3__) || \
defined(__SSE2__) || defined(_M_X64) || defined(_M_AMD64) || \
(defined(_M_IX86_FP) && _M_IX86_FP >= 2)
# define PNG_INTEL_SSE_OPT 1
# endif
# endif
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录