SSE2:双精度对数功能 [英] SSE2: Double precision log function

查看:88
本文介绍了SSE2:双精度对数功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要日志功能的开放源代码实现(无许可证限制),带有签名的内容

I need open source (no restriction on license) implementation of log function, something with signature

__m128d _mm_log_pd(__m128d);

它在Intel Short Vector Math Library(ICC的一部分)中可用,但是ICC既不是免费的也不是开源的.我正在寻找仅使用内在函数的实现.

It is available in Intel Short Vector Math Library (part of ICC), but ICC is neither free nor open source. I am looking for implementation using intrinsics only.

它应该使用特殊的有理函数逼近.我需要几乎与cmath日志一样准确的东西,比如9-10个十进制数字,但是要更快.

It should use special rational function approximations. I need something almost as accurate as cmath log, say 9-10 decimal digits, but faster.

推荐答案

看看

Take a look at AMD LibM. It isn't open source, but free. AFAIK, it works on Intel CPUs. On the same web page you find a link to ACML, another free math lib from AMD. It has everything from AMD LibM + Matrix algos, FF and distributions.

我不知道任何双精度矢量化数学函数的开源实现.我猜英特尔和AMD库是由CPU制造商手动优化的,当速度很重要时,每个人都会使用它们. IIRC,曾尝试在GCC中实现向量化数学函数的内在函数.我不知道他们能走多远.显然,这不是一件简单的任务.

I don't know any open source implementation of double precision vectorized math functions. I guess Intel and AMD libs are hand optimised by the CPU manufacturer and everyone uses them when speed is important. IIRC, there was an attempt to implement intrinsics for vectorized math functions in GCC. I don't how far they managed to get. Obviously, it isn't a trivial task.

这篇关于SSE2:双精度对数功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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