Android 上的 NEON 优化库
ARM 网站指出有某些 NEON 优化库和 显示使用它们的示例。尝试将它们合并到利用 NEON 架构的 Android 项目中是不可能的。头文件和库不存在。
有没有办法手动将它们导入到 Android 项目中?我对 OpenMAX 特别感兴趣。
ARM website states that there are certain NEON optimized libraries and show examples of using them. Trying to incorporate them into an Android project that takes advantage of NEON architecture isn't possible. The header files and libraries aren't there.
Is there a way to manually import those into an Android project? I am particularly interested in OpenMAX.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您确切知道自己需要什么但找不到它,那么最好继续编写自己的程序集,它甚至可能比库执行得更好,除非库是用纯汇编编写的,那么这可能会很困难,但是任何用 C 和内联汇编编写的库都有一些额外性能的空间(尽管不是很大)。
If you know exactly what you need and you can't find it, its probably best just to go ahead and write your own assembly it may even out perform the library unless of course the library is written in pure assembly then that might be hard but any library written in C and assembly inline has room for some extra performance (although not an extreme amount).
编写 NEON 代码实际上比 ARM 代码容易得多。
不过,优化则是另一回事……
它就像圣杯一样。完全优化的 NEON 代码的运行速度通常比用 C 语言编写的代码快 10~20 倍
。不过,这是一项极其繁重的工作。
Writing NEON codes is actually much easier than ARM codes.
Optimizing is a different story though......
It's just like the Holy Grail. Fully optimized NEON codes usually run 10~20 times faster than their counterparts written in C.
It's an extremely taxing job though.