x86是否有一个好的双精度小矩阵SIMD库? [英] Is there a good double-precision small matrix SIMD library for x86?

查看:127
本文介绍了x86是否有一个好的双精度小矩阵SIMD库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找针对图形的SIMD库小型(4x4)矩阵运算.有很多单精度的,但是我需要同时支持单精度和双精度.

I'm looking for a SIMD library focused small (4x4) matrix operations for graphics. There's lots of single precision ones out there, but I need to support both single and double precision.

我看过Intel的IPP MX库,但是我更喜欢带有源代码的东西.我对这些特定操作的SSE3 +实现非常感兴趣:

I've looked at Intel's IPP MX library, but I'd prefer something with source. I'm very interested in SSE3+ implementations of these particular operations:

  1. Mat4 * Mat4
  2. Mat4 * Vec4
  3. Mat4 * Mat4阵列
  4. Mat4 * Vec4阵列
  5. Mat4倒置(很好)

请不要过早的优化"答案.任何使用小型矩阵的人都知道,GCC不会像手工优化的内在函数或ASM那样对它们进行矢量化处理.在这种情况下,这很重要,否则我不会问.

No "premature optimization" answers please. Anyone who has worked with small matrices knows GCC does not vectorize these as well as hand optimized intrinsics or ASM. And in this case it's important, or I wouldn't be asking.

推荐答案

也许 Eigen 库?

它支持SSE 2/3/4,ARM NEON和AltiVec指令集.

It supports SSE 2/3/4, ARM NEON and AltiVec instruction set.

这篇关于x86是否有一个好的双精度小矩阵SIMD库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆